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

Building an MMLU Eval issue #155

Closed
ToadTWP666 opened this issue Mar 15, 2023 · 4 comments
Closed

Building an MMLU Eval issue #155

ToadTWP666 opened this issue Mar 15, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ToadTWP666
Copy link

I am trying to execute the Building an MMLU Eval jupyter notebooks
all of the cells execute correctly until I execute the following code:

!oaieval gpt-3.5-turbo match_mmlu_anatomy

I receive the following error:

Traceback (most recent call last):
File "/anaconda/envs/azureml_py38/bin/oaieval", line 5, in
from evals.cli.oaieval import main
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/evals/init.py", line 1, in
from .api import check_sampled_text, completion_query, sample_freeform
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/evals/api.py", line 9, in
from evals.base import ModelSpec
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/evals/base.py", line 93, in
class ModelSpecs:
File "/anaconda/envs/azureml_py38/lib/python3.8/site-packages/evals/base.py", line 125, in ModelSpecs
def names(self) -> dict[str, Sequence[str]]:
TypeError: 'type' object is not subscriptable

@ToadTWP666
Copy link
Author

I tried executing using python 3.10 and still had the issue.

@andremafei
Copy link
Contributor

I got several of similar error while trying to run it in Python 3.8, I quit trying to fix it because several other places were also not compatible with 3.8. There is a bug in the file "pyproject.toml" where it says:
requires-python = ">=3.8"
it should be:
requires-python = ">=3.9"

andrew-openai pushed a commit that referenced this issue Mar 21, 2023
Min Python version is actually 3.9 not 3.8 as is says in
"pyproject.toml".
@andrew-openai
Copy link
Contributor

It's a bit hard to diagnose the issue - When you switch between python versions, did you ensure to reinstall the CLI - oaieval is pointing to the right path?

@jwang47 jwang47 added the bug Something isn't working label Apr 13, 2023
@etr2460
Copy link
Collaborator

etr2460 commented Dec 5, 2023

Closing as stale, please file a new issue if you're still seeing this

@etr2460 etr2460 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
Linmj-Judy pushed a commit to TablewareBox/evals that referenced this issue Feb 27, 2024
Min Python version is actually 3.9 not 3.8 as is says in
"pyproject.toml".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants