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

fix apps evaluate error: local variable 'level' referenced before assignment #206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

koking0
Copy link

@koking0 koking0 commented Mar 10, 2024

when I evaluate model on apps, meet below error:

Traceback (most recent call last):
  File "/kaggle/working/bigcode-evaluation-harness/main.py", line 412, in <module>
    main()
  File "/kaggle/working/bigcode-evaluation-harness/main.py", line 396, in main
    results[task] = evaluator.evaluate(
  File "/kaggle/working/bigcode-evaluation-harness/bigcode_eval/evaluator.py", line 107, in evaluate
    results = task.process_results(generations, references)
  File "/kaggle/working/bigcode-evaluation-harness/bigcode_eval/tasks/apps.py", line 119, in process_results
    if level is None:
UnboundLocalError: local variable 'level' referenced before assignment

fix error: local variable 'level' referenced before assignment
Copy link
Collaborator

@loubnabnl loubnabnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link

@kbmlcoding kbmlcoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have also encountered it..i reviewed it and looks good to me

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 this pull request may close these issues.

3 participants