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

AttributeError: 'TrainingArguments' object has no attribute 'eval_strategy' #535

Open
jayeshchoudhari opened this issue Jun 19, 2024 · 2 comments

Comments

@jayeshchoudhari
Copy link

Trying to run the example given in the README gives an AttributeError -- 'TrainingArguments' object has no attribute 'eval_strategy'. However, there is no attribute 'eval_strategy' mentioned in the code.

@tomaarsen
Copy link
Member

Hello!

You can either downgrade your transformers version, or use this as a workaround: #512 (comment)

  • Tom Aarsen

@jayeshchoudhari
Copy link
Author

jayeshchoudhari commented Jun 19, 2024

Thanks. That was a easy work around.
I downloaded the transformers source code separately changed the variable args.eval_strategy to args.evaluation_strategy in trainer_callback.py. An overkill :(

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

No branches or pull requests

2 participants