Skip to content

Commit

Permalink
fix zero stage-1 (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman100 committed May 20, 2022
1 parent 23c0341 commit b922c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accelerate/commands/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def deepspeed_launcher(args):
current_env["USE_DEEPSPEED"] = "true"
current_env["DEEPSPEED_ZERO_STAGE"] = str(args.zero_stage)
current_env["GRADIENT_ACCUMULATION_STEPS"] = str(args.gradient_accumulation_steps)
current_env["DEEPSPEED_OFFLOAD_OPTIMIZER_DEVICE"] = str(args.offload_optimizer_device)
current_env["DEEPSPEED_OFFLOAD_OPTIMIZER_DEVICE"] = str(args.offload_optimizer_device).lower()

process = subprocess.Popen(cmd, env=current_env)
process.wait()
Expand Down

0 comments on commit b922c63

Please sign in to comment.