-
Notifications
You must be signed in to change notification settings - Fork 27.6k
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
Make output_dir
optional in TrainingArguments
#27866
Comments
cc @muellerzr sounds good to me wdyt? |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
I've found a workaround using inheritance:
|
not everyone want to save the model |
Let's leave it to the community! |
i'll take this up . |
raised a PR #35735 to fix this issue . maintainers kindly give this a look . |
Feature request
Currently, there is only 1 required param in creating a TrainingArguments object -
output_dir
. HFTrainer manually creates an object with a default value "tmp_trainer" if no Args object is passed to it.Instead, we should make even this one param optional in the TrainingArguments class (and use a default inside the class implementation).
Motivation
This is useful when creating and passing TrainingArguments in other runners - for eg, trl/SFTTrainer. I would like sensible defaults for all params, so that I only specify the particular arguments I am interested in.
Your contribution
I can open a PR, if this is of interest.
The text was updated successfully, but these errors were encountered: