"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "40a0cabd93f86a7c09406159ad03a3804c2940da"
Unverified Commit 2dc5e1a1 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

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 c5e29d43.
parent 4f1b31c2
...@@ -976,12 +976,12 @@ class TrainingArguments: ...@@ -976,12 +976,12 @@ class TrainingArguments:
) )
}, },
) )
fsdp_config: Optional[Union[str, Dict]] = field( fsdp_config: Optional[str] = field(
default=None, default=None,
metadata={ metadata={
"help": ( "help": (
"Config to be used with FSDP (Pytorch Fully Sharded Data Parallel). The value is either a" "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`." "fsdp json config file (e.g., `fsdp_config.json`) or an already loaded json file as `dict`."
) )
}, },
) )
...@@ -994,11 +994,11 @@ class TrainingArguments: ...@@ -994,11 +994,11 @@ class TrainingArguments:
) )
}, },
) )
deepspeed: Optional[Union[str, Dict]] = field( deepspeed: Optional[str] = field(
default=None, default=None,
metadata={ metadata={
"help": ( "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" " loaded json file as a dict"
) )
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment