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
25e5e3fa
Unverified
Commit
25e5e3fa
authored
Jul 16, 2024
by
Fanli Lin
Committed by
GitHub
Jul 16, 2024
Browse files
[tests] fix deepspeed zero3 config for `test_stage3_nvme_offload` (#31881)
fix config
parent
e0dfd7bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
tests/deepspeed/test_deepspeed.py
tests/deepspeed/test_deepspeed.py
+1
-0
No files found.
tests/deepspeed/test_deepspeed.py
View file @
25e5e3fa
...
...
@@ -545,6 +545,7 @@ class TrainerIntegrationDeepSpeed(TrainerIntegrationDeepSpeedWithCustomConfig, T
ds_config_zero3_dict
=
self
.
get_config_dict
(
ZERO3
)
ds_config_zero3_dict
[
"zero_optimization"
][
"offload_optimizer"
]
=
nvme_config
ds_config_zero3_dict
[
"zero_optimization"
][
"offload_param"
]
=
nvme_config
ds_config_zero3_dict
[
"zero_optimization"
][
"stage3_gather_16bit_weights_on_model_save"
]
=
True
trainer
=
get_regression_trainer
(
local_rank
=
0
,
fp16
=
True
,
deepspeed
=
ds_config_zero3_dict
)
with
CaptureLogger
(
deepspeed_logger
)
as
cl
:
trainer
.
train
()
...
...
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