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] Avoid passing eval_dataset=None to transformers due to >=v4.46.0 crash #3035

Conversation

tomaarsen
Copy link
Collaborator

Resolves #3032

Hello!

Pull Request overview

  • Avoid passing eval_dataset=None to transformers due to >=v4.46.0 crash

Details

This sets eval_dataset to "dummy" if it's None but evaluator is set. If evaluator is not set, then the ValueError is acceptable I think, as then there's indeed no evaluation at all despite args.eval_strategy being set. The "dummy" gets reset to None after the __init__.

Thanks for reporting @deklanw!

  • Tom Aarsen

@tomaarsen tomaarsen merged commit 1c31322 into UKPLab:master Nov 6, 2024
11 checks passed
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.

eval_dataset or evaluator?
1 participant