Repository navigation
Conversation
Megatron-Bridge ae0a1b026 -> 1ec9ce8b0 (nested Megatron-LM e0a4bfed7 -> 9261f941c). This brings in the Megatron-LM inference fixes that prefill/decode serving through Dynamo needs: multiplexed handoff claims, free Mamba slot check before admission, recurrent-state dummy slot for tp_ep > 1, hybrid MoE + MTP disaggregated serving, eager prefill padding bound, resharding fixes for the native refit path, the Dynamo worker streaming interval, and InferenceConfig.disaggregation_role. This Bridge requires transformers>=5.21.1,<5.24, so the mcore extra moves from 5.16.1 to 5.21.1 and the base range's upper bound follows it. The vllm, automodel, sglang and trtllm extras keep their own pins. The relock also moves filelock, multi-storage-client, virtualenv, gigatoken, nvidia-cudnn-frontend and adds pyroute2. Locked with uv 0.11.28 (revision 3 kept); uv 0.11.28 and the Dockerfile's 0.13.6 both pass lock --check. Signed-off-by: Laura Dang <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Nightly triage: pipeline 87088330 (PR head a104935: MBridge 1ec9ce8b0, transformers 5.21.1 for
|
| Job | Attempts | Failure |
|---|---|---|
build-NeMo-RL-gym |
581980527, 582104973 failed; 3rd attempt running | AssertionError: transformers 5.21.1 detected. The deepseek_v3 tokenizer-blocklist patch was verified against <5.20. raised in the Gym prefetch step |
build-NeMo-RL-gym-sbsa |
581980528 failed; 2nd attempt running | same |
The assert is in _patch_transformers_tokenizer_class_set and runs when nemo_rl.models.policy is imported. This PR moves the mcore extra to transformers 5.21.1, so even once the image builds, every Megatron worker would hit the same assert on import.
Suggested fix: raise the assert's bound instead of dropping the patch. In transformers 5.21.1, tokenization_auto.py still lists deepseek_v3 in MODELS_WITH_INCORRECT_HUB_TOKENIZER_CLASS, and the loop that fills TOKENIZER_MAPPING_NAMES from that set is unchanged from 5.16.1. The patch is still needed and its discard/pop still apply. A bound of < 5.24 matches Megatron-Bridge's transformers>=5.21.1,<5.24. After that, rerun the nightly for the flake-vs-bump test comparison.
Nightly triage, round 2: pipeline 87145008 (PR head + transformers assert fix)To get past the image-build failure from my previous comment, I ran this nightly on the PR head plus one commit that raises the deepseek_v3 tokenizer patch's assert bound to 124 passed, 107 failed. Baselines:
1. Every PPO Megatron test:
|
| Test | HW | Nightly job | Failure | Rerun |
|---|---|---|---|---|
grpo_nanov3_30BA3B_2n4g_megatron_generation_noncolocated_zero_kl_mxfp8 |
GB200 | [583067005 is the rerun; nightly job in 87145008] | min/max(train/token_mult_prob_error) == 1 fails at 1.049 / 1.071. On 11-30 both were exactly 1.0 (12-01 failed on an rsync I/O error). Generation runs on Megatron inference, which this bump updates. |
pending, pipeline 87274560 |
Infra: H100 disk quota (62 tests)
62 cw_dfw failures hit Disk quota exceeded, and 57 of those tests passed on 11-30. The quota is also why single-test reruns on cw_dfw can't run right now: pipeline 87244955 failed in checkout_repo with the same error. Someone needs to free space under coreai_dlalgo_genai/nemo_rl_ci before the H100 half of this nightly can be rerun cleanly.
Not related to the bump
- Already failing on both
mainbaselines (16): TRT-LLM NIXL disagg (2),qwen3_8b_*_automodel_{dspark,dflash}, TransferQueuereference_policy_logprobs(2),qwen3_30ba3b_4n8g_megatron_qa_nvfp4,*_token_capture*(4),super_rlvr/super_rlhf,deepscaler_1_5b_8K_tq_simple,gspo_deepscaler_1_5b_8K_tq_nixl,nanov3_30ba3b_3n8g_megatron_dynamo_swe1. - One-offs in paths this bump doesn't touch (Automodel or vLLM) or with an infra cause:
deepscaler_1_5b_16K: CUDA error in vLLM at step 6.gemma3_1b_it_1n4g_automodel: GB200, stopped at step 395 of 400, near the 4 h limit.dapo_gemma4_12b_it_2n8g_automodel: Slurm step failure.ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_noncolocated_async: log size limit.nanov3 ... mxfp8_rollouts_packed_refit: flaky (failed 11-30, passed 12-01).
- Unclear, rerun blocked by the quota:
llama3_1_8b_instruct_2n8g_megatron_fp8_e2e{,_tq_nixl}: the log was truncated at GitLab's 100 MB limit. FP8 config spam fills it onmaintoo.qwen3_8b_base_1n8g_fp8_kvcache_megatron: stopped at step 43 with no traceback in the GitLab log.
Next: fix 1 (output_dtype) and fix 2 (checkpoint cache), push the assert fix to this branch, then rerun once cw_dfw has space. I'll update this thread with the zero_kl rerun result.
|
Update on item 3: the GB200 rerun (job 583067005, pipeline 87274560) reproduces the failure, so it is caused by the bump.
|
|
Rerun of the 62 tests that hit
The bump-caused failures from the earlier comments haven't changed:
|
|
Heads-up from testing this pin with #5516: with The guard is in - # Transformers 5.16.1 still ships both registry entries, so the patch remains
- # load-bearing across the currently supported backend environments.
+ # Transformers 5.21.1 still lists deepseek_v3 in
+ # MODELS_WITH_INCORRECT_HUB_TOKENIZER_CLASS, so the patch remains load-bearing
+ # across the currently supported backend environments.
@@
- assert PkgVersion(transformers.__version__) < PkgVersion("5.20.0"), (
+ assert PkgVersion(transformers.__version__) < PkgVersion("5.22.0"), (
f"transformers {transformers.__version__} detected. "
- "The deepseek_v3 tokenizer-blocklist patch was verified against <5.20. "
+ "The deepseek_v3 tokenizer-blocklist patch was verified against <5.22. "With that change, this PR's pin (Bridge |
What does this PR do ?
Bumps Megatron-Bridge from
ae0a1b026to1ec9ce8b0(159 commits, fast-forward), which moves the nested Megatron-LM frome0a4bfed7to9261f941c.1ec9ce8b0is the first Megatron-Bridgemaincommit whose Megatron-LM has all of the inference fixes that prefill/decode serving through Dynamo needs:--streaming-intervalfor the Dynamo workerInferenceConfig.disaggregation_role(decode engines skip the Mamba prefix cache)Dependency changes
transformers>=5.21.1,<5.24, so themcoreextra moves from 5.16.1 to 5.21.1 and the base range's upper bound follows it (an install without a backend extra resolves to 5.21.1). Thevllm,automodel,sglangandtrtllmextras keep their own pins.filelock(4.3.1),multi-storage-client(1.5.0),virtualenv(21.15.13),gigatoken(0.11.0),nvidia-cudnn-frontend(1.33.0) and addspyroute2.provides-extraspresent);uv lock --checkpasses with both uv 0.11.28 and the Dockerfile's uv 0.13.6.Testing
tests/unit/test_dependency_pins.pyandtests/unit/test_transformers_compat.py: 20 passed (CPU).🤖 Generated with Claude Code