Skip to content

Commit

Permalink
Fix multinode runner to properly append to PDSH_SSH_ARGS_APPEND (#4373)
Browse files Browse the repository at this point in the history
  • Loading branch information
loadams authored Sep 20, 2023
1 parent 727609d commit 1795772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/launcher/multinode_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def parse_user_args(self):
def get_cmd(self, environment, active_resources):
environment['PDSH_RCMD_TYPE'] = 'ssh'
if self.args.ssh_port is not None: # only specify ssh port if it is specified
environment["PDSH_SSH_ARGS_APPEND"] = f" -p {self.args.ssh_port}"
environment["PDSH_SSH_ARGS_APPEND"] += f" -p {self.args.ssh_port}"

active_workers = ",".join(active_resources.keys())
logger.info("Running on the following workers: %s" % active_workers)
Expand Down

0 comments on commit 1795772

Please sign in to comment.