Skip to content

Commit

Permalink
Fix --enable_each_rank_log when used with PDSH multi-node runner (dee…
Browse files Browse the repository at this point in the history
…pspeedai#6863)

This PR addresses fixes
deepspeedai#6859 by threading this
argument into the deepspeed launcher command build by PDSHRunner.

---------

Co-authored-by: Logan Adams <[email protected]>
Signed-off-by: siqi <[email protected]>
  • Loading branch information
2 people authored and siqi committed Feb 7, 2025
1 parent 911d42b commit b381f5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deepspeed/launcher/multinode_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def get_cmd(self, environment, active_resources):
deepspeed_launch.append("--no_local_rank")
if self.args.save_pid:
deepspeed_launch += ["--save_pid", f"{os.getpid()}"]
if self.args.enable_each_rank_log:
deepspeed_launch.append(f"--enable_each_rank_log={self.args.enable_each_rank_log}")
if self.args.elastic_training:
deepspeed_launch.append("--enable_elastic_training")
deepspeed_launch.append(f"--max_elastic_nodes={self.args.max_elastic_nodes}")
Expand Down

0 comments on commit b381f5f

Please sign in to comment.