← Back to Pull requests

fix(musa): enable MCCL-backed PyNccl for pipeline groups #372

Closed
unknown closed this pull request without merging on Nov 26, 2026 12:33 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 09:31 UTC
Author

Summary

  • Select libmccl.so.2 in the shared find_nccl_library() on MUSA and keep VLLM_NCCL_SO_PATH as the override.

  • Enable PyNccl by default for MUSA PP groups. Other MUSA groups retain existing dispatch unless explicitly opted in. MCCL 2.30.4 has reproduced hangs in mixed-size grouped collectives. MCCL library discovery alone does not establish the NVIDIA GIN requirement for DeepEP V2.

  • Query the native MUSA stream from the shared current_stream(). PyNccl and PP synchronization use that same helper.

  • The generalized PP eager initialization from the initial draft was removed after the runtime evidence failed to establish a requirement. The existing GLM-specific behavior remains in the base.
  • Validation

  • Two S5000 GPUs, MUSA 5.2.0, Torch and torch_musa 2.13.0.post1, torchada 0.1.111, MCCL 2.30.4. Used the 20261124 pre-built image at sha256:3bd17e280acd003685a88a337cde333022c713449bfd59a0a7ab6936619fa889 with Python runtime changes overlaid. Image source revision 6b7d85658ca41132a618c6f1127ee3417dd42c8f.

  • The stock PP communicator disabled PyNccl for both ranks. Both patched ranks loaded MCCL and exchanged 4,096 FP32 values in each direction. Payloads matched, and the native MCCL stream handles matched the two expected non-default streams.

  • 156 focused CPU tests passed. Patch series replay and round-trip passed for all 221 entries on pinned vLLM 5df63a7203.
  • Validated PP2 configuration

    On b85194dab with the requested 20261124 image and two S5000 GPUs, Qwen3-0.6B BF16, TP1/PP2, multiprocessing, FA3 and MRV1 served both greedy HTTP requests with VLLM_USE_V2_MODEL_RUNNER=0 and --no-async-scheduling. The exact PR overlay passed with default graph settings. Two independent runs with capture sizes 1 and 2 also passed and returned identical token IDs. Both ranks logged lazy initialization of the unbatched ProcessGroupMCCL P2P communicator. The exact PR overlay again passed bidirectional PyNccl send/recv on non-default streams.

    Open PP2 failure

    Earlier runs using Model Runner V2 exhibited intermittent stalls in warmup device synchronization or at the final stage's output copy event. Changing the scheduling default, ordering activation sends before broadcast, and experimentally routing activations directly through PyNccl each failed to eliminate the stalls. The MRV1/MRV2 control points to the v0.32 runner path as the next boundary to investigate. The PR keeps the original worker transport and scheduling behavior.

    Diff: 311 lines (+233 / -78) across 3 files Reviewer: yeahdongcn Review duration: 182m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 311 lines diff across 3 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.344
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #372"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.3% (MEDIUM) · Higher = larger blast radius
    45.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.9% · Safe to merge
    17.9%