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

Problem using oaieval.py #218

Closed
JimmyfaQwQ opened this issue Mar 16, 2023 · 6 comments
Closed

Problem using oaieval.py #218

JimmyfaQwQ opened this issue Mar 16, 2023 · 6 comments

Comments

@JimmyfaQwQ
Copy link

I run "oaieval gpt-3.5-turbo test-match" in terminal and got a error
The return is provided below:

Traceback (most recent call last):
  File "/workspace/.pyenv_mirror/user/3.8.16/bin/oaieval", line 5, in <module>
    from evals.cli.oaieval import main
  File "/workspace/evals/evals/__init__.py", line 1, in <module>
    from .api import check_sampled_text, completion_query, sample_freeform
  File "/workspace/evals/evals/api.py", line 9, in <module>
    from evals.base import ModelSpec
  File "/workspace/evals/evals/base.py", line 93, in <module>
    class ModelSpecs:
  File "/workspace/evals/evals/base.py", line 125, in ModelSpecs
    def names(self) -> dict[str, Sequence[str]]:
TypeError: 'type' object is not subscriptable
@JimmyfaQwQ
Copy link
Author

Tried oaieval --help
Still not working, the return is as the same as above

@priyankkumar218
Copy link

priyankkumar218 commented Mar 16, 2023

Same issue for me as well

Screenshot 2023-03-16 at 10 39 44 AM

@SierotkaM
Copy link

SierotkaM commented Mar 16, 2023 via email

@rubbybbs
Copy link

Change python version to 3.9.16 helps in my case.

@JimmyfaQwQ
Copy link
Author

Change python version to 3.9.16 helps in my case.

thx I'll try

@JimmyfaQwQ
Copy link
Author

Change python version to 3.9.16 helps in my case.

It do help, the problem was solved, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants