The Wayback Machine - https://web.archive.org/web/20241225034848/https://github.com/openai/evals/pull/1027
Skip to content
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

Merged
merged 9 commits into from
Jun 5, 2023

Conversation

pan93412
Copy link
Contributor

Eval details 📑

This is not a eval.

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

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).

  • I agree that my submission will be made available under an MIT license and complies with OpenAI's 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.

  • I acknowledge that GPT-4 access will only be granted, if applicable, to the email address used for my 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.

  • I understand that opening a PR, even if it meets the requirements above, does not guarantee the PR will be merged nor GPT-4 access granted.

Submit eval

  • I have filled out all required fields of this form
  • (Ignore if not submitting code) I have run pip install pre-commit; pre-commit install and have verified that black, isort, and autoflake are running when I commit and push

Failure to fill out all required fields will result in the PR being closed.

@pan93412 pan93412 changed the title Correct the configuration of Mypy Correct the types of registry and cli.oaievalset May 24, 2023
@pan93412 pan93412 marked this pull request as draft May 24, 2023 23:51
@pan93412 pan93412 marked this pull request as ready for review May 25, 2023 00:03
@pan93412 pan93412 mentioned this pull request May 25, 2023
5 tasks
@pan93412 pan93412 marked this pull request as draft May 25, 2023 04:53
@pan93412 pan93412 marked this pull request as ready for review May 25, 2023 07:24
@pan93412 pan93412 force-pushed the fix-up-types-i branch 4 times, most recently from cccbe4b to f3d66ea Compare June 2, 2023 16:07
if command in commands:
continue
commands.append(command)
eval_set = registry.get_eval_set(args.eval_set) if args.eval_set else None
Copy link
Contributor

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.

Copy link
Contributor Author

@jwang47
Copy link
Contributor

jwang47 commented Jun 2, 2023

@pan93412 Could you resolve the merge conflicts?

pan93412 added 9 commits June 3, 2023 11:08
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.
@pan93412 pan93412 requested a review from jwang47 June 3, 2023 03:12
Copy link
Contributor

@jwang47 jwang47 left a 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!

@jwang47 jwang47 merged commit c2c8abe into openai:main Jun 5, 2023
arbreton pushed a commit to arbreton/evals that referenced this pull request Jul 8, 2023
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
jacobbieker pushed a commit to withmartian/-ARCHIVED--router-evals that referenced this pull request Jan 9, 2024
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
Linmj-Judy pushed a commit to TablewareBox/evals that referenced this pull request Feb 27, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants