Skip to content

fix: bracket IPv6 hosts in distributed init methods#1636

Open
EazyReal wants to merge 1 commit into
radixark:mainfrom
EazyReal:fix/ipv6-bracket-init-method
Open

fix: bracket IPv6 hosts in distributed init methods#1636
EazyReal wants to merge 1 commit into
radixark:mainfrom
EazyReal:fix/ipv6-bracket-init-method

Conversation

@EazyReal

Copy link
Copy Markdown

Summary

Use the existing IPv6 wrapper for all actor/critic and weight-update tcp init methods.

Why

Bare IPv6 node addresses make torch.distributed rendezvous URLs ambiguous. This extends the Slime fix from THUDM/slime#2151 to the additional Miles call sites while leaving IPv4 and hostnames unchanged.

Testing

pytest -q tests/fast/backends/test_ipv6_init_method.py

torch.distributed tcp init URLs require brackets around IPv6 literals. Bare node addresses otherwise produce ambiguous URLs such as tcp://fe80::1:29500.

Use the existing _wrap_ipv6 helper at all three NCCL process-group initialization paths. IPv4 addresses and hostnames remain unchanged. Add integration coverage for IPv6 and IPv4 URL construction.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds IPv6 support for process group initialization across several backend utilities by wrapping the master address with _wrap_ipv6. It also adds a unit test to verify that the initialization method is correctly formatted for both IPv4 and IPv6 addresses. There are no review comments to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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