Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions deepspeed/pt/deepspeed_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,6 @@ def main(args=None):
args.include,
args.exclude)

if multi_node_exec and not shutil.which('pdsh'):
raise RuntimeError("pdsh is not installed, unable to proceed")

env = os.environ.copy()

if not args.master_addr:
Expand Down Expand Up @@ -278,6 +275,11 @@ def main(args=None):
# encode world info as base64 to make it easier to pass via command line
world_info_base64 = encode_world_info(active_resources)

multi_node_exec = len(active_resources) > 1

if multi_node_exec and not shutil.which('pdsh'):
raise RuntimeError("pdsh is not installed, unable to proceed")

if not multi_node_exec:
deepspeed_launch = [
sys.executable,
Expand Down