Skip to content

Bump CI Megatron-Bridge to e42042fa8 and test Qwen3.5-VL bridge export with full NVFP4 - #3125

Open
kevalmorabia97 wants to merge 1 commit into
mainfrom
kmorabia/bump-mbridge-gdn-export
Open

kevalmorabia97 wants to merge 1 commit into
mainfrom
kmorabia/bump-mbridge-gdn-export

Conversation

@kevalmorabia97

@kevalmorabia97 kevalmorabia97 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Type of change: new tests

Usage

N/A

Testing

Run in nvcr.io/nvidian/nemo:26.10.rc9 with Megatron-Bridge e42042fa8 (and its Megatron-LM) overlaid as the CI action does, on 2× RTX 6000 Ada.

  • tests/gpu_megatron/torch/export + tests/gpu_megatron/torch/quantization: 308 passed, 40 skipped (GPU count, apex, known TODOs), including test_matches_megatron_exporter[qwen3_5_moe_vl-nvfp4].
    • 1 failure, [llama-nvfp4]: TE's fused RoPE has no kernel for this GPU in that container, and it fails the same way on main.
  • tests/examples/megatron_bridge: 96 passed.
    • The 11 tests that train fail before the first step with TE multi_tensor_apply / fused_attn "no kernel image is available for execution on the device" (the container's TE has no Ada build). They could not be checked locally; CI covers them.
  • Earlier, with the same Megatron-Bridge change: the local parity run against export_mcore_gpt_to_hf on a tiny Qwen3.5-VL-MoE with every linear layer in NVFP4 and FP8 matched bit for bit at bridge TP2.

Before your PR is "Ready for review"

  • Is this change backward compatible?: ✅
  • If you copied code from any other sources or added a new PIP dependency, did you follow guidance in CONTRIBUTING.md: N/A
  • Did you write any new necessary tests?: ✅ (extends the existing parity test)
  • Did you update Changelog?: N/A
  • Did you get Claude approval on this PR?: ❌

Additional Information

Follow-up of #3066 and NVIDIA-NeMo/Megatron-Bridge#6714.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated Megatron-Bridge setup instructions to use the newer project revision.
  • Tests
    • Updated Qwen3.5 MoE-VL export validation to use the nvfp4 quantization configuration.
    • Refined a test comment to describe the projections covered.

…ith full NVFP4

Megatron-Bridge e42042fa8 (NVIDIA-NeMo/Megatron-Bridge#6714) exports quantized
GatedDeltaNet in_proj, so the bridge-vs-Megatron-exporter parity test now covers
Qwen3.5-VL-MoE with every linear layer in NVFP4 instead of MLP only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
@kevalmorabia97
kevalmorabia97 requested review from a team as code owners October 29, 2026 19:59
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 70147bc and 000fbef.

Files selected for processing: 3
  • .github/actions/megatron-from-source/action.yml
  • examples/megatron_bridge/README.md
  • tests/gpu_megatron/torch/export/test_quantized_mbridge_export.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

Walkthrough

The default and documented Megatron-Bridge commit changed. The Qwen3.5 MoE-VL quantized export test now uses nvfp4, and its test ID changed. The Nemotron-H comment now refers only to Mamba projections.

Changes: Megatron-Bridge updates

Layer / File(s) Summary
Megatron-Bridge commit selection
.github/actions/megatron-from-source/action.yml, examples/megatron_bridge/README.md
The action default and README checkout command now use commit e42042fa83aed837ce6bc13480c06350ea091f1a.
Quantized export test configuration
tests/gpu_megatron/torch/export/test_quantized_mbridge_export.py
The Qwen3.5 MoE-VL case now uses nvfp4 and test ID qwen3_5_moe_vl-nvfp4. The Nemotron-H comment now refers only to Mamba projections.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: chenhanyu, shengliangxu, danielkorzekwa

Merge Risk: Minimal · up to 000fb

No actionable merge-blocking risk is established by the supplied change context.

Pre-merge checks: Passed 6
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main changes: updating the CI Megatron-Bridge commit and testing Qwen3.5-VL bridge export with full NVFP4 quantization.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Security Anti-Patterns Passed PASS. The pull request changes only a Megatron-Bridge commit reference, README checkout instructions, and a test quantization configuration/comment. The added Python lines contain no torch.load(..., w…
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (2 skipped: 2 unsupported.)

Full details: Security Anti-Patterns

Explanation

PASS. The pull request changes only a Megatron-Bridge commit reference, README checkout instructions, and a test quantization configuration/comment. The added Python lines contain no torch.load(..., weights_only=False), numpy.load(..., allow_pickle=True), hardcoded trust_remote_code=True, eval/exec, or # nosec. No dependency manifests changed.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.72%. Comparing base (70147bc) to head (000fbef).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3125      +/-   ##
==========================================
+ Coverage   78.16%   78.72%   +0.56%     
==========================================
  Files         664      664              
  Lines       76377    76377              
==========================================
+ Hits        59698    60130     +432     
+ Misses      16679    16247     -432     
Flag Coverage Δ
examples-diffusers 19.85% <ø> (-0.08%) ⬇️
examples-gpt-oss 13.43% <ø> (-0.04%) ⬇️
examples-hf_ptq 23.43% <ø> (-0.06%) ⬇️
examples-llm_distill 13.50% <ø> (-0.04%) ⬇️
examples-llm_eval 17.22% <ø> (-0.01%) ⬇️
examples-llm_qat 17.35% <ø> (-0.09%) ⬇️
examples-llm_sparsity 16.73% <ø> (-0.01%) ⬇️
examples-megatron_bridge 26.41% <ø> (-0.34%) ⬇️
examples-specdec_bench 13.21% <ø> (-0.04%) ⬇️
examples-speculative_decoding 17.47% <ø> (-0.07%) ⬇️
examples-torch_onnx 21.14% <ø> (-0.09%) ⬇️
examples-torch_trt 15.17% <ø> (-0.05%) ⬇️
examples-vllm_serve 17.45% <ø> (-0.03%) ⬇️
gpu 54.83% <ø> (+1.91%) ⬆️
regression 14.99% <ø> (-0.05%) ⬇️
unit 62.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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