Skip to content

Add HybridModel MBridge support for nemo:26.08#2005

Open
kevalmorabia97 wants to merge 3 commits into
mainfrom
kmorabia/mbridge-26.08-prep
Open

Add HybridModel MBridge support for nemo:26.08#2005
kevalmorabia97 wants to merge 3 commits into
mainfrom
kmorabia/mbridge-26.08-prep

Conversation

@kevalmorabia97

@kevalmorabia97 kevalmorabia97 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Description

MBridge main (nemo:26.08) will initialize Nemotron-H as HybridModel instead of MambaModel (subclassed of HybridModel). Also make minimum nemo container 26.04

Testing

Tested Nemotron-3-Nano PTQ with MBridge main (fails otherwise)

Tested locally tests/gpu_megatron and tests/examples/megatron_bridge with nemo:26.06.01 + Mount latest MBridge/Mcore

GH CICD tests will be added with nemo:26.08 release

Summary by CodeRabbit

  • New Features
    • Added TE HybridModel stack-spec support and enabled Megatron-Bridge hybrid providers/models for export/import and runtime handling.
  • Updates
    • Dataset packing now oversamples raw text at 16x and improves the packed-mode underflow warning.
    • Quantization: --quant_cfg now defaults to None unless explicitly set (or via --recipe).
    • Distillation example: validation settings are provided via a dedicated top-level validation configuration.
    • Improved plugin import warnings to report the originating call location; model stats now support HybridModel.
  • Deprecations
    • Megatron-Bridge / Megatron-LM optimization features now require NeMo container nemo:26.04 or newer (nemo:26.06 recommended).
    • The Mamba stack specification helper is deprecated.

@kevalmorabia97
kevalmorabia97 requested a review from AAnoosheh July 21, 2026 15:27
@kevalmorabia97
kevalmorabia97 requested review from a team as code owners July 21, 2026 15:27
@copy-pr-bot

copy-pr-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@kevalmorabia97
kevalmorabia97 force-pushed the kmorabia/mbridge-26.08-prep branch from 59105eb to a3c2ecf Compare July 21, 2026 15:29
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Megatron integration adds HybridModel support, compatibility with newer Mamba convolution layouts, renamed hybrid layer-pattern configuration, updated statistics and tests, revised packed-dataset sampling, and related example, warning, pruning-log, and container documentation changes.

Changes

Megatron hybrid model integration

Layer / File(s) Summary
Hybrid stack specifications and Bridge loading
modelopt/torch/nas/plugins/megatron.py, modelopt/torch/utils/plugins/mbridge.py
Adds a TE hybrid stack helper and conditionally configures HybridModel providers and models while preserving the Mamba path.
Mamba representation compatibility
modelopt/torch/nas/plugins/megatron.py, modelopt/torch/nas/plugins/megatron_model_stats.py
Supports HybridModel statistics and module-based or raw-parameter convolution representations.
Hybrid model builder and forward routing
tests/_test_utils/torch/megatron/models.py, tests/_test_utils/torch/megatron/utils.py
Renames the builder pattern argument, routes construction through HybridModel when available, and updates forward dispatch.
Bridge example compatibility
examples/megatron_bridge/prune_minitron.py
Extends provider checks and HF hybrid metadata handling to HybridModelProvider.
Hybrid pattern test wiring
tests/gpu_megatron/torch/export/test_megatron_importer.py, tests/gpu_megatron/torch/nas/plugins/*, tests/gpu_megatron/torch/prune/plugins/*, tests/gpu_megatron/torch/quantization/plugins/test_megatron.py
Updates hybrid layer-pattern arguments and compatibility assertions across GPU tests.

Runtime and data behavior updates

Layer / File(s) Summary
Examples and environment configuration
examples/megatron_bridge/distill.py, examples/megatron_bridge/quantize.py, CHANGELOG.rst, tools/launcher/common/megatron_bridge/import/import.sh
Moves distillation validation settings to ValidationConfig, changes the quantization default to None, and updates the NeMo baseline documentation.
Packed dataset sampling and diagnostics
modelopt/torch/utils/dataset_utils.py, tests/unit/torch/utils/test_dataset_utils.py
Changes packed-mode oversampling to 16x and updates shortage warnings, documentation, and test text.
Plugin import warning context
modelopt/torch/utils/import_utils.py
Adds caller file and line information to verbose plugin-import exception warnings.
Pruning log clarification
modelopt/torch/prune/plugins/mcore_minitron.py
Clarifies that dropped decoder layer numbers are one-indexed.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Loader as load_mbridge_model_from_hf
  participant Provider as HybridModelProvider
  participant Stack as get_te_hybrid_stack_spec
  participant Model as HybridModel
  Loader->>Provider: detect hybrid provider
  Loader->>Stack: configure hybrid stack
  Stack-->>Loader: return ModuleSpec
  Loader->>Model: validate loaded model
Loading

Suggested reviewers: aanoosheh, jenchen13

🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 52.94% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding HybridModel support for MBridge in the Nemo 26.08 release.
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 Scanned all changed modelopt/examples Python files and the PR diff; found no unsafe loads, trust_remote_code, eval/exec, # nosec, or new deps.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch kmorabia/mbridge-26.08-prep

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

@kevalmorabia97

Copy link
Copy Markdown
Collaborator Author

/claude review

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://NVIDIA.github.io/Model-Optimizer/pr-preview/pr-2005/

Built to branch gh-pages at 2026-07-23 08:52 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Comment thread examples/megatron_bridge/quantize.py
Comment thread modelopt/torch/utils/plugins/mbridge.py

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude review passed — no blocking issues found. LGTM

Scope: Full review. 7 files changed (+53/-21). Reviewed all modelopt/ and examples/ source files; CHANGELOG.rst and tools/launcher/.../import.sh are doc/version-bump only.

Findings: CRITICAL: 0, IMPORTANT: 0, SUGGESTION: 2

This is a clean, focused change adding HybridModel / HybridModelProvider support for nemo:26.08 (where Nemotron-H initializes as a plain HybridModel rather than the MambaModel subclass).

Strengths:

  • Plugin laziness preserved: HybridModel/HybridModelProvider imports are gated behind try/except with an HAS_HYBRID flag in both nas/plugins/megatron.py and utils/plugins/mbridge.py; users without nemo:26.08 extras are unaffected.
  • get_te_hybrid_stack_spec mirrors the existing get_te_mamba_stack_spec pattern (deepcopy + SequentialMLP replacement to avoid the grouped-GEMM dependency for pruning), and is correctly added to __all__.
  • Type hints, the isinstance assertion, and the return-tuple docstring are all updated consistently to include the new HybridModel types.
  • The sample_multiplier 8→16 bump in dataset_utils.py correctly threads the value into the warning message so it no longer hardcodes 8x.
  • distill.py moving eval args into ValidationConfig matches the code comment's stated migration path.

Non-blocking suggestions (inline):

  1. quantize.py: --quant_cfg default "fp8"None — with neither --recipe nor --quant_cfg set, the failure surfaces as a misleading "Unsupported --quant_cfg 'None'" deep in get_quant_config; suggest an explicit parser.error guard.
  2. mbridge.py: verify MambaModelProvider is not a subclass of HybridModelProvider — if it is, the isinstance(HybridModelProvider) branch would shadow the Mamba path (branch ordering).

Risk: low. Additive, well-gated, and consistent with existing patterns. Author notes it was tested with Nemotron-3-Nano PTQ on MBridge main, with GH CICD tests to follow at the nemo:26.08 release.

Comment thread examples/megatron_bridge/quantize.py
Comment thread modelopt/torch/utils/plugins/mbridge.py
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.55102% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.81%. Comparing base (0baad64) to head (2b20591).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
modelopt/torch/nas/plugins/megatron.py 73.07% 7 Missing ⚠️
modelopt/torch/utils/plugins/mbridge.py 66.66% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2005      +/-   ##
==========================================
+ Coverage   75.87%   77.81%   +1.93%     
==========================================
  Files         518      518              
  Lines       58544    58574      +30     
==========================================
+ Hits        44422    45578    +1156     
+ Misses      14122    12996    -1126     
Flag Coverage Δ
examples 43.30% <65.30%> (-0.20%) ⬇️
gpu 58.93% <61.22%> (+8.08%) ⬆️
regression 15.13% <2.04%> (+0.06%) ⬆️
unit 55.02% <4.08%> (-0.03%) ⬇️

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 2

🧹 Nitpick comments (2)
modelopt/torch/utils/plugins/mbridge.py (1)

38-46: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Clarify the container baseline for HybridModel support.

The hybrid provider path is annotated nemo:26.08+, while the release note and import helper advertise nemo:26.04+ without distinguishing generic Bridge support from HybridModel support. Document 26.08 as the hybrid requirement, or explicitly state that 26.04 applies only to non-hybrid workflows.

  • modelopt/torch/utils/plugins/mbridge.py#L38-L46: document the hybrid-specific 26.08+ requirement.
  • CHANGELOG.rst#L19-L19: distinguish the generic 26.04 baseline from HybridModel support.
  • tools/launcher/common/megatron_bridge/import/import.sh#L19-L19: clarify whether this script supports hybrid models on 26.04.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modelopt/torch/utils/plugins/mbridge.py` around lines 38 - 46, Clarify the
version baseline across all affected documentation: in
modelopt/torch/utils/plugins/mbridge.py lines 38-46, document that
HybridModelProvider and HybridModel require nemo:26.08+; in CHANGELOG.rst line
19, distinguish the generic Megatron Bridge 26.04+ baseline from hybrid support;
and in tools/launcher/common/megatron_bridge/import/import.sh line 19,
explicitly state whether the 26.04+ script supports hybrid models.
examples/megatron_bridge/quantize.py (1)

127-127: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Validate the required quantization source at the CLI boundary.

With this new default, omitting both --recipe and --quant_cfg reaches the unsupported-config error in get_quant_config() instead of producing a clear parser error. If removing the implicit FP8 preset is intentional, require one of these options during argument parsing; otherwise add an explicit fallback.

Proposed validation
     args = parser.parse_args()
 
+    if args.recipe is None and args.quant_cfg is None:
+        parser.error("one of --recipe or --quant_cfg is required")
+
     if args.moe_calib_experts_ratio is not None:
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/megatron_bridge/quantize.py` at line 127, Update the CLI argument
definition in the quantization entrypoint so omitting both --recipe and
--quant_cfg is rejected during argument parsing when no implicit FP8 preset
exists. Require one of the two options together while preserving their existing
individual handling, or restore an explicit fallback configuration if that
preset is still intended.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@modelopt/torch/utils/dataset_utils.py`:
- Around line 840-842: Update the packed-mode oversampling documentation in
get_dataset_dataloader and the related packing test comment from 4x and 8x to
16x, respectively, so all references match the sample_multiplier behavior.
- Around line 865-867: Update the pack=True exhaustion message near the
row-count diagnostic to prioritize shortening max_sample_length or supplying
longer, more token-dense samples; remove the broad recommendation to increase
num_samples, or qualify it only for sources that can provide additional useful
content.

---

Nitpick comments:
In `@examples/megatron_bridge/quantize.py`:
- Line 127: Update the CLI argument definition in the quantization entrypoint so
omitting both --recipe and --quant_cfg is rejected during argument parsing when
no implicit FP8 preset exists. Require one of the two options together while
preserving their existing individual handling, or restore an explicit fallback
configuration if that preset is still intended.

In `@modelopt/torch/utils/plugins/mbridge.py`:
- Around line 38-46: Clarify the version baseline across all affected
documentation: in modelopt/torch/utils/plugins/mbridge.py lines 38-46, document
that HybridModelProvider and HybridModel require nemo:26.08+; in CHANGELOG.rst
line 19, distinguish the generic Megatron Bridge 26.04+ baseline from hybrid
support; and in tools/launcher/common/megatron_bridge/import/import.sh line 19,
explicitly state whether the 26.04+ script supports hybrid models.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: bb158952-0cce-421c-a2e3-c8e2648f838c

📥 Commits

Reviewing files that changed from the base of the PR and between 7d5d3f9 and a3c2ecf.

📒 Files selected for processing (7)
  • CHANGELOG.rst
  • examples/megatron_bridge/distill.py
  • examples/megatron_bridge/quantize.py
  • modelopt/torch/nas/plugins/megatron.py
  • modelopt/torch/utils/dataset_utils.py
  • modelopt/torch/utils/plugins/mbridge.py
  • tools/launcher/common/megatron_bridge/import/import.sh

Comment thread modelopt/torch/utils/dataset_utils.py
Comment thread modelopt/torch/utils/dataset_utils.py Outdated
@kevalmorabia97
kevalmorabia97 force-pushed the kmorabia/mbridge-26.08-prep branch from a3c2ecf to 09cadd3 Compare July 21, 2026 15:56

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@modelopt/torch/utils/plugins/mbridge.py`:
- Around line 102-107: Update the provider handling around HybridModelProvider
and MambaModelProvider so get_te_hybrid_stack_spec and get_te_mamba_stack_spec
do not overwrite specifications already supplied through provider_overrides.
Preserve each provider’s existing hybrid_stack_spec or mamba_stack_spec when
present; only install the generic spec when the corresponding value is unset, or
merge MoE-related changes while retaining the provider-specific layer
composition and explicit override precedence.
- Around line 62-64: Update the fourth return-type element in the relevant
mbridge function to include the full VLM wrapper type, using the existing
MegatronModule base type or an explicit supported wrapper union alongside
GPTModel, MambaModel, and HybridModel. Keep the implementation’s VLM return
behavior unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1f3c3691-4eee-421c-90d9-5245861be04e

📥 Commits

Reviewing files that changed from the base of the PR and between a3c2ecf and 09cadd3.

📒 Files selected for processing (8)
  • CHANGELOG.rst
  • examples/megatron_bridge/distill.py
  • examples/megatron_bridge/quantize.py
  • modelopt/torch/nas/plugins/megatron.py
  • modelopt/torch/utils/dataset_utils.py
  • modelopt/torch/utils/plugins/mbridge.py
  • tests/unit/torch/utils/test_dataset_utils.py
  • tools/launcher/common/megatron_bridge/import/import.sh
🚧 Files skipped from review as they are similar to previous changes (6)
  • tools/launcher/common/megatron_bridge/import/import.sh
  • examples/megatron_bridge/quantize.py
  • modelopt/torch/utils/dataset_utils.py
  • examples/megatron_bridge/distill.py
  • CHANGELOG.rst
  • modelopt/torch/nas/plugins/megatron.py

Comment thread modelopt/torch/utils/plugins/mbridge.py Outdated
Comment thread modelopt/torch/utils/plugins/mbridge.py
@kevalmorabia97
kevalmorabia97 force-pushed the kmorabia/mbridge-26.08-prep branch from 09cadd3 to 9019122 Compare July 21, 2026 16:14
@kevalmorabia97
kevalmorabia97 requested a review from jenchen13 July 21, 2026 17:17
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
@kevalmorabia97
kevalmorabia97 force-pushed the kmorabia/mbridge-26.08-prep branch from 9019122 to a1e035a Compare July 22, 2026 22:19

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.

Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.

👉 Steps to fix this

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
examples/megatron_bridge/prune_minitron.py (1)

553-559: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Read hybrid metadata from the pruned language model.

For VLMs, unwrapped_model is the outer wrapper while language_model is the pruned HybridModel. This new provider path reads hybrid_layer_pattern from unwrapped_model at Lines 556 and 652, which can raise AttributeError or write stale metadata. Use language_model consistently.

Proposed fix
-            if hasattr(unwrapped_model, "hybrid_override_pattern")
+            if hasattr(language_model, "hybrid_override_pattern")
             else "hybrid_layer_pattern"
         )
-        setattr(provider, hybrid_key, getattr(unwrapped_model, hybrid_key))
+        setattr(provider, hybrid_key, getattr(language_model, hybrid_key))
...
-            hf_cfg.hybrid_override_pattern = getattr(unwrapped_model, hybrid_key)
+            hf_cfg.hybrid_override_pattern = getattr(language_model, hybrid_key)

Also applies to: 649-651

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/megatron_bridge/prune_minitron.py` around lines 553 - 559, Update
the hybrid provider metadata assignments in the paths around the provider
handling at lines 553 and 649 to read the selected hybrid key from
language_model instead of unwrapped_model. Keep the existing
hybrid_override_pattern versus hybrid_layer_pattern key selection and assign the
value from the pruned HybridModel consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/_test_utils/torch/megatron/models.py`:
- Around line 442-445: Update the validation near hybrid_layer_pattern
construction to explicitly reject any "|" characters before checking its length.
Remove the pipe-stripping validation and assert that the pattern is pipe-free,
while preserving the existing num_layers length check for valid patterns.

---

Outside diff comments:
In `@examples/megatron_bridge/prune_minitron.py`:
- Around line 553-559: Update the hybrid provider metadata assignments in the
paths around the provider handling at lines 553 and 649 to read the selected
hybrid key from language_model instead of unwrapped_model. Keep the existing
hybrid_override_pattern versus hybrid_layer_pattern key selection and assign the
value from the pruned HybridModel consistently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 02808af7-98f7-41a9-94fd-060aa447679a

📥 Commits

Reviewing files that changed from the base of the PR and between 9019122 and a1e035a.

📒 Files selected for processing (19)
  • CHANGELOG.rst
  • examples/megatron_bridge/distill.py
  • examples/megatron_bridge/prune_minitron.py
  • examples/megatron_bridge/quantize.py
  • modelopt/torch/nas/plugins/megatron.py
  • modelopt/torch/nas/plugins/megatron_model_stats.py
  • modelopt/torch/prune/plugins/mcore_minitron.py
  • modelopt/torch/utils/dataset_utils.py
  • modelopt/torch/utils/import_utils.py
  • modelopt/torch/utils/plugins/mbridge.py
  • tests/_test_utils/torch/megatron/models.py
  • tests/_test_utils/torch/megatron/utils.py
  • tests/gpu_megatron/torch/export/test_megatron_importer.py
  • tests/gpu_megatron/torch/nas/plugins/test_megatron_mamba_dynamic_modules.py
  • tests/gpu_megatron/torch/nas/plugins/test_megatron_model_stats.py
  • tests/gpu_megatron/torch/prune/plugins/test_mcore_mamba_minitron_pruning.py
  • tests/gpu_megatron/torch/quantization/plugins/test_megatron.py
  • tests/unit/torch/utils/test_dataset_utils.py
  • tools/launcher/common/megatron_bridge/import/import.sh
🚧 Files skipped from review as they are similar to previous changes (7)
  • CHANGELOG.rst
  • tools/launcher/common/megatron_bridge/import/import.sh
  • examples/megatron_bridge/quantize.py
  • modelopt/torch/utils/dataset_utils.py
  • tests/unit/torch/utils/test_dataset_utils.py
  • examples/megatron_bridge/distill.py
  • modelopt/torch/utils/plugins/mbridge.py

Comment thread tests/_test_utils/torch/megatron/models.py Outdated
@kevalmorabia97
kevalmorabia97 force-pushed the kmorabia/mbridge-26.08-prep branch from a1e035a to e348e26 Compare July 23, 2026 05:01
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>
@kevalmorabia97
kevalmorabia97 force-pushed the kmorabia/mbridge-26.08-prep branch from e348e26 to ed67baf Compare July 23, 2026 05:48
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