Skip to content

docs: set MASTER_ADDR/MASTER_PORT in the Quick Start commands - #29

Open
stwilliam503388-creator wants to merge 1 commit into
deepseek-ai:mainfrom
stwilliam503388-creator:docs/quickstart-env
Open

stwilliam503388-creator wants to merge 1 commit into
deepseek-ai:mainfrom
stwilliam503388-creator:docs/quickstart-env

Conversation

@stwilliam503388-creator

Copy link
Copy Markdown

The Quick Start commands fail as documented: both examples/example_dualpipe.py and examples/example_dualpipev.py spawn their ranks via torch.multiprocessing.spawn (which sets no rendezvous env vars) and then call dist.init_process_group(init_method="env://"), which raises ValueError: environment variable MASTER_ADDR expected, but not set.

Prefixed both commands with MASTER_ADDR=127.0.0.1 MASTER_PORT=29500 and added a note for the multi-machine case.

Both examples spawn ranks via torch.multiprocessing.spawn and call
dist.init_process_group(init_method="env://"), which requires
MASTER_ADDR/MASTER_PORT to be set; running the documented commands
as-is fails immediately with "environment variable MASTER_ADDR
expected, but not set".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant