← Back to Pull requests

[CI] Stabilize MORI overlap and mGPU tests #150

Closed
unknown closed this pull request without merging on Aug 03, 2026 16:48 UTC
View on GitHub
unknown unknown commented on Jul 23, 2026 11:21 UTC
Author

Summary

  • Give the initial NCCL barrier the rank's selected GPU and explicitly clean up model-parallel/custom process groups between topology changes.

  • Treat MORI shared memory as process-scoped, keep its reusable outputs private across overlapped launches, and only exercise valid node-spanning MORI EP layouts.

  • Run chunk-schedule MORI coverage in a fresh torchrun file, group all four data variants under each TP topology lifetime, and make numerical failure collective so one rank cannot strand the others.

  • Give the two measured long-running checkpoint files a 60-minute per-file timeout instead of the normal 30 minutes.
  • Root cause

    There were two independent failures:

    1. The original node-dependent GPU wedge followed the host amdgpu/KFD version, not the container. The investigation nodes were remediated to the stable 6.12.12 driver.
    2. After that remediation, untouched rocm_dev still reproduced a MORI ShmemStates::CheckStatusValid() abort. MORI shared memory/operator state is process-scoped. The chunk-schedule file first ran 38 topology-changing non-MORI cases and then repeatedly tore down/recreated MORI state across 16 cases. On e04 this corrupted later MORI cases. A fresh process alone was insufficient; keeping one operator alive and running the four data variants under each TP topology lifetime was stable.

    Validation

    Final commit 1474683cf:

  • Full CI passed on quanta-ccs-aus-e04-01 in 4h18m: https://github.com/ROCm/Megatron-LM/actions/runs/30291268495

  • All 178 JUnit reports were produced: 4,195 tests, 789 skipped, 0 failures, 0 errors.

  • test_fp8_param.py passed after restoring the proven TE cache reset.

  • The grouped MORI schedule passed all 16 combinations.

  • The trimmed targeted suite passed on quanta-ccs-aus-e04-01 in 22m08s and on dell300x-ccs-aus-e11-21 in 18m34s.

  • Targeted runs included three fresh-process MORI repetitions, every formerly hanging MoE/A2A file, and model swap.

  • No NCCL device-guessing warning appeared.

  • py_compile, bash -n run_unit_tests.sh, and git diff --check passed.
  • Previous full CI with both retained blocks also passed on both node models:

  • e04: https://github.com/ROCm/Megatron-LM/actions/runs/30081613858

  • Dell: https://github.com/ROCm/Megatron-LM/actions/runs/29904875199
  • Diff: 289 lines (+216 / -73) across 3 files Reviewer: leo-automation Review duration: 16167m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 289 lines diff across 3 files
    0.40
    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.339
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #150"
    general weight: 0.35
    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: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    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: 15.7% · Safe to merge
    15.7%