Skip to content

Fix: update _run_script to use individual language per script execution. #682

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

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

Conversation

kevtimova
Copy link

This PR fixes a bug in the _run_script method where script executions were always returning 0 reward due to incorrect language parameter handling.

Changes:

  • Updated _run_script method signature to accept language: str instead of languages: List[str]
  • Modified the task creation loop to zip scripts with their corresponding languages
  • Updated the sandbox execution call to use the single language parameter

Motivation: The current implementation was incorrectly passing a list of languages to individual script executions, which caused all executions to return 0 reward instead of the expected evaluation scores.

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.

1 participant