mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
Revert "Fix typing annotations for FSDP and DeepSpeed in TrainingArguments" (#24574)
Revert "Fix typing annotations for FSDP and DeepSpeed in TrainingArguments (#24549)"
This reverts commit c5e29d4381
.
This commit is contained in:
parent
4f1b31c2ee
commit
2dc5e1a120
@ -976,12 +976,12 @@ class TrainingArguments:
|
||||
)
|
||||
},
|
||||
)
|
||||
fsdp_config: Optional[Union[str, Dict]] = field(
|
||||
fsdp_config: Optional[str] = field(
|
||||
default=None,
|
||||
metadata={
|
||||
"help": (
|
||||
"Config to be used with FSDP (Pytorch Fully Sharded Data Parallel). The value is either a"
|
||||
"fsdp json config file (e.g., `fsdp_config.json`) or an already loaded json file as `dict`."
|
||||
"Config to be used with FSDP (Pytorch Fully Sharded Data Parallel). The value is either a"
|
||||
"fsdp json config file (e.g., `fsdp_config.json`) or an already loaded json file as `dict`."
|
||||
)
|
||||
},
|
||||
)
|
||||
@ -994,11 +994,11 @@ class TrainingArguments:
|
||||
)
|
||||
},
|
||||
)
|
||||
deepspeed: Optional[Union[str, Dict]] = field(
|
||||
deepspeed: Optional[str] = field(
|
||||
default=None,
|
||||
metadata={
|
||||
"help": (
|
||||
"Enable deepspeed and pass the path to deepspeed json config file (e.g. `ds_config.json`) or an already"
|
||||
"Enable deepspeed and pass the path to deepspeed json config file (e.g. ds_config.json) or an already"
|
||||
" loaded json file as a dict"
|
||||
)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user