Skip to content

Commit

Permalink
Fin!
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Apr 12, 2024
1 parent 5d9a39a commit 16c3bf7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/transformers/training_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ class OptimizerNames(ExplicitEnum):

# Sometimes users will pass in a `str` repr of a dict in the CLI
# We need to track what fields those can be. Each time a new arg
# has a dict type, it must be added to this list
# has a dict type, it must be added to this list.
# Important: These should be typed with Optional[Union[dict,str,...]]
VALID_DICT_FIELDS = [
"accelerator_config",
"fsdp_config",
Expand Down Expand Up @@ -1148,7 +1149,7 @@ class TrainingArguments:
)
},
)
accelerator_config: Optional[Union[AcceleratorConfig, dict, str]] = field(
accelerator_config: Optional[Union[dict, str, AcceleratorConfig]] = field(
default=None,
metadata={
"help": (
Expand Down

0 comments on commit 16c3bf7

Please sign in to comment.