-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct the types of registry and cli.oaievalset #1027
Conversation
cccbe4b to
f3d66ea
Compare
| if command in commands: | ||
| continue | ||
| commands.append(command) | ||
| eval_set = registry.get_eval_set(args.eval_set) if args.eval_set else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should log an error when the eval set is not found, to make it more clear to the user what happened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
@pan93412 Could you resolve the merge conflicts? |
Currently, the `registry` and `cli.oaievalset` won't be checked as expected due to the misform wildcard in Additional Sections. The issue can be addressed by adding a wrong type declaration in the specified files 1�7 before this commit, no errors report; after this commit, it reports 21 errors. This PR fixes this issue.
error: Multiple top-level packages discovered in a flat-layout: ['evals', 'typings'].
Python 3.9 has not supported the former yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fixes!
Currently, the `registry` and `cli.oaievalset` won't be checked as expected due to the misform wildcard in Additional Sections. This PR: - re-enable the checks for these modules - correct and strengthen the types of these modules
Currently, the `registry` and `cli.oaievalset` won't be checked as expected due to the misform wildcard in Additional Sections. This PR: - re-enable the checks for these modules - correct and strengthen the types of these modules
Currently, the `registry` and `cli.oaievalset` won't be checked as expected due to the misform wildcard in Additional Sections. This PR: - re-enable the checks for these modules - correct and strengthen the types of these modules


Eval details 📑
This is not a eval.
Currently, the
registryandcli.oaievalsetwon't be checked as expected due to the misform wildcard in Additional Sections.This PR:
Final checklist 👀
Submission agreement
By contributing to Evals, you are agreeing to make your evaluation logic and data under the same MIT license as this repository. You must have adequate rights to upload any data used in an Eval. OpenAI reserves the right to use this data in future service improvements to our product. Contributions to OpenAI Evals will be subject to our usual Usage Policies (https://platform.openai.com/docs/usage-policies).
Email address validation
If your submission is accepted, we will be granting GPT-4 access to a limited number of contributors. Access will be given to the email address associated with the merged pull request.
Limited availability acknowledgement
We know that you might be excited to contribute to OpenAI's mission, help improve our models, and gain access to GPT-4. However, due to the requirements mentioned above and high volume of submissions, we will not be able to accept all submissions and thus not grant everyone who opens a PR GPT-4 access. We know this is disappointing, but we hope to set the right expectation before you open this PR.
Submit eval
pip install pre-commit; pre-commit installand have verified thatblack,isort, andautoflakeare running when I commit and pushFailure to fill out all required fields will result in the PR being closed.