From 17957728c0362bf8ae70feca308e491e55ef9feb Mon Sep 17 00:00:00 2001 From: Logan Adams <114770087+loadams@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:32:07 -0700 Subject: [PATCH] Fix multinode runner to properly append to PDSH_SSH_ARGS_APPEND (#4373) --- deepspeed/launcher/multinode_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepspeed/launcher/multinode_runner.py b/deepspeed/launcher/multinode_runner.py index 3f4552224f81..5b879efee469 100644 --- a/deepspeed/launcher/multinode_runner.py +++ b/deepspeed/launcher/multinode_runner.py @@ -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)