Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
26e5e129
"...models/git@developer.sourcefind.cn:Wenxuan/LightX2V.git" did not exist on "d76fc3db932a903046bd6006ba500654747e1841"
Unverified
Commit
26e5e129
authored
Jun 03, 2022
by
Stas Bekman
Committed by
GitHub
Jun 03, 2022
Browse files
[deepspeed] fix load_best_model test (#17550)
parent
72f5b949
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
51 deletions
+51
-51
tests/deepspeed/test_deepspeed.py
tests/deepspeed/test_deepspeed.py
+51
-51
No files found.
tests/deepspeed/test_deepspeed.py
View file @
26e5e129
...
...
@@ -752,6 +752,8 @@ class TrainerIntegrationDeepSpeed(TrainerIntegrationDeepSpeedWithCustomConfig, T
# must use this setting to get the reload path exercised
ds_config_dict
[
"zero_optimization"
][
"stage3_gather_16bit_weights_on_model_save"
]
=
True
with
mockenv_context
(
**
self
.
dist_env_1_gpu
):
tokenizer
=
T5Tokenizer
.
from_pretrained
(
T5_TINY
)
model
=
T5ForConditionalGeneration
.
from_pretrained
(
T5_TINY
)
...
...
@@ -804,8 +806,6 @@ class TrainerIntegrationDeepSpeed(TrainerIntegrationDeepSpeedWithCustomConfig, T
"deepspeed"
:
ds_config_dict
,
}
with
mockenv_context
(
**
self
.
dist_env_1_gpu
):
training_args
=
TrainingArguments
(
output_dir
,
**
args_dict
)
trainer
=
Trainer
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment