Repository navigation
ci: Bump Megatron-Bridge to 8c46dc42 - #3658
Merged
Merged
Conversation
Bumps 3rdparty/Megatron-Bridge-workspace/Megatron-Bridge from 0c565c9a to
8c46dc42 ("feat(model): let callers supply a media-token validity mask",
NVIDIA-NeMo/Megatron-Bridge#5573), which brings the nested Megatron-LM from
d12f6c8c to 14346b65.
Deliberately stops short of cb3f319a ("build: AUT-1346 pin wandb to 0.27.2",
#5347), the next-newest pyproject-touching commit on Megatron-Bridge main.
That commit pins wandb==0.27.2, which is unsatisfiable against NeMo RL's
wandb>=0.28.0 floor. 8c46dc42 still carries wandb>=0.25.0, so no
override-dependencies entry is needed here.
The uv.lock diff is large but almost entirely inert marker expansion. The only
resolution change is dropping the duplicate fla-core / flash-linear-attention
0.4.2 entries (551 -> 549 packages); collapsing that resolution fork made uv
rewrite dependency markers file-wide. Verified with a control `uv lock` at
0c565c9a, which reproduces the committed lockfile byte-for-byte, so all churn
here is attributable to the bump rather than pre-existing drift.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
Contributor
Author
|
/ok to test 6994333 |
Megatron-Bridge 8c46dc42 includes upstream commit 31121a48b
("refactor(quant)!: simplify quantization examples and fix calibration
dataset load", NVIDIA-NeMo/Megatron-Bridge#5337), a flagged breaking change
that moved shared helpers into a sibling module. examples/quantization/export.py
now starts with:
from quantize_utils import (add_common_model_args, build_bridge_and_provider, ...)
That resolves under `python export.py`, which puts the script's directory on
sys.path[0], but not under runpy.run_path(), which does not modify sys.path for
a plain file path. The wrapper therefore died with:
ModuleNotFoundError: No module named 'quantize_utils'
failing tests/functional/qa_distillation_megatron.sh at the export step.
Insert the upstream script's directory into sys.path before delegating, which
reproduces what a direct `python export.py` invocation would provide.
quantize_utils itself imports only installed packages, so one insert suffices.
The upstream refactor left the CLI surface intact -- --hf-model-id/--tp/--pp
still come from add_common_model_args, and --megatron-load-path/--export-dir
remain in export.py -- so no caller arguments needed updating.
Audited the rest of the repo for the same breaking change: export.py is the only
Megatron-Bridge quantization script NeMo RL invokes, and the only other
runpy.run_path() caller (nemo_rl/__init__.py -> tools/generate_fingerprint.py)
targets a script with stdlib-only imports.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Yi-Fu Wu <[email protected]>
Resolves the uv.lock conflict by regenerating rather than hand-merging. main added torch-memory-saver to the mcore extra (#3602), which collided with this branch's lockfile rewrite from the Megatron-Bridge 8c46dc42 bump. Both sides touch the same regions, so a textual merge is not meaningful for a generated file. Resolution: took main's uv.lock as the base, then re-ran `uv lock` against the merged pyproject.toml with the submodule at 8c46dc42. Verified: - torch-memory-saver>=0.0.9.post1 present under the mcore extra - megatron-bridge metadata resolves wandb>=0.25.0, i.e. the bumped submodule - `uv lock --check` passes (549 packages) pyproject.toml and all other files auto-merged with no conflicts; submodules remain at Megatron-Bridge 8c46dc42 / Megatron-LM 14346b65. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Signed-off-by: Yi-Fu Wu <[email protected]>
Contributor
Author
|
/ok to test 1b1a3be |
Contributor
Author
|
/ok to test 2c6d0b3 |
yuki-97
approved these changes
Aug 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do ?
Bumps 3rdparty/Megatron-Bridge-workspace/Megatron-Bridge from 0c565c9a to 8c46dc42 ("feat(model): let callers supply a media-token validity mask", NVIDIA-NeMo/Megatron-Bridge#5573), which brings the nested Megatron-LM from d12f6c8c to 14346b65.
Deliberately stops short of cb3f319a ("build: AUT-1346 pin wandb to 0.27.2", #5347), the next-newest pyproject-touching commit on Megatron-Bridge main. That commit pins wandb==0.27.2, which is unsatisfiable against NeMo RL's wandb>=0.28.0 floor. 8c46dc42 still carries wandb>=0.25.0, so no override-dependencies entry is needed here.
Issues
List issues that this PR closes (syntax):
Usage
# Add a code snippet demonstrating how to use thisBefore your PR is "Ready for review"
Pre checks:
Additional Information
CI:
d69c26f2d(Megatron-Bridge →8c46dc42) vs main nightlyH100 —
62834617vs62663912(main,d7c6a1c91)llm_distillation_qwen3_32b_to_1_7b_base_1n8g_megatron_tp2pp2cp2_packllm_grpo_llama3_1_8b_instruct_2n8g_megatron_fp8_e2ellm_dpo_llama3_1_8b_instruct_4n8g_megatrontp2pp2_quickllm_grpo_llama3_1_8b_instruct_1n8g_megatron_fp8_rollouts_v3llm_grpo_nano_v2_12b_1n8g_megatronllm_grpo_nemotron3_super_120BA12B_16n8g_megatronllm_grpo_qwen3_8b_base_1n8g_megatron_lorallm_sft_llama3_1_8b_1n8g_megatron_lorallm_sft_llama3_1_8b_1n8g_megatron_seqpackllm_sft_qwen2_5_math7b_2n8g_megatronllm_grpo_llama3_2_1b_instruct_1n8g_megatronllm_grpo_llama3_2_1b_instruct_1n8g_megatron_generationllm_grpo_qwen2_5_math_1_5b_instruct_1n8g_fsdp2tp1_v3vlm_vlm_grpo_qwen2_5_vl_3b_instruct_clevr_1n8g_megatrontp2_v1GB200 —
62834610vs62663829(main GB200 nightly)llm_distillation_qwen3_32b_to_1_7b_base_1n4g_megatron_tp1pp2cp2_packvlm_vlm_grpo_qwen2_5_vl_3b_instruct_clevr_1n4g_megatrontp1_v1llm_dpo_llama3_1_8b_instruct_4n4g_megatrontp1pp2_quickllm_grpo_llama3_2_1b_instruct_1n4g_megatronllm_grpo_llama3_2_1b_instruct_1n4g_megatron_generationllm_grpo_nano_v2_12b_1n4g_megatronllm_sft_qwen2_5_math7b_2n4g_megatronllm_grpo_qwen2_5_math_1_5b_instruct_1n4g_fsdp2tp1_v3🔁 = passed on retry. — = no exact-name counterpart in that nightly (it ran
_tq_simple/_tq_mooncakevariants atd7c6a1c91).22/22 pass, no regressions. Four tests pass on the bump that fail on main.