Skip to content

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

Open
koking0 wants to merge 1 commit into
bigcode-project:mainfrom
koking0:patch-1
Open

fix apps evaluate error: local variable 'level' referenced before assignment#206
koking0 wants to merge 1 commit into
bigcode-project:mainfrom
koking0:patch-1

Conversation

@koking0

@koking0 koking0 commented Mar 10, 2024

Copy link
Copy Markdown

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

@loubnabnl loubnabnl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@kbmlcoding kbmlcoding left a comment

Copy link
Copy Markdown

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