You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running aimo_evals.py from community tasks, an error occurs indicating that the Tokenizer does not accept None as input. This issue stems from how stop_sequence is handled in LightevalTaskConfig. Since most tasks in lighteval explicitly define stop_sequence, this problem may have gone unnoticed.
Describe the bug
When running
aimo_evals.py
from community tasks, an error occurs indicating that the Tokenizer does not acceptNone
as input. This issue stems from howstop_sequence
is handled inLightevalTaskConfig
. Since most tasks inlighteval
explicitly definestop_sequence
, this problem may have gone unnoticed.lighteval/src/lighteval/tasks/lighteval_task.py
Line 133 in 0977fde
Proposed Solution
Set the default value for stop_sequence to an empty list (
[]
) instead ofNone
. Testing shows that this change resolves the issue.To Reproduce
Expected behavior
The test should run successfully without any errors.
Version info
This issue occurs in a version installed directly from the
main
branch using the following command:pip install -e ".[dev]"
The text was updated successfully, but these errors were encountered: