GithubHelp home page GithubHelp logo

Problem of oaieval.py about evals HOT 3 CLOSED

openai avatar openai commented on June 8, 2024
Problem of oaieval.py

from evals.

Comments (3)

aaronsmithtv avatar aaronsmithtv commented on June 8, 2024 2

The behaviour is explained in custom-eval.md:

If you notice evals has cached your data and you need to clear that cache, you can do so with rm -rf /tmp/filecache.

This will be a difficult spot for people looking through custom-eval I think. I've also noticed that the flag --no-cache exists in the list of oaieval options. I'm not sure if this is intended to prevent .jsonl files from being cached (which would be a nice feature), but as far as I can tell the code associated with the arg isn't doing anything:

evals/evals/cli/oaieval.py

Lines 173 to 175 in 19bfdba

api_extra_options = {}
if not args.cache:
api_extra_options["cache_level"] = 0

Though of course @andrew-openai will know a lot more than I do!

from evals.

samclane avatar samclane commented on June 8, 2024

I'm currently having the same problem. I'm unsure of how to clear the cache to get it to "see" my new jsonl file. I've tried to change the name of the test to no avail

EDIT: After running with --debug, I found it was loading a pkl file from my /tmp folder. After deleting it I got it to run all my samples.

from evals.

JimmyfaQwQ avatar JimmyfaQwQ commented on June 8, 2024

Thanks, it helps.

The behaviour is explained in custom-eval.md:

If you notice evals has cached your data and you need to clear that cache, you can do so with rm -rf /tmp/filecache.

This will be a difficult spot for people looking through custom-eval I think. I've also noticed that the flag --no-cache exists in the list of oaieval options. I'm not sure if this is intended to prevent .jsonl files from being cached (which would be a nice feature), but as far as I can tell the code associated with the arg isn't doing anything:

evals/evals/cli/oaieval.py

Lines 173 to 175 in 19bfdba

api_extra_options = {}
if not args.cache:
api_extra_options["cache_level"] = 0

Though of course @andrew-openai will know a lot more than I do!

from evals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.