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

Don't use store_xxx on optional bools #7786

Merged
merged 3 commits into from
Oct 14, 2020
Merged

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Oct 14, 2020

What does this PR do?

Optional bool fields in TrainingArguments are given the store_true attribute by HFArgumentParser which can yield to bugs (as highlighted in #7755). This PR fixes this and to avoid breaking existing scripts, removes the optional in the evaluate_during_training argument.

It also fixes a few instances with the right argument called (since that argument is deprecated).

Fixes #7755

@sgugger sgugger requested a review from LysandreJik October 14, 2020 15:43
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

@sgugger sgugger merged commit bb9559a into master Oct 14, 2020
@sgugger sgugger deleted the optioanl_bool_not_stored branch October 14, 2020 16:05
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.

HfArgumentParser not support optional bools
2 participants