Repository navigation
feat(weight-sync): add ModelExpress trainer publishing - #3259
KavinKrishnan wants to merge 1 commit into
Conversation
8944e2c to
5fc0c0b
Compare
|
/ok to test 5fc0c0b |
|
/ok to test 858bf2f |
Added a correctness fix to this branch: global layer indices under pipeline parallelismPushed What was wrong. Nothing catches this. Every gate compares arrived bytes against the publisher's digest for the same name, and a name collision makes both sides agree on the wrong tensor. Measured on Qwen3-30B-A3B at trainer TP1/PP2/EP8/DP8: coverage 51%, 15.58 GB moved against the engine's own 30.6 GB per-rank footprint. After the fix, coverage is 100.0% and Why It raises rather than falling back to the local name when pipeline parallelism is on and no layer exposes Reviewer notes.
One thing worth deciding in review rather than pre-deciding: Bridge has |
21f804e to
541c6e1
Compare
Lets a Megatron or DTensor policy worker publish its rank-local shards through ModelExpress instead of gathering them first, so generation workers can pull the geometry they need directly. Under pipeline parallelism the published layer indices are global rather than stage-local, so a puller sees one consistent numbering across stages. Signed-off-by: Kavin Krishnan <[email protected]>
541c6e1 to
dad5f7b
Compare
|
Rebased onto Two files needed a real resolution rather than a clean replay. No functional change, so this is still the same review. |
Overview
Adds trainer-side publication for a ModelExpress (MX) weight-refit backend. NeMo RL's
WeightSynchronizerremains the owner of the refit lifecycle; this PR adds the policy operation that a futureModelExpressWeightSynchronizerwill call.The existing DTensor worker and the Megatron worker publish rank-local tensor ownership and topology metadata. Generation-side discovery, transfer, resharding, and installation remain separate reviews.
Changes
publish_weights_for_model_express()to the policy interface and trainer workers.Architecture boundary
This PR does not create a second orchestration path. Existing IPC, HTTP, and NCCL synchronizers are unchanged.
Scope
This PR does not add:
DTensorPolicyWorkerV2/ AutoModel publication;The future synchronizer will own user configuration and construct the internal publisher settings explicitly.
Current status
Partially aligned: rank-local publication is implemented and unit-tested for the existing DTensor worker and the Megatron worker. End-to-end refit requires the generation-worker adapter and the corresponding ModelExpress publisher, planning, and installer APIs.
ModelExpress dependencies
reset_tensors()plus oneadd_tensor()surface for DTensor and Megatron metadata (follow-up review).Relationship to #3068
This is the trainer-publication portion of #3068, separated by ownership and review scope. The umbrella remains a reference for the complete integration.
Test plan