Skip to content

Commit

Permalink
deepspeed sharding (#840)
Browse files Browse the repository at this point in the history
* debugging

* deepspeed: pin ze memory

---------

Co-authored-by: bghira <bghira@users.github.com>
  • Loading branch information
bghira and bghira authored Aug 21, 2024
1 parent 3d988e2 commit eb8515b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def main():
]["offload_param"]
accelerator.state.deepspeed_plugin.deepspeed_config["zero_optimization"][
"offload_param"
]["pin_memory"] = False
]["pin_memory"] = True
if offload_param["device"] == "nvme":
if offload_param["nvme_path"] == "none":
if args.offload_param_path is None:
Expand Down

0 comments on commit eb8515b

Please sign in to comment.