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

Error while evaluating SouthAfricanLangClassification: 'default' #1586

Closed
sigridjineth opened this issue Dec 13, 2024 · 0 comments · Fixed by #1587
Closed

Error while evaluating SouthAfricanLangClassification: 'default' #1586

sigridjineth opened this issue Dec 13, 2024 · 0 comments · Fixed by #1587

Comments

@sigridjineth
Copy link

sigridjineth commented Dec 13, 2024

Error while evaluating SouthAfricanLangClassification: 'default'
Error during execution: 'default'
Traceback (most recent call last):
  File "/workspace/sigrid/mteb-hacking/evaluation_3.py", line 190, in <module>
    results = evaluation.run(model, output_folder="results/Ensemble-stella_gemma2_all_en")
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/sigrid/mteb-hacking/.venv/lib/python3.11/site-packages/mteb/evaluation/MTEB.py", line 570, in run
    raise e
  File "/workspace/sigrid/mteb-hacking/.venv/lib/python3.11/site-packages/mteb/evaluation/MTEB.py", line 548, in run
    new_results = TaskResult.from_task_results(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspace/sigrid/mteb-hacking/.venv/lib/python3.11/site-packages/mteb/load_results/task_results.py", line 177, in from_task_results
    eval_langs = subset2langscripts[hf_subset]
                 ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'default'

I think there is some key error happens in the dataset needed to be evaluated.

The script that I ran is for English tasks.

    try:
        print("Initializing EnsembleModel...")
        model = Model(..., ...)

        print("Setting up MTEB evaluation...")
        evaluation = MTEB(task_langs=['en'])

        print("Running evaluation...")
        results = evaluation.run(model, output_folder="results/...")
        print("Results:", results)

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

Successfully merging a pull request may close this issue.

1 participant