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

ValueError Some specified arguments are not used by the HfArgumentParser #19

Closed
demongolem-biz opened this issue Aug 18, 2021 · 3 comments

Comments

@demongolem-biz
Copy link

demongolem-biz commented Aug 18, 2021

When running the run.py in the Quick Start session under Run LM-BFF, I get

raise ValueError(f"Some specified arguments are not used by the HfArgumentParser: {remaining args}"

I believe it is complaining about --evaluate_during_training. Is this deprecated? Should this simply be removed, or is there a replacement? I have had to fix the paths to Bert and Roberta in the imports so I think this just has to do with the evolution of transformers since this was originally published.

@gaotianyu1350
Copy link
Member

Hi,

It might be due to different versions of transformers. Can you check your installed tranformers version? The current code is designed for 3.4.0 transformers.

@demongolem-biz
Copy link
Author

In this case --evaluation_strategy epoch would seem to be the correct replacement. I would agree that this would work with transformers 3.4.0. In the quick start section, it reads "but it should work with other versions". I think this part should be deleted and the assertion should read this requires transformers 3.4. As it is, when I replace --evaluate_during_training, there are other errors waiting behind which also result from mismatched version.

@gaotianyu1350
Copy link
Member

Good point, I'll edit the README.

@danqi danqi closed this as completed Aug 24, 2021
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

3 participants