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

"run_mlm_wwm.py", line 284 AttributeError: 'DataTrainingArguments' object has no attribute 'valid_ref_file' #9012

Closed
NatLun137 opened this issue Dec 9, 2020 · 3 comments · Fixed by NatLun137/transformers#1 or #9038

Comments

@NatLun137
Copy link
Contributor

Hi! There is a tiny typo in the code "transformers/examples/language-modeling/run_mlm_wwm.py" at line 284. It should be:
if data_args.validation_ref_file is not None: since at line 103 in DataTrainingArguments it defined as validation_ref_file:

@LysandreJik
Copy link
Member

Hi! Do you want to submit a PR?

@NatLun137
Copy link
Contributor Author

NatLun137 commented Dec 10, 2020

Sure, I'll be happy to do it. I need permission... remote: Permission to huggingface/transformers.git denied to NatLun137.

@LysandreJik
Copy link
Member

Hmmm I think you just tried to push on huggingface/transformers? You should fork the repo, apply your changes there and then open a PR here. I see you created your fork already, how did you open a PR then? Did you use the GitHub UI?

NatLun137 added a commit to NatLun137/transformers that referenced this issue Dec 10, 2020
There is a tiny typo in the code "transformers/examples/language-modeling/run_mlm_wwm.py" at line 284. [Details.](huggingface#9012)
NatLun137 added a commit to NatLun137/transformers that referenced this issue Dec 10, 2020
There is a tiny typo in the code "transformers/examples/language-modeling/run_mlm_wwm.py" at line 284. [Details.](huggingface#9012)
NatLun137 added a commit to NatLun137/transformers that referenced this issue Dec 10, 2020
This was referenced Dec 10, 2020
sgugger pushed a commit that referenced this issue Dec 10, 2020
There is a tiny typo in the code "transformers/examples/language-modeling/run_mlm_wwm.py" at line 284. [Details.](#9012)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants