Skip to content

fix(npu): bracket IPv6 hosts in distributed init methods#2199

Open
EazyReal wants to merge 1 commit into
THUDM:mainfrom
EazyReal:fix/npu-ipv6-init-methods
Open

fix(npu): bracket IPv6 hosts in distributed init methods#2199
EazyReal wants to merge 1 commit into
THUDM:mainfrom
EazyReal:fix/npu-ipv6-init-methods

Conversation

@EazyReal

Copy link
Copy Markdown
Contributor

PR #2151 fixed the current-main weight-update rendezvous URL, but the documented NPU setup checks out Slime v0.2.2 and applies docker/npu_patch/slime.patch. That pinned code has three additional actor/critic and weight-update tcp init methods that still interpolate bare IPv6 addresses.

Extend the NPU patch to use the existing _wrap_ipv6 helper at those three sites. The updated patch applies cleanly to v0.2.2, leaves 3 wrapped and 0 unwrapped target URLs, and all three resulting modules compile.

The documented NPU setup checks out slime v0.2.2 and applies docker/npu_patch/slime.patch. That pinned code still constructs three torch.distributed tcp URLs from bare node addresses, so IPv6 hosts produce ambiguous init methods.

Extend the NPU patch to import the existing _wrap_ipv6 helper and use it in the Megatron actor/critic, distributed weight-update, and FSDP weight-update paths. The resulting patch applies cleanly to v0.2.2, leaves no unwrapped target URLs, and the three patched modules compile.
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