Skip to content

Commit

Permalink
[tests] fix deepspeed zero3 config for test_stage3_nvme_offload (hu…
Browse files Browse the repository at this point in the history
…ggingface#31881)

fix config
  • Loading branch information
faaany authored and MHRDYN7 committed Jul 23, 2024
1 parent 144a2f0 commit 78e6c9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/deepspeed/test_deepspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ def test_stage3_nvme_offload(self):
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()
Expand Down

0 comments on commit 78e6c9b

Please sign in to comment.