Skip to content

build: bump vllm to 0.33.0 - #5153

Merged
yuki-97 merged 45 commits into
mainfrom
terryk/bump-vllm-0.33
Nov 13, 2026
Merged

yuki-97 merged 45 commits into
mainfrom
terryk/bump-vllm-0.33

Conversation

@terrykong

@terrykong terrykong commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do ?

Bumps vLLM 0.29.0 → 0.33.0 and fixes what the bump breaks. Draft: CI is still running; the tables under Testing are the record of what ran.

Merge base: fc009e635e (main was merged in at 685fc22). The "main" column in the nightly table is the scheduled main nightly from the day before and the day of the branch run.

Three decisions to confirm

  1. Only the vLLM venv moves to torch 2.14. The Megatron and Automodel venvs stay on torch 2.13. torch 2.14's headers need C++20, and DeepEP, flash-attn, mamba-ssm and causal-conv1d (built from source in those venvs) compile as C++17. The trainers hand weights to vLLM through CUDA IPC handles; torch 2.13 and 2.14 write the same handle version (3), so vLLM on 2.14 can open handles from a 2.13 trainer. The colocated-refit tests below pass with this split. It did cause one hang, fixed in 9fd43dd (see the changes table): the two torch versions shared a JIT extension build folder.
  2. The vLLM venv no longer builds deep_gemm and deep_ep from source.
    • deep_gemm: the vLLM 0.33 wheel ships its own prebuilt DeepGEMM 2.8.1 (x86_64 and aarch64) and only uses it when import deep_gemm fails. Our pinned standalone build (2.5.0) was shadowing it, and it does not compile against torch 2.14.
    • deep_ep: the pinned DeepEP does not compile against torch 2.14 either. NeMo-RL's vLLM engines use vLLM's default allgather_reducescatter all2all backend, which does not need it. Selecting a deepep_* backend through vllm_kwargs would now fail at engine start. The trainer venvs keep DeepEP.
  3. Router replay (R3) now needs vLLM prefix caching on. vLLM 0.33 stores routed experts next to its prefix-cache blocks and refuses to return them with prefix caching off. The four R3 recipes that turned it off now turn it on, the R3 guide says so, and the worker raises a clear error for the old combination (03ace44). Our docs used to recommend the opposite, because 0.29 sometimes returned incomplete routes with prefix caching on.

Changes

Dependencies (pyproject.toml, uv.lock) — f61c461, f61c461, f61c461

Package main This PR Why
vllm 0.29.0 0.33.0 the bump
torch / torchvision (vllm extra) 2.13.0 / 0.28.0 2.14.0 / 0.29.0 0.33 wheels are built against torch 2.14
torch (mcore, automodel, trtllm / sglang extras) 2.13.0 / 2.11.0 unchanged see decision 1; trtllm and sglang have no torch 2.14 builds
transformers (vllm extra) 5.12.1 5.16.1 vLLM 0.33 needs >=5.16.1,<5.21
flashinfer (python, cubin, jit-cache; vllm extra) 0.6.18 0.7.2.post1 pinned by vLLM 0.33
flashinfer-jit-cache-sm* – 0.7.2.post1 jit-cache 0.7.2 is a meta package over one wheel per GPU arch; they only exist on the flashinfer cu130 index, so each is a direct requirement. sm110a / sm121a are aarch64 only
nvidia-cutlass-dsl (vllm extra) 4.6.2 4.8.0 pinned by vLLM 0.33
deep_gemm, deep_ep (vllm extra) source builds removed (f61c461) see decision 2

New test — 617ed69

test_every_vllm_source_patch_applies_to_installed_vllm runs the worker's patch entry point on copies of the installed vLLM files and fails on any warning. Most patches in patches.py only log when their anchor is gone, so a vLLM bump could drop one without failing anything until a GPU job hit it.

vLLM source patches (patches.py) — 5 of 11 broke on 0.33

Patch What happened on 0.33 Fix
v1 Ray executor py_executable v1/executor/ray_executor.py was deleted; the patch raised and every worker died at startup 30b4cd8: patch removed (it was already unused under RayExecutorV2); env-var forwarding kept
monolithic routed-experts capture anchor moved (new prepare_monolithic_logits line); silent miss → all-zero routes for router replay 919785d
routed-experts capture router fallback capture is now bound through a RoutedExpertsSink on the layer; silent miss → per-token NVFP4 kernel rejected 0c9e420
final vision LayerNorm vLLM now builds the layer itself; the patch raised at startup cb853e3: patch re-written on top of upstream's layer, keeps FP32-before-cast, the "both weights loaded" gate, and the bare weight names
NamespaceTool openai compat anchor gone; not needed (vLLM venv has openai 2.44.0) 9e0eccf: patch removed
vllm#52142 compile-cache backport (added on main after this branch started) vLLM 0.33 has the fix; the patch raises when persistent compile caches are on 27f9626: patch removed

The other six (eagle3 lm_head, TCPStore port, MessageQueue bind retry, RADIO LayerScale, RADIO native loader, GLM decoder SP-MoE) still apply; the first three were re-read against the 0.33 source.

vLLM 0.33 API and behaviour changes

Area What broke Fix
FP8 multi-GPU hook VLLM_USE_RAY_V2_EXECUTOR_BACKEND and RayDistributedExecutor are gone cc454ae
nsys profiling of vLLM workers imported RayDistributedExecutor ee87e19: override moved to RayExecutorV2._build_runtime_env
async HTTP server vllm.entrypoints.chat_utils is gone 47be665
FP8 KV cache post-load vllm.utils.torch_utils.is_quantized_kv_cache is gone 99cc78e
MXFP8 layouts after a native reload ModelOptMxFp8LinearMethod is gone; the import sat in except ImportError: return, so the rebuild was skipped silently 03b9800
ModelOpt NVFP4 W4A4 / W4A16 configs ModelOptNvFp4LinearMethod and LinearMethodCls are gone (one generic ModelOptLinearMethod now) 181b8e6, 181b8e6
legacy MXFP8 refit post-load patch patched a method on the removed class 91f44fe
per-token NVFP4 0.33 has its own per-token flag and a 512 hidden-size alignment for non-gated MoEs e93553d
FP8 refit layout swap replace_parameter lost its prefer_copy argument; FP8 engines that swap a parameter layout died at startup 241949e
router replay (R3) routed experts need prefix caching on (decision 3) 03ace44, 03ace44
YaRN 256k recipe 0.33 reads max_position_embeddings as already YaRN-scaled, so the recipe's max_model_len was rejected 708daf6
NVFP4 real-quant test scripts they grep for "Detected ModelOpt NVFP4 checkpoint", a log line 0.33 removed; the run trained fine and then failed the check 574eb8b: check quantization=nemo_modelopt_... instead
nccl_reshard refit (Megatron → vLLM) each end chose the real nccl.m2n.reshard op or the Python transfer by what its own venv can import. flashinfer 0.7.2 installs nccl-extensions (which ships nccl.m2n) in the vLLM venv only, so the two ends used different transfers and the refit hung in NCCL 8e4e2f1: the trainer records its choice in the refit info and vLLM follows it
ModelOpt fake-quant runs (trainer on torch 2.13, vLLM on torch 2.14) torch 2.14 leaves a JIT extension's build lock file in place; torch 2.13 reads an existing lock file as a running build and waits forever. Both venvs built ModelOpt's FP8 CUDA extension in one folder, so the trainer hung in get_logprobs 9fd43dd: one build folder per torch version (TORCH_EXTENSIONS_DIR)
functional test scripts that run uv run --extra mcore the driver venv now resolves torch 2.14 while the mcore / automodel extras stay on 2.13. uv run --extra mcore put a TransformerEngine build for torch 2.13 in the shared driver venv, the next plain uv run moved torch back to 2.14, and every later test in the container failed with an undefined-symbol ImportError 1e10aa6: run those commands with --isolated
generation-prefix cuts (came in with the merge of main) they read vLLM's private OutputProcessor state and refuse to run on a release they were not checked on (0.29). Re-read against 0.33: every hook and field is still there d7ed2cc: move the check to 0.33
MXFP8 MoE rollouts (FlashInfer TRT-LLM kernel) 0.33 added a required routing_sink argument to FusedMoEKernel.apply_monolithic; our override of ModelOptMxFp8FusedMoE.apply_monolithic did not pass it (TypeError on the first forward pass) c25a1c3; the unit test now binds our call against the installed vLLM signature
router replay with the sync (in-process) vLLM worker LLM.generate can return with one scheduled batch still in the engine's queue. 0.33 asserts that no batch is in flight across a prefix cache reset when routed experts are returned, so the first generate after a refit failed with "auxiliary output generation changed with output in flight". Reproduced with plain vLLM 0.33 and a tiny Qwen3 MoE model on H100 d7ace10: step the engine until its queue is empty before the reset
tool-calling requests with parallel_tool_calls=false (Gym BrowseComp agent) 0.29 only trimmed the response to the first tool call. 0.33 still trims, and also turns the flag into a grammar that masks sampling after the first tool call. The logprobs vLLM returns then come from the masked distribution: the end-of-turn token after a closing </tool_call> came back with logprob ~0 from vLLM against about -8.4 from the trainer, so train/token_mult_prob_error reached 2 to 5000 on a few steps of grpo_async_gym_single_controller_context_compaction.sh (limit 1.05) b3b6fe5: the HTTP server hides the flag from vLLM's parser while the request is prepared and restores it afterwards, so sampling is not masked and the response is still trimmed
research project tests in L1_Functional_Tests_Other_1 / L0_Unit_Tests_Other the loops share the driver venv and synced each project with --inexact. flow_grpo needs nemo-rl[automodel] (torch 2.13 and TransformerEngine); template_project needs plain nemo-rl, which now resolves torch 2.14, so its uv run left a TransformerEngine built for 2.13 behind (undefined symbol in transformer_engine_torch) ea6f8bc: sync each research project exactly
lint (pyrefly) torch 2.14 retyped torch.is_tensor 6d875e7
docs pinned version strings 181a500

Not changed here

  • The Gym server venvs (judge / local vLLM model servers) keep their own vLLM 0.29.0 pin, which comes from the Gym submodule.
  • Eagle3 online refit needed no change: the functional test passes, and the Eagle3 nightly fails only the reward check that also fails on main, with the same draft acceptance length (2.43 vs 2.45).
  • vLLM probes an optional nixl_ep module at startup and logs an import warning. The same warning is in main's logs on 0.29, so it is not from this bump.

Testing

✅ pass, ❌ fail, ⏳ still running, ⚪ did not run. ❌ → ✅ means it failed, then passed on a later commit or rerun. "Fixed by" links the commit. Hardware is named by GPU type. Runs are named by job or run ID.

Each suite lists what the bump broke and this PR fixed first, then what still fails, then a collapsed block for everything that passes.

Suite Ran ❌ → ✅ broken by the bump, fixed here ⏳ not settled ❌ still failing (not the bump) ✅ pass
Unit tests (vLLM-marked, H100) 811 14 rows (about 25 tests) 0 0 the rest: 774 pass in total, 37 skipped
Functional tests on H100 42 10 0 0 32
Nightly on H100 154 9 0 22 123 (76 first try, 47 on a rerun)
Nightly on GB200 55 5 0 7 43 (40 first try, 3 on a rerun)

Unit tests

All 14 rows pass on main, failed on this branch before the fix, and pass now. The full passing counts are under the table.

Test main This PR Where it failed Why (vLLM 0.33) Fixed by
lint: uv lock --check, pyrefly ✅ ❌ → ✅ L1 lint (99cc78e) uv.lock written by a newer uv than CI's; torch 2.14 typing f61c461, 6d875e7, 181b8e6
lint: configs-minimize-check ✅ ❌ → ✅ L1 lint (708daf6) the SWE1 R3 recipe repeated its parent's prefix-caching value after 03ace44 03ace44
test_captured_media.py::test_real_vllm_retained_image_budget_and_cache ✅ ❌ → ✅ L1 run 42833438448, job 129945752095 the multimodal processor cache is passed per call, not to the constructor 3bfe683
test_vllm_fp8_hf_overrides.py::test_vllm_keeps_target_dict_overrides_out_of_draft_model ✅ ❌ → ✅ L1 run 42833438448, job 129945748417 compose_draft_hf_overrides returns a functools.partial 293f774
test_nemo_gym.py::test_vllm_http_logprobs_contract ✅ ❌ → ✅ L1 run 42833438448, job 129945748250 top_logprobs=null now returns logprobs 1693851
test_vllm_generation.py::test_vllm_http_server ✅ ❌ → ✅ L1 run 42833438448, job 129945748291 chat completion choices gained weight_versions 09ff906
test_vllm_fp8_quantization.py (5 tests) ✅ ❌ → ✅ H100 Slurm job 21663188 replace_parameter lost prefer_copy (source fix) 241949e
test_deepseek_v4_two_refits_preserve_kernel_fp32_scale_references ✅ ❌ → ✅ H100 Slurm job 21663188 the MoE stand-in config needs moe_backend 5e04702
test_modelopt_moe_amax_aliases_satisfy_installed_vllm_loader ✅ ❌ → ✅ H100 Slurm job 21663188 the MoE loader stand-in config needs is_act_and_mul 841ad26
test_pinned_with_cancellation_aborts_chat_completion_on_http_disconnect (2 tests) ✅ ❌ → ✅ H100 Slurm job 21663188 with_cancellation returns an empty Response() instead of None a0a2a0d
top-k / top-p parity tests (3 tests) ✅ ❌ → ✅ H100 Slurm job 21663188 0.33 always uses the Triton kernel, so the test must pass GPU tensors 5428e3a
replace_parameter layout-change test ✅ ❌ → ✅ H100 Slurm job 21663188 0.33 keeps the Parameter object and swaps its data 241949e
test_rollout_manager.py::test_async_nemo_gym_rollout_manager and ..._matches_original ✅ ❌ → ✅ L1 run 42892534790, job 130131802185; L1 run 42926980309, job 130245404066 the tests sample 5 tokens at temperature 1.0. On 0.33 the fifth token varies between requests for the same prompt (279 or 1077 within one run), so they check the count and the first four ids. Both pass on H100 (Slurm job 21676982) 9b5fdc8, 9b5fdc8, 9b5fdc8
test_vllm_generation.py::test_vllm_http_server (second failure, after 09ff906) ✅ ❌ → ✅ L1 run 42892534790, job 130131802437 top_logprobs=null is accepted instead of rejected with a 400 1693851

H100 Slurm job 21663188, all vLLM-marked unit tests: 711 passed, 12 failed, 61 skipped at 09ff906; the 12 are the rows above and pass at 241949e (the FP8 file alone: 157 passed).

H100 Slurm job 21676982 at d7ed2cc (after the merge of main): all vLLM-marked unit tests: 774 passed, 37 skipped, 0 failed; the generation, experience and single-controller unit tests in the driver venv: 4173 passed, 10 skipped, 0 failed.

L1 CI

Head Result
3037418 ❌ lint failed (rows above)
422c787 ⚪ lint passed; tests did not start because the branch conflicted with main (fixed by the merge 685fc22)
38328b0 ❌ run 42833438448: image built, 25 unit shards passed, 4 failed (rows above), 1 did not finish before the run was replaced
09ff906, 241949e ⚪ replaced by a newer push before any test job reported
5b97077 ❌ lint failed: configs-minimize-check (row above)
9d69dc2 ❌ run 42892534790: lint, config checks and image build pass; 36 jobs green; 3 unit shards failed: two rows above, and L0_Unit_Tests_Other (job 130131802092), a warning-count check in a base-venv config test that passed on this branch at 27f9626 (job 129945748308) and on main (job 130013516240), so it looks flaky and not caused by the bump; L0_Unit_Tests_Vllm_3 did not finish in 80 minutes (the ModelOpt hang fixed by 9fd43dd). Replaced by the next run
d330dad ❌ run 42926980309: all unit shards green except two. L0_Unit_Tests_Nemo_Gym (job 130245404066): the second rollout test in the row above. L0_Unit_Tests_Other (job 130245404106): test_ssd_tier.py::test_abort_during_the_write_leaves_the_cleanup_to_the_job counted 95 open files instead of 94; a data-plane test with no vLLM in it, and a different test from the one that failed in this shard on the previous run, so it looks flaky. The functional stage did not start
6d113c1 ⚪ did not run: the branch conflicted with main (fixed by the merge d07e18d)
1ccc0ea ❌ run 42956878595: 30 unit shards green, 1 failed: L0_Unit_Tests_Nemo_Gym (job 130332851732), test_vllm_token_capture_hosting.py built the progress reader with a made-up installed version of 0.29.0, which the check moved by d7ed2cc refuses (fixed by d7ed2cc). Replaced by the next run
5cbceec ❌ run 42971459907: all 40 unit shards green, so the functional stage ran for the first time: 20 of 22 functional jobs green. L1_Functional_Tests_Other_1 (job 130436971185): the research project row above (fixed by ea6f8bc). L1_Functional_Tests_SingleController_3 (job 130436971180): the parallel_tool_calls row above; the same job passed on main at this branch's merge base (job 130295253812, max 1.026) (fixed by b3b6fe5)
eb86253 ⚪ did not run: the branch conflicted with main again (#4905; fixed by the merge 5f98ba3, which also adds ai-dynamo to the vllm extra and re-resolves uv.lock)
5f98ba3 ✅ L1 passed (run 43028712300, attempt 4): all unit shards (L0_Unit_Tests_Other on a second attempt) and all 22 functional jobs. L1_Functional_Tests_PPO_1: attempt 2 (job 130658113043) failed ppo_non_colocated.sh's max critic/grad_norm < 350 check with 395.75. This value moves from run to run and is not caused by the bump: the same check gave 148.4 on this branch's previous run (job 130436971031), 297.7 and 299.2 on main (jobs 130295253974, 130488465113), and 269.5 on attempt 3 (job 130744587686). Attempt 3 passed every test, then the job failed uploading its artifacts (GitHub API error); attempt 4 passed (job 130789311325)
b3b6fe5 ✅ L1 passed (run 43121221677, attempt 2), final head after the history cleanup (same code as 5f98ba3, rebased on main): all unit shards and all functional jobs. Attempt 1 failed only L0_Unit_Tests_Other (job 130878008938): unit/data_plane/nixl/test_ssd_tier.py::test_a_failed_write_fails_the_put_and_frees_the_io_area counted 94 open files instead of 92. This is a data-plane test with no vLLM in it, and the same open-file count check has failed in this shard before; it passed on the rerun

codecov/patch (not a required check) reports 77.9% against its 80% target: 19 of the 86 changed lines are not hit by the CPU unit tests. All 19 run only inside a live vLLM engine: the RayExecutorV2 nsys override, the MXFP8 linear post-load, the routed-experts prefix-caching guard in engine setup, and the queued-batch drain before a prefix-cache reset. The L1 functional jobs and the nightlies above run them.

Functional tests on H100 (Slurm job 21663188, image built from 181b8e6, code at 241949e unless noted)

45 scripts, all of which pass on main in L1. 42 ran here: 10 were broken by the bump and are fixed, 32 passed, none still fails. 3 were left to L1.

❌ → ✅ Broken by the bump, fixed in this PR (10)

Test main This PR What broke Fixed by
grpo_nccl_reshard_refit ✅ ❌ → ✅ Hung at the first refit (stopped after 50 min): the two ends used different transfers (see the changes table). Passes in 369 s at 8e4e2f1 8e4e2f1
modelopt_quant_rollout ✅ ❌ → ✅ Hung in the fake-quant case (Slurm job 21673333), the trainer waiting on a build lock: mixed torch versions sharing a JIT build folder. Passes in 408 s at 9fd43dd 9fd43dd (and 574eb8b for its log check)
ppo_megatron, ppo_automodel, ppo_async_single_controller, gdpo_async_grpo, grpo_async_replay_buffer_checkpoint, vlm_grpo, prorlv2, grpo_nixl_non_colocated ✅ ❌ → ✅ Failed on Slurm job 21673333 with a TransformerEngine ImportError in the driver, because they ran after qa_distillation_megatron in one container: driver and trainer extras now resolve different torch versions (see the changes table). All pass on Slurm job 21676982 at 1e10aa6 1e10aa6

⚪ Not run here, left to L1 (3)

Test Why
grpo_sc_generation_shard_recovery the test expects exactly 2 generation actors, and the long-lived Ray cluster on the Slurm node still listed dead actors from earlier tests
xtoken_off_policy_distillation needs a gated model
grpo_async_gym needs HF_TOKEN, which is not available on the node
✅ Pass on `main` and on this PR: 32 scripts

grpo, gdpo, grpo_dp_simple, grpo_non_colocated, grpo_megatron, grpo_multiturn, grpo_topp_topk, eval, grpo_megatron_generation_non_colocated, grpo_megatron_eagle3_online, grpo_dp_mooncake, grpo_multiple_dataloaders (Slurm job 21663188); grpo_megatron_generation_nccl_reshard_refit, grpo_non_colocated_reload_refit, vllm_fp32_lm_head, test_decode_vs_prefill, grpo_automodel_lora, grpo_automodel_lora_non_colocated, grpo_megatron_lora, grpo_frozen_env, grpo_rm_env, grpo_checkpoint_single_controller, grpo_dp_single_controller, grpo_dp_single_controller_reload_refit, distillation, distillation_megatron, qa_distillation_megatron, eval_async (Slurm job 21673333, at 9b5fdc8); dpo_megatron, sft_megatron, test_converters, test_megatron_te_precision_config (Slurm job 21676982, at 1e10aa6).

Nightly on H100 (run 81013622 at 181b8e6)

154 recipes ran: 9 were broken by the bump and are fixed, 0 are not settled yet, 22 still fail for reasons the bump did not cause, and 123 pass. In the This PR column the first job is run 81013622 and each arrow is a rerun on a later commit.

❌ → ✅ Broken by the bump, fixed in this PR (9)

Recipe main This PR What broke Fixed by
llm_grpo_deepseek_v4_flash_0731_16n8g_automodel_cp8ep128 ✅ 537953676, ✅ 540934167 ❌ 541272500 → ❌ 541964161 → ✅ 542934342 replace_parameter lost prefer_copy 241949e
llm_grpo_qwen2_5_1_5B_4n8g_megatron_yarn_256k ✅ 537953741, ✅ 540934234 ❌ 541272656 → ✅ 541964230 0.33 reads max_position_embeddings as already YaRN-scaled 708daf6
llm_grpo_qwen3_30ba3b_10n8g_megatron_cp2_r3_async_single_controller ✅ 537953708, ✅ 540934196 ❌ 541272549 → ✅ 541964179 → ✅ 543265399 vLLM 0.33 only returns routed experts with prefix caching on 03ace44
llm_grpo_qwen3_30ba3b_10n8g_megatron_cp2_r3_async ✅ 537953707, ✅ 540934195 ❌ 541272547 → ❌ 541964178 → ✅ 543073035 vLLM 0.33 only returns routed experts with prefix caching on 03ace44
llm_grpo_qwen3_30ba3b_8n8g_megatron_cp2_r3_tq_simple ✅ 537953706, ✅ 540934194 ❌ 541272544 → ✅ 541964177 → ✅ 542934395 vLLM 0.33 only returns routed experts with prefix caching on 03ace44
llm_grpo_qwen3_30ba3b_8n8g_megatron_cp2_r3 ✅ 537953705, ✅ 540934193 ❌ 541272543 → ❌ 541964176 → ✅ 542934387 vLLM 0.33 only returns routed experts with prefix caching on 03ace44
llm_grpo_qwen3_30ba3b_thinking_swe1_16n8g_megatron_cp2_r3_async_gym ✅ 537953709, ✅ 540934197 ❌ 541272552 → ✅ 541964181 vLLM 0.33 only returns routed experts with prefix caching on 03ace44
llm_grpo_qwen3_8b_base_dapo_2n8g_long_megatron_qa_nvfp4_w4a16 ✅ 537953716, ✅ 540934205 ❌ 541272566 → ✅ 543073077 Trained fine, then the script's check for a vLLM log line that 0.33 removed failed 574eb8b
llm_ppo_qwen3_30ba3b_3n8g_megatron_cp2_r3_async_single_controller ✅ 537953814, ❌ 540934347 ❌ 541272852 → ✅ 543567718 vLLM 0.33 only returns routed experts with prefix caching on 03ace44

❌ Still failing, not caused by the bump (22)

Recipe main This PR Why it is not the bump
llm_dapo_gemma4_12b_it_2n8g_automodel ❌ 537953772, ❌ 540934296 ❌ 541272736 Same error on main
llm_dapo_gemma4_e2b_it_1n8g_automodel ❌ 537953771, ❌ 540934290 ❌ 541272733 Same error on main
llm_grpo_deepscaler_1_5b_8K_tq_simple ❌ 537953746, ❌ 540934238 ❌ 541272667, ❌ 544766667 Same error on main
llm_grpo_gspo_deepscaler_1_5b_8K_tq_nixl ❌ 537953756, ❌ 540934250 ❌ 541272691 Same error on main
llm_grpo_llama3_1_8b_instruct_2n8g_automodel_noncolocated_tq_nixl ❌ 537953758, ❌ 540934252 ❌ 541272695 Same error on main
llm_grpo_llama3_1_8b_instruct_2n8g_megatron_fp8_e2e_tq_nixl ❌ 537953760, ❌ 540934254 ❌ 541272701 Same error on main
llm_grpo_llama3_2_1b_instruct_1n8g_automodel_v3_tq_simple ✅ 537953743, ❌ 540934236 ❌ 541272662 → ✅ 541964237 → ❌ 543567616 The first run's code copy on the shared filesystem was missing files (No module named ...). The first rerun passed. The second rerun trained all 500 steps and passed the probability-error checks; it failed only mean(total_step_time, last 5) < 10 with 10.04 s, where the passing main run measured 9.98 s. Over the last 100 steps this branch is not slower (11.48 s vs 11.55 s, every phase within 2%)
llm_grpo_llama3_2_1b_instruct_1n8g_megatron_tq_nixl ❌ 537953757, ❌ 540934251 ❌ 541272692 Same error on main
llm_grpo_moonlight_16ba3b_4n8g_megatron_tq_nixl ❌ 537953759, ❌ 540934253 ❌ 541272699 Same error on main
llm_grpo_nanov3_30BA3B_2n8g_noncolocated_async_gym_single_controller_token_capture_r3_defer ❌ 537953727, ❌ 540934217 ❌ 541272605 Same error on main
llm_grpo_nanov3_30ba3b_3n8g_megatron_dynamo_swe1 ❌ 537953788, ❌ 540934319 ❌ 541272789 Same error on main (the Gym actor dies during rollout collection)
llm_grpo_qwen3_1_7b_6n8g_megatron_super_rlvr ❌ 537953730, ❌ 540934220 ❌ 541272617 Same error on main
llm_grpo_qwen3_8B_base_1n8g_automodel_lora_tq_nixl ❌ 537953761, ❌ 540934255 ❌ 541272704 → ❌ 541964238 Same error on main
llm_grpo_qwen3_8b_4n8g_automodel_dflash ❌ 537953667, ❌ 540934156 ❌ 541272482 Same error on main
llm_grpo_qwen3_8b_4n8g_automodel_dspark ❌ 537953666, ❌ 540934151 ❌ 541272477 Same error on main
llm_grpo_qwen3_8b_4n8g_automodel_eagle3 ❌ 537953668 ❌ 541272483 Same error on main
llm_grpo_qwen3_8b_base_1n8g_megatron_lora_tq_nixl ❌ 537953762, ❌ 540934256 ❌ 541272707 → ❌ 541964239 Same error on main
llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_valuetp2_cp2 ❌ 537953809, ❌ 540934339 ❌ 541272840 → ❌ 543285844 Fails on main. It hits the job time limit (step 4 of 7 in the rerun)
vlm_vlm_grpo_nemotron_omni_30ba3b_clevr_2n8g_megatron_tp8ep8_v1_tq_mooncake ❌ 537953695, ❌ 540934184 ❌ 541272534 Same error on main
vlm_vlm_grpo_qwen2_5_vl_3b_instruct_clevr_1n8g_automodel_tq_nixl_v1 ❌ 537953696, ❌ 540934185 ❌ 541272535 Same error on main
vlm_vlm_grpo_qwen3_5_35ba3b_geo3k_2n8g_automodel_ep16_tq_simple ❌ 537953694, ❌ 540934183 ❌ 541272533 token_mult_prob_error check, also fails on main
vlm_vlm_grpo_qwen3_5_35ba3b_geo3k_2n8g_automodel_ep16 ❌ 537953693, ✅ 540934182 ❌ 541272532 token_mult_prob_error check, also fails on main
✅ Pass: 123 recipes (76 on the first try, 47 on a rerun after a failure that was not caused by the bump)

The 76 first-try passes are not listed. Reruns: Run 81041754 at 708daf6 is finished (20 of 25 pass; of the 5 failures, 2 fail the same way on main and 3 hit the missing-files / startup trouble again before reaching vLLM). Run 81161535 at d7ed2cc reran those 3, the NVFP4 recipes and two more: all 8 pass (4 on the first try, 4 after a retry; the first tries failed on missing snapshot files or never started). Run 81161797 at d7ed2cc reran every other row (37 recipes): 35 pass, most after one or two retries of jobs that never started (the runner could not reach the cluster) or lost files on the shared filesystem. The 2 that still fail are not caused by the bump: ..._automodel_valuetp2_cp2 runs out of time as it does on main, and ..._automodel_v3_tq_simple passed in the earlier rerun and this time missed its step-time check by 0.4% after training all 500 steps (see its row).

Recipe main This PR Why the first run failed
llm_dapo_nanov3_5_30BA3B_4n8g_automodel_ep8_r3 ✅ 537953729 ❌ 541272612 → ✅ 541964199 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_distillation_qwen3_1_7b_1n8g_megatron_qa_nvfp4 ✅ 537953799, ❌ 540934329 ❌ 541272816 → ✅ 543072996 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_distillation_xtoken_off_policy_multiteacher_qwen3_4b_llama3_2_3b_to_llama3_2_1b_1n8g_automodel_tp4cp2 ✅ 537953804, ❌ 540934334 ❌ 541272828 → ✅ 543285520 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_distillation_xtoken_off_policy_qwen3_4b_to_llama3_2_1b_1n8g_automodel_tp4cp2 ✅ 537953803, ❌ 540934333 ❌ 541272826 → ✅ 543285529 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_dpo_mistral_nemo_instruct_2407_1n8g_automodel_tp8_actckpt_long ✅ 537953796, ❌ 540934326 ❌ 541272808 → ✅ 542939445 The job died at startup before any NeMo-RL code ran, with no error in the log
llm_grpo_cispo_mm1_async_lag1_highoffpolicy_qwen3_30ba3b_3n8g_megatron_cispo ✅ 537953704, ✅ 540934192 ❌ 541272542 → ✅ 541964175 The job died 12 s after Ray started, before any NeMo-RL code ran
llm_grpo_deepscaler_1_5b_16K ✅ 537953697, ✅ 540934186 ❌ 541272536 → ✅ 544766665 Finished and passed its score check (0.3063), then did not exit and ran until the 24 h CI job limit; the rerun on the final head exited normally
llm_grpo_deepscaler_1_5b_8K ✅ 537953700, ❌ 540934188 ❌ 541272538 → ✅ 544766666 The log stopped in the middle of a generation step and the job ran until the 24 h CI job limit; the rerun on the final head passed
llm_grpo_gemma3_1b_it_1n8g_automodel_tq_simple ✅ 537953744, ❌ 540934237 ❌ 541272664 → ✅ 542939425 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_llama3_1_8b_instruct_1n8g_megatron_fp8_rollouts_v3_tq_simple ✅ 537953747 ❌ 541272671 → ✅ 543285560 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_llama3_1_8b_instruct_1n8g_megatron_fp8_rollouts_v3 ✅ 537953712, ❌ 540934201 ❌ 541272559 → ✅ 543285543 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_llama3_2_1b_instruct_1n8g_automodel_tp2_temp0_8_topp0_9_topk50_tq_mooncake ✅ 537953750 ❌ 541272677 → ✅ 543285589 Shared filesystem errors (read-only / stalls)
llm_grpo_llama3_2_1b_instruct_1n8g_automodel_tp2_temp0_8_topp0_9_topk50 ✅ 537953738 ❌ 541272649 → ✅ 542939419 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_llama3_2_1b_instruct_1n8g_automodel_v3 ✅ 537953658, ❌ 540934144 ❌ 541272437 → ✅ 543285609 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_llama3_2_1b_instruct_1n8g_megatron_generation_tq_mooncake ✅ 537953749, ✅ 540934243 ❌ 541272674 → ✅ 544766668 Trained all 500 steps and passed every metric check, then did not exit and ran until the 24 h CI job limit. Megatron generation, no vLLM in this recipe; the rerun exited normally
llm_grpo_llama3_2_1b_instruct_1n8g_megatron_temp0_8_topp0_9_topk50_is ✅ 537953740, ❌ 540934233 ❌ 541272654 → ✅ 543285622 Shared filesystem I/O error
llm_grpo_llama3_2_1b_instruct_1n8g_megatron_temp0_8_topp0_9_topk50_tq_mooncake ✅ 537953751, ❌ 540934245 ❌ 541272681 → ✅ 542939428 Shared filesystem errors (read-only / stalls)
llm_grpo_llama3_2_1b_instruct_1n8g_megatron_temp0_8_topp0_9_topk50 ✅ 537953739, ❌ 540934231 ❌ 541272651 → ✅ 543285619 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_math_qwen3_30ba3b_megatron_tp4_32k ✅ 537953702, ❌ 540934190 ❌ 541272540 → ✅ 541964173 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_grpo_moonlight_16ba3b_4n8g_megatron_vllm_tp2ep16 ✅ 537953673, ✅ 540934164 ❌ 541272497 → ✅ 541964134 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_nanov3_30BA3B_2n8g_automodel_lora ✅ 537953722, ❌ 540934211 ❌ 541272582 → ✅ 541964193 Shared filesystem error reading the HF cache
llm_grpo_qwen2_5_32b_32n8g_automodel_tp8_actckpt_v3 ✅ 537953674, ✅ 540934165 ❌ 541272498 → ✅ 541964151 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_grpo_qwen2_5_math_1_5b_instruct_1n8g_automodel_v3_tq_simple ✅ 537953742, ❌ 540934235 ❌ 541272659 → ✅ 541964235 → ✅ 542939422 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_grpo_qwen2_5_math_1_5b_instruct_1n8g_automodel_v3 ✅ 537953656, ❌ 540934139 ❌ 541272416 → ✅ 542939413 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_qwen2_5_math_1_5b_instruct_1n8g_megatron_single_controller_sync_tq_mooncake ✅ 537953755, ❌ 540934249 ❌ 541272689 → ✅ 543285655 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_qwen2_5_math_1_5b_instruct_2n8g_automodel_sglang ✅ 537953661, ❌ 540934147 ❌ 541272463 → ✅ 543285666 Hit the time limit at step 446 of 450; SGLang job, does not use vLLM
llm_grpo_qwen2_5_math_1_5b_instruct_2n8g_megatrontp1_sglang ✅ 537953662, ✅ 540934148 ❌ 541272468 → ✅ 541964110 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_grpo_qwen3_1_7b_2n8g_megatron_super_rlhf ✅ 537953732, ✅ 540934222 ❌ 541272623 → ✅ 541964203 The Gym judge server (its own venv, still vLLM 0.29) did not start within 600 s
llm_grpo_qwen3_30ba3b_4n8g_megatron_qa_nvfp4 ✅ 537953703, ✅ 540934191 ❌ 541272541 → ✅ 541964174 → ✅ 542934363 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_grpo_qwen3_30ba3b_4n8g_megatron_zmq_deltaweight_noncolocated ✅ 537953718, ❌ 540934207 ❌ 541272571 → ✅ 541964188 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_grpo_qwen3_8B_base_1n8g_automodel_lora_merged ✅ 537953736, ❌ 540934227 ❌ 541272642 → ✅ 541964214 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_qwen3_8B_base_1n8g_automodel_lora ✅ 537953735, ❌ 540934226 ❌ 541272638 → ✅ 541964206 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_grpo_qwen3_8b_base_1n8g_megatron_lora ✅ 537953737, ❌ 540934228 ❌ 541272645 → ✅ 541964222 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_mopd_qwen3_1_7b_3n8g_megatron_pack ✅ 537953800, ✅ 540934330 ❌ 541272818 → ✅ 543285689 The job's code copy on the shared filesystem was missing files (No module named ...)
llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_noncolocated_async ✅ 537953807, ❌ 540934337 ❌ 541272836 → ✅ 543285809 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_noncolocated ✅ 537953806, ❌ 540934336 ❌ 541272832 → ✅ 543285736 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_valuetp2sp_dynbatch ✅ 537953805, ❌ 540934335 ❌ 541272829 → ✅ 543285864 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_valuetp2sp_pack ✅ 537953808, ❌ 540934338 ❌ 541272838 → ✅ 543567701 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_megatron_valuetp2sp_dynbatch ✅ 537953810, ❌ 540934340 ❌ 541272842 → ✅ 543285941 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_megatron_valuetp2sp_pp2cp2_pack ✅ 537953813, ❌ 540934346 ❌ 541272849 → ✅ 543028081 The job died at startup before any NeMo-RL code ran, with no error in the log
llm_ppo_qwen2_5_1_5b_gsm8k_2n8g_megatron_valuetp2sp_dynbatch_noncolocated_async_single_controller ✅ 537953767, ❌ 540934266 ❌ 541272720 → ✅ 543287937 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_ppo_qwen2_5_1_5b_gsm8k_2n8g_megatron_valuetp2sp_dynbatch_noncolocated_async ✅ 537953812, ❌ 540934344 ❌ 541272847 → ✅ 543286124 The job died at startup before any NeMo-RL code ran, with no error in the log
llm_ppo_qwen2_5_1_5b_gsm8k_2n8g_megatron_valuetp2sp_dynbatch_noncolocated ✅ 537953811, ❌ 540934342 ❌ 541272844 → ✅ 543286035 The job died at startup before any NeMo-RL code ran, with no error in the log
llm_prorlv2_qwen2_5_math_1_5b_instruct_1n8g_automodel_v2_tq_mooncake ✅ 537953754, ❌ 540934248 ❌ 541272687 → ✅ 543567777 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_prorlv2_qwen2_5_math_1_5b_instruct_1n8g_automodel_v2 ✅ 537953660, ❌ 540934146 ❌ 541272456 → ✅ 542939415 Cluster stalls. Jobs on different nodes froze for minutes at the same clock times, and main jobs that day did too; steady step time equals main
llm_sft_llama3_1_8b_1n8g_automodel_lora ✅ 537953778, ❌ 540934308 ❌ 541272760 → ✅ 542939444 Hit the time limit in the same stalls; this SFT job does not use vLLM
llm_sft_llama3_1_8b_1n8g_automodel_tp2 ✅ 537953776, ❌ 540934306 ❌ 541272752 → ✅ 542939443 Hit the time limit in the same stalls; this SFT job does not use vLLM

Nightly on GB200

Run Head Result
80902349 3037418 image build failed: deep_gemm does not compile against torch 2.14 (fixed by f61c461)
80925728 f0c6dac cancelled: image build would fail at uv lock --check (fixed by f61c461)
80940141 422c787 images built; the test setup jobs hung fetching the source for 3 hours, no test ran; cancelled
81056045 9d69dc2 40 passed, 15 failed (table below)
81185404 ced6b47 rerun of the 8 recipes below that do not fail the same way on main: 6 passed, 2 failed (not caused by the bump, see the table)

Run 81056045: 55 recipes ran: 5 were broken by the bump and are fixed, 7 still fail for reasons the bump did not cause, and 43 pass. main columns are the two latest main nightlies. In the This PR column the first job is run 81056045 and each arrow is a later rerun (the first is run 81185404).

❌ → ✅ Broken by the bump, fixed in this PR (5)

Recipe main This PR What broke Fixed by
llm_grpo_qwen3_5_35ba3b_4n4g_megatron_ep16tp2_mxfp8_trtllm ✅ 537952858 ❌ 542011483 → ✅ 543700980 apply_monolithic() missing ... 'routing_sink' c25a1c3
llm_grpo_qwen3_30ba3b_4n4g_megatron_te_nvfp4_pertoken_quick ❌ 537952873, ❌ 540933837 (both died at startup) ❌ 542011507 → ✅ 543700989 A different failure from main: "auxiliary output generation changed with output in flight" at the first generate after a refit d7ace10
llm_grpo_qwen3_30ba3b_4n4g_megatron_qa_nvfp4_w4a4_real ✅ 537952872, ✅ 540933811 ❌ 542011506 → ✅ 543700988 Both steps trained and the metrics were written, then the script's check for a vLLM log line that 0.33 removed failed 574eb8b
llm_grpo_nanov3_30ba3b_4n4g_megatron_qa_nvfp4_w4a16_real ❌ 537952871 ❌ 542011501 → ✅ 543700987 Same log-line check after training finished 574eb8b
llm_grpo_qwen3_5_35ba3b_6n4g_async_1off_bf16_trtllm ✅ 537952864, ❌ 540933802 ❌ 542011486 → ✅ 543700981 nccl_reshard refit hung until the job was cancelled 8e4e2f1

❌ Still failing, not caused by the bump (7)

Recipe main This PR Why it is not the bump
llm_distillation_nano3_30ba3b_4n4g_megatron_qa_nvfp4_modelopt_spec ❌ 537952900, ❌ 540933880 ❌ 542011625 Fails on main (Gym config path not found)
llm_grpo_gemma3_1b_it_1n4g_automodel ❌ 537952842, ❌ 540933779 ❌ 542011447 Fails on main; ran all 400 steps, then the metric check failed
llm_grpo_qwen2_5_math_1_5b_instruct_1n4g_automodel_v3 ❌ 537952840, ❌ 540933777 ❌ 542011443 Fails on main; ran all 450 steps, then the metric check failed
llm_grpo_nanov3_30BA3B_4n4g_megatron_generation_noncolocated_mxfp8_rollouts ❌ 537952854, ❌ 540933792 ❌ 542011474 Fails on main; ran all 10 steps, then the metric check failed
llm_grpo_qwen3_30ba3b_2n4g_megatron_generation_noncolocated_zero_kl ❌ 537952859 ❌ 542011484 Fails on main; ran all 5 steps, then the metric check failed
llm_grpo_qwen3_1_7b_2n4g_megatron_trtllm_disagg_swe1 ❌ 537952867, ❌ 540933805 ❌ 542011490 Fails on main (TRT-LLM NIXL assertion)
vlm_vlm_grpo_nemotron_omni_30ba3b_clevr_8n4g_megatron_generation_v1 ❌ 537952876, ❌ 540933844 ❌ 542011548 Fails on main; ran all 50 steps, then the metric check failed
✅ Pass: 43 recipes (40 on the first try, 3 on a rerun after a failure that was not caused by the bump)

The 40 first-try passes are not listed.

Recipe main This PR Why the first run failed
llm_grpo_moonlight_16ba3b_4n4g_megatron ✅ 537952870, ✅ 540933808 ❌ 542011496 → ❌ 543700984 (same error) → ✅ 545577959 The Megatron trainer could not load the shared converted checkpoint (KeyError: ...layer_norm_weight from model not in state dict), before vLLM was used. Manually triggered runs read an older copy of that checkpoint than the scheduled main nightlies do. Control: a manually triggered run at the merge base (run 81366825, vLLM 0.29) fails the same way, job 544285420. The stale copy was then rebuilt with a fresh conversion (force_reconvert_from_hf, job 545132288), and the last rerun is the PR head without that flag.
llm_grpo_qwen3_30ba3b_thinking_swe1_4n4g_megatron_trtllm_noncolocated_gym ✅ 537952869 ❌ 542011493 → ❌ 543700983 (same error) → ✅ 545817594 The Megatron trainer could not read the shared latest_train_state.pt (same older checkpoint copy); TRT-LLM recipe, no vLLM. Control at the merge base (run 81366825) fails the same way, job 544285418. The stale copy was then rebuilt with a fresh conversion (force_reconvert_from_hf, job 545493857), and the last rerun is the PR head without that flag.
llm_grpo_llama3_2_1b_instruct_1n4g_megatron_generation ❌ 537952849, ✅ 540933789 ❌ 542011469 → ✅ 543700979 Reached step 435 of 500 when the job ended; Megatron generation, no vLLM

Commit map after the history cleanup

The branch history was rewritten once CI was green: fixes that were superseded or needed a follow-up are folded into one commit each, and the branch is rebased on main. The code is the tested head 5f98ba3 plus two new main commits. Commit hashes in this description are the new ones, except the Head cells of the run tables, which name the old-history commit each run tested.

New commit Replaces Subject
617ed69 3077f03 test(vllm): fail when any vLLM source patch stops applying
f61c461 e884a9d, f0c6dac, 60af5d0 build: bump vllm to 0.33.0
30b4cd8 901b323 fix(vllm): drop the source patch for the removed v1 Ray executor
cc454ae eb17473 fix(vllm): hook FP8 patches into RayExecutorV2 only
ee87e19 d47f5b3 fix(vllm): apply the nsys config override to RayExecutorV2
919785d 059352f fix(vllm): re-anchor the monolithic routed-experts capture patch
0c9e420 c107270 fix(vllm): re-anchor the routed-experts capture router fallback
cb853e3 32579da fix(vllm): port the final vision LayerNorm patch onto vLLM 0.33's own layer
9e0eccf a89ed50 fix(vllm): remove the NamespaceTool openai compat patch
47be665 4598fcd fix(vllm): import load_chat_template from its vLLM 0.33 module
99cc78e 3037418 fix(vllm): import is_quantized_kv_cache from vllm.v1.kv_cache_interface
03b9800 f010e96 fix(vllm): find MXFP8 linear layers through ModelOptLinearMethod after a native reload
181b8e6 57aa56d, 422c787 fix(modelopt): port the NVFP4 linear hooks to vLLM 0.33's ModelOptLinearMethod
6d875e7 492320f fix(x_token): narrow the padded value with isinstance for torch 2.14 typing
91f44fe 280df2f fix(vllm): route the MXFP8 linear post-load through ModelOptLinearMethod
e93553d f40b27d fix(vllm): match vLLM 0.33's per-token NVFP4 flag and hidden-size alignment
27f9626 38328b0 fix(vllm): drop the vllm#52142 compile-cache backport
181a500 9dc7a39 docs: state vLLM 0.33.0 as the pinned version
3bfe683 f0b1fbd test(vllm): pass the multimodal processor cache per call
293f774 4be7283 test(vllm): accept the partial vLLM 0.33 returns for draft hf overrides
1693851 5f7a007, 125cd34 test(vllm): expect logprobs for top_logprobs=null on vLLM 0.33
09ff906 e4b09f3 test(vllm): expect weight_versions in the chat completion golden response
241949e c3f5e5f, ab95028 fix(vllm): stop passing prefer_copy to replace_parameter
5e04702 11d54e2 test(vllm): give the FP8 MoE stand-in config a moe_backend
841ad26 21de184 test(vllm): give the MoE loader stand-in config is_act_and_mul
a0a2a0d 888a2e4 test(vllm): expect an empty response when a client disconnects
5428e3a bc799c7 test(vllm): run vLLM's top-k/top-p filter on the GPU in the parity test
03ace44 0dd6237, 9d69dc2 fix(r3): keep vLLM prefix caching on for router replay
708daf6 5b97077 fix(recipes): set the scaled max_position_embeddings in the YaRN 256k GRPO recipe
574eb8b 72a5070 test(modelopt): check the NVFP4 quantization name instead of a removed vLLM log line
8e4e2f1 4ecefea fix(refit): make the vLLM side of an nccl_reshard refit use the trainer's transfer path
9b5fdc8 a7b67bd, d330dad, 6d113c1 test(rollout): compare only the first four sampled tokens in the Gym rollout tests
9fd43dd f721753 fix: build torch JIT extensions in one folder per torch version
1e10aa6 910e34a test: run trainer-extra commands in an isolated environment
d7ed2cc 1ccc0ea, 5cbceec fix(vllm): move the generation-progress read check to vLLM 0.33
c25a1c3 c733990 fix(vllm): pass routing_sink to the MXFP8 MoE kernel on vLLM 0.33
d7ace10 ced6b47 fix(vllm): finish queued batches before the sync worker resets the prefix cache
ea6f8bc 55e6aca test: sync each research project exactly before its tests
b3b6fe5 eb86253 fix(vllm): keep parallel_tool_calls=False from masking sampling on vLLM 0.33

Self-review follow-ups (after the history cleanup)

Six comments from my self-review. Five led to a commit; one needed no change. Each was checked by running something, not only by reading code. The branch then merged main (4e6b860), which needed one conflict fix in megatron_policy_worker.py: keep both main's new local refit_info and this PR's source_uses_real_reshard_op key.

# Comment Outcome Commit How it was checked
1 The routed-experts check script could turn prefix caching off, which vLLM 0.33 rejects ✅ fixed: prefix caching is always on, the flag is gone, docs updated 20a0fcf H100 (Slurm job 21803400). Old script exits 1 with AuxOutput Connector requires prefix caching. Fixed script reports num_failures: 0 on a tiny Qwen3 MoE (16 outputs) and on Moonlight 16B (32 outputs), with and without --enable-chunked-prefill
2 Is the doc's routed-experts accuracy number still right now that prefix caching is always on? ✅ no change needed Nightly numbers on vLLM 0.33 with prefix caching on match the doc: mean(gen_kl_error) 0.000364 with routed experts (job 541964199) against 0.000864 without (job 541272606); the doc says 0.00037 against 0.00086
3 A user's own extensions folder named torch-… was mistaken for one of our per-version folders ✅ fixed, with a new unit test c26cbe2 Before: /scratch/torch-extensions became /scratch/torch-2.14.0. After: test_transformers_module_patching.py passes (3 tests) on H100 and in L1
4 per_token_activation = True on the per-token NVFP4 method is never read ✅ removed 103344b 42 per-token unit tests pass. GB200 recipe llm_grpo_qwen3_30ba3b_4n4g_megatron_te_nvfp4_pertoken_quick passes at 5d40c55 (job 547109941): mean(gen_kl_error) 0.0084 < 0.02
5 The CUDA IPC docstring still said vLLM runs the same torch as the trainer ✅ docstring updated e3cb26a H100: a tensor shared from the trainer venv (torch 2.13.0) opens in the vLLM venv (torch 2.14.0) with matching values, for both the plain handle and the expandable-segments handle
6 Switching research projects in one venv with --inexact can leave a TransformerEngine built for the other torch ✅ warning added to research/README.md 5d40c55 H100: flow_grpo sync gives torch 2.13 and TransformerEngine imports; template_project with --inexact gives torch 2.14 and TransformerEngine fails with undefined symbol; an exact sync removes it

Runs on the new head:

Check Head Result
L1 CI (run 43306355303) 4e6b860 ✅ pass on attempt 2. Attempt 1 failed only L0_Unit_Tests_Other, on the open-file-count check in test_ssd_tier.py, which this PR does not touch
GB200 llm_grpo_qwen3_30ba3b_4n4g_megatron_te_nvfp4_pertoken_quick (job 547109941) 5d40c55 ✅ pass
GB200 llm_grpo_qwen3_5_35ba3b_6n4g_async_1off_bf16_trtllm (job 547233819), the nccl_reshard refit recipe touched by the merge conflict 4e6b860 ✅ pass: mean(gen_kl_error) 0.0010 < 0.002, max(reward) 0.75 > 0.5

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

🤖 Generated with Claude Code

@copy-pr-bot

copy-pr-bot Bot commented Nov 10, 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.

@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Nov 10, 2026
@terrykong terrykong added the CI:L1 Run doctests, unit tests, and functional tests label Nov 10, 2026
@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 3037418

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 57aa56d

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test f0c6dac

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 422c787

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 38328b0

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test e4b09f3

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test ab95028

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 5b97077

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 9d69dc2

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test d330dad

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 6d113c1

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 1ccc0ea

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 5cbceec

@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 5f98ba3

Most source patches in patches.py only log a warning when their anchor is gone, so a vLLM bump can drop one without failing anything until a GPU job hits it. This test runs the worker's patch entry point on copies of the installed vLLM files and fails on any warning, so a new vLLM pin is checked against every patch at once.

Signed-off-by: Terry Kong <[email protected]>
vLLM 0.33.0 wheels are built against torch 2.14, so the vllm extra moves to torch 2.14.0 / torchvision 0.29.0, and the base torch range now admits 2.14. trtllm stays on torch 2.13 and sglang on 2.11; neither has a 2.14 build.

mcore and automodel stay on torch 2.13.0 / torchvision 0.28.0. DeepEP, flash-attn, mamba-ssm and causal-conv1d are built from source in those venvs as C++17, and torch 2.14's headers need C++20. The trainers only need vLLM to open their CUDA IPC handles, and torch 2.13 and 2.14 write the same handle version (3).

Also for vLLM 0.33.0:
- transformers 5.16.1 in the vllm extra (0.33 needs >=5.16.1), flashinfer 0.7.2.post1, nvidia-cutlass-dsl 4.8.0.
- flashinfer-jit-cache 0.7.2 is a meta package over one wheel per GPU arch. Those wheels only exist on the flashinfer cu130 index, so each is named as a direct requirement with an index pin. sm110a and sm121a ship aarch64 wheels only and are limited to aarch64.
- The vllm extra drops the standalone deep_gemm (2.5.0). It compiles as C++17, so it does not build against torch 2.14. The vLLM 0.33 wheel ships a prebuilt DeepGEMM 2.8.1 for x86_64 and aarch64 and only uses it when 'import deep_gemm' fails, so the older pinned build was also shadowing the one vLLM is tested with.
- The vllm extra drops deep_ep. The pinned DeepEP cannot compile against torch 2.14, and NeMo-RL's vLLM engines use vLLM's default allgather_reducescatter all2all backend, which does not need it.

uv.lock is written with uv 0.11.18, the version the lint job runs. A newer uv writes a lock revision that the pre-commit hook rewrites, which fails the hook.

Signed-off-by: Terry Kong <[email protected]>
vLLM 0.33 deleted vllm/v1/executor/ray_executor.py and the VLLM_USE_RAY_V2_EXECUTOR_BACKEND switch; RayExecutorV2 is the only Ray executor. _apply_vllm_patches raised RuntimeError on the missing file, so every vLLM worker died at startup.

The py_executable source patch was already unused under RayExecutorV2 (workers inherit the interpreter from the parent actor's runtime_env), so remove it and keep only the VLLM_RAY_EXTRA_ENV_VARS_TO_COPY forwarding. _apply_vllm_patches no longer takes py_executable; callers are updated.

Signed-off-by: Terry Kong <[email protected]>
monkey_patch_vllm_ray_executor read envs.VLLM_USE_RAY_V2_EXECUTOR_BACKEND and fell back to vllm.v1.executor.ray_executor.RayDistributedExecutor. vLLM 0.33 removed both, so multi-GPU FP8 engines failed with AttributeError before model load. Keep the RayWorkerProc.initialize_worker hook, which is the path RayExecutorV2 uses.

Signed-off-by: Terry Kong <[email protected]>
_patch_vllm_nsight_config imported the v1 RayDistributedExecutor, which vLLM 0.33 removed, so enabling nsys profiling of vLLM's internal workers raised ImportError. RayExecutorV2 sets the nsight runtime_env in _build_runtime_env; wrap that instead so the deferred-capture config is the one the workers get.

Signed-off-by: Terry Kong <[email protected]>
vLLM 0.33 added a prepare_monolithic_logits call between the anchor comment and forward_monolithic in MoERunner, so the patch no longer matched. Without it, monolithic MoE kernels captured through the router return all-zero routes to router replay. The capture call now goes after the new line.

Signed-off-by: Terry Kong <[email protected]>
vLLM 0.33 binds in-kernel routing capture through a RoutedExpertsSink on the layer instead of set_capture_fn on the kernel object, so the fallback patch no longer matched and the per-token NVFP4 kernel was rejected with ValueError when router replay is on. The patch keeps the sink for kernels that capture in-kernel and falls back to the router hook for the ones that report no in-kernel capture.

Signed-off-by: Terry Kong <[email protected]>
… layer

vLLM 0.33 builds vision_final_layernorm itself, so the patch (written against the 0.29 source) raised RuntimeError and every vLLM worker died at startup.

Upstream's version runs the layer in the LLM dtype after the BF16 cast, applies it even when no checkpoint weights were loaded, and only reads the vision_projector.* names. The patch now edits upstream's code to keep NeMo-RL's behaviour: FP32 before the cast (matches the Megatron scoring path), off until both affine parameters have loaded (dummy startup + refit), and the bare vision_final_layernorm.* names are also read.

Signed-off-by: Terry Kong <[email protected]>
The patch stubbed openai.types.responses.NamespaceTool for openai < 2.25. Its anchor no longer matches vLLM 0.33's import block (CustomTool and ToolChoiceCustom were added), and it is not needed: vLLM 0.33 requires openai>=2.25 and the vLLM venv resolves openai 2.44.0.

Signed-off-by: Terry Kong <[email protected]>
vLLM 0.33 removed vllm.entrypoints.chat_utils; load_chat_template now lives in vllm.renderers.chat_utils.chat_template. The async HTTP server failed with ModuleNotFoundError at startup.

Signed-off-by: Terry Kong <[email protected]>
vLLM 0.33 removed the copy in vllm.utils.torch_utils, so the FP8 KV-cache post-load hook failed with ImportError.

Signed-off-by: Terry Kong <[email protected]>
…r a native reload

vLLM 0.33 folded ModelOptMxFp8LinearMethod into the generic ModelOptLinearMethod (the format is now its QuantSpec). The old import sat in a try/except ImportError that returned early, so on 0.33 the MXFP8 layouts outside the partial native reload were silently never rebuilt after a refit. Match MXFP8 linears by spec.weight == kMxfp8Static and drop the silent fallback.

Signed-off-by: Terry Kong <[email protected]>
…earMethod

vLLM 0.33 removed ModelOptNvFp4LinearMethod and the config's LinearMethodCls; every ModelOpt linear is now a ModelOptLinearMethod built from a QuantSpec. Registering NeMo-RL's W4A4/W4A16 configs and listing ModelOpt modules for a refit both failed with ImportError.

- NemoModelOptW4A16LinearMethod subclasses ModelOptLinearMethod. vLLM's generic method already does the weight-only W4A16 post-load, so the subclass only pins the Marlin kernel and clears the E4M3 sign bit on the block scales. The config swaps it in from get_quant_method, without vLLM's format scheme that registers an input_scale the export does not have.
- The subclass declares its kernel attribute on the class, like the sibling MoE methods do, because the lint environment cannot see the vLLM base class.
- _iter_modelopt_quant_modules matches NVFP4 linears by spec.weight == kNvfp4Static.

Signed-off-by: Terry Kong <[email protected]>
…efix cache

LLM.generate returns once every request has its final output. With async
scheduling this can leave one scheduled batch in the in-process engine's
queue. vLLM 0.33 asserts that no batch is in flight across a prefix cache
reset when routed experts are returned, so the first generate after a refit
failed with "auxiliary output generation changed with output in flight".

Reproduced with plain vLLM 0.33 (in-process engine, a tiny Qwen3 MoE model,
enable_return_routed_experts, reset_prefix_cache between generate calls).
Stepping the engine until its queue is empty before the reset fixes it.

Signed-off-by: Terry Kong <[email protected]>
The research test loops share the driver environment and synced each project with --inexact, which keeps the previous project's packages. flow_grpo depends on nemo-rl[automodel] (torch 2.13 and TransformerEngine); template_project depends on plain nemo-rl, which now resolves torch 2.14 with vLLM 0.33. The next `uv run` in template_project moved torch to 2.14 and left the TransformerEngine built for 2.13 behind, so single_update.sh failed with an undefined symbol in transformer_engine_torch (L1_Functional_Tests_Other_1). Before the bump both projects resolved the same torch, so the leftover packages were harmless.

An exact sync removes what the previous project installed.

Signed-off-by: Terry Kong <[email protected]>
…LM 0.33

vLLM 0.29 handled parallel_tool_calls=False by trimming the response to the first tool call. vLLM 0.33 still trims, and also turns the flag into a grammar that masks sampling after the first tool call. The logprobs it returns are then taken from the masked distribution, so they no longer match the trainer's forward pass on the same tokens.

The Gym BrowseComp agent sends parallel_tool_calls=False. In grpo_async_gym_single_controller_context_compaction.sh (L1_Functional_Tests_SingleController_3) the end-of-turn token after a closing </tool_call> came back with logprob ~0 from vLLM against about -8.4 from the trainer, and train/token_mult_prob_error reached 2 to 5000 on a few steps (limit 1.05; 1.03 on main).

The HTTP server now hides the flag from vLLM's parser while it prepares the request and restores it afterwards, so sampling is not masked and the response is still trimmed.

Signed-off-by: Terry Kong <[email protected]>
@terrykong
terrykong force-pushed the terryk/bump-vllm-0.33 branch from 5f98ba3 to b3b6fe5 Compare November 11, 2026 23:36
@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test b3b6fe5

@terrykong terrykong left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the very thorough bump. The testing record in the description (unit, L1, functional and both nightly suites, each failure tied to the commit that fixed it) made this much easier to review.

What stood out as good design:

  • test_every_vllm_source_patch_applies_to_installed_vllm runs the worker's own patch entry point on copies of the installed vLLM files and fails on any warning. That turns a silent anchor miss into a CI failure on the next bump. Two reviewers also ran every patch twice against the 0.33 source on CPU: all apply, the second run changes nothing, and every result parses.
  • The W4A16 linear method is now a thin subclass of vLLM's ModelOptLinearMethod instead of a copied process_weights_after_loading/apply, so there is much less to re-sync next bump.
  • Dead patches were removed with their tests (v1 Ray executor py_executable, NamespaceTool, the vllm#52142 backport), and the nsys override now wraps RayExecutorV2._build_runtime_env instead of replacing it.
  • The nccl_reshard handshake raises with both fixes named instead of hanging in NCCL.

Inline comments. None blocks merge; C1 and C2 are the two worth fixing before merge.

  1. (C1) Diagnostic script 6 fails with its default flags on vLLM 0.33.
  2. (C2) The router-replay guide shows numbers measured with prefix caching off next to a line saying it is on.
  3. (C3) TORCH_EXTENSIONS_DIR folders named torch-… get stripped.
  4. (C4) self.per_token_activation = True does nothing, and its comment says it does.
  5. (C5) The cuda_ipc.py docstring still calls vLLM a same-torch consumer of the trainer's CUDA IPC handles; it is on torch 2.14 now.
  6. (C6) research/README.md should warn that switching research projects in one venv needs an exact sync or a fresh env.

Generated by Claude Code

Comment thread docs/guides/router-replay.md Resolved
Comment thread nemo_rl/__init__.py Resolved
Comment thread pyproject.toml Resolved
Comment thread research/README.md Resolved
vLLM 0.33 refuses to return routed experts with prefix caching off ('AuxOutput Connector requires prefix caching'), and the script left it off unless --enable-prefix-caching was passed, so the default command failed at engine start. The script now always turns prefix caching on and the flag is gone. The docstring and docs/adding-new-models.md no longer describe the older omission bug.

Signed-off-by: Terry Kong <[email protected]>
use_per_torch_version_extension_dir drops an inherited torch-<version> folder before adding its own. The check matched any folder starting with 'torch-', so TORCH_EXTENSIONS_DIR=/scratch/torch-extensions sent builds to /scratch/torch-2.14.0, outside the folder the user chose. It now only drops 'torch-' followed by a digit.

Signed-off-by: Terry Kong <[email protected]>
…en NVFP4 method

vLLM 0.33's ModelOptNvFp4FusedMoE reads self.per_token_activation only in __init__, which has already run, and in process_weights_after_loading and _build_moe_kernel, which this class replaces in full. This class passes per_token_activation=True to the kernel and the alignment helper directly, so setting the attribute changed nothing and its comment was wrong.

Signed-off-by: Terry Kong <[email protected]>
The docstring said expandable-segment ('e') handles open on vLLM because it runs the same torch as the trainer. vLLM is now on torch 2.14 and the trainer on 2.13. They still open because both write handle version 3 with the same 'e' layout, so say that and ask for a recheck when either torch moves.

Signed-off-by: Terry Kong <[email protected]>
Research projects can pin different torch versions. Syncing a second project with --inexact changes torch but leaves packages built for the first project's torch, such as TransformerEngine, which then fail with an undefined symbol error.

Signed-off-by: Terry Kong <[email protected]>
@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 5d40c55

One conflict, in megatron_policy_worker.py: main (#4861) builds the nccl_reshard refit info in a local refit_info instead of self.nccl_reshard_refit_info. The source_uses_real_reshard_op flag this branch adds now goes into that local dict.

Signed-off-by: Terry Kong <[email protected]>
@terrykong

Copy link
Copy Markdown
Collaborator Author

/ok to test 4e6b860

@svcnvidia-nemo-ci svcnvidia-nemo-ci 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.

No actionable findings in this light static review.

I reviewed the changed files and affected paths across dependency isolation, quantization and refit layouts, vLLM patches, engine lifecycle, HTTP handling, recipes, and tests. The concrete earlier issues concerning the diagnostic defaults, extension-directory handling, unused per-token flag, CUDA IPC documentation, and research environment warning are addressed in the current source.

Validation was static only: I didn't execute lint, tests, dependency installation, or GPU jobs, and I couldn't independently verify the reported CI results or measurements. Two delegated reports weren't delivered; I inspected their assigned paths directly.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@yuki-97 yuki-97 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.

Thanks for documenting the H100/GB200 validation and the extensive self-review for this migration.

Scope: vLLM 0.33 compatibility, dependency declarations, test guards and affected documentation at 4e6b860.

Checked:

  • The large-scale validation record and passing functional CI support the functional changes.
  • Separate training and generation actor environments allow different frontend installations; changed combinations still need compatibility validation. actor_environments.py:53–83
  • The remaining claims and replacement snippets were checked statically; no local GPU tests or dependency resolution ran.

Remaining comments concern:

  • The global override bypassing the cuDNN frontend minimum, without a demonstrated runtime failure.
  • The obsolete executor environment setting.

nit

  • Match the emitted Marlin warning in the two nightly checks.
  • Correct the interpreter explanation and DeepEP dependency wording.

Generated by Codex (#4999 version)


grep -q "VllmQuantInternalWorkerExtension" "$RUN_LOG"
grep -q "Detected ModelOpt NVFP4 checkpoint" "$RUN_LOG"
grep -q "quantization=nemo_modelopt_" "$RUN_LOG"

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.

nit: The existing negative check in grpo-qwen3-30ba3b-4n4g-megatron-qa-nvfp4-w4a4-real.sh:49–50 misses weight-only Marlin fallback in this nightly.

Its pattern matches neither the linear Marlin warning nor the MoE Marlin warning.

Suggest fix: Replace only the two negative-check lines with the shared emitted warning text:

assert_not_grep "leveraging the Marlin kernel" "$RUN_LOG" \
    "W4A4 run unexpectedly fell back to the weight-only Marlin backend"

# Real-quant rollout must go through the ModelOpt NVFP4 vLLM kernel path.
grep -q "VllmQuantInternalWorkerExtension" "$RUN_LOG"
grep -q "Detected ModelOpt NVFP4 checkpoint" "$RUN_LOG"
grep -q "quantization=nemo_modelopt_" "$RUN_LOG"

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.

nit: The existing negative check in grpo-nemotron3-super-120BA12B-16n4g-megatron-qa-nvfp4-w4a4-real-300step.sh:49–50 misses weight-only Marlin fallback in this nightly.

Its pattern matches neither the linear Marlin warning nor the MoE Marlin warning.

Suggest fix: Replace only the two negative-check lines with the shared emitted warning text:

assert_not_grep "leveraging the Marlin kernel" "$RUN_LOG" \
    "W4A4 run unexpectedly fell back to the weight-only Marlin backend"

Comment on lines +91 to +93
The workers' interpreter needs no patch: RayExecutorV2 creates them with a
``runtime_env`` that omits ``py_executable``, so they inherit the value the
parent NeMo-RL actor set.

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.

nit: The explanation in patches.py:91–93 incorrectly says the interpreter setting is omitted.

vLLM reads the NeMo-RL actor's runtime environment and copies it into the worker environment.

Suggest fix: Replace only the three explanatory docstring lines:

Suggested change
The workers' interpreter needs no patch: RayExecutorV2 creates them with a
``runtime_env`` that omits ``py_executable``, so they inherit the value the
parent NeMo-RL actor set.
The workers' interpreter needs no patch: RayExecutorV2 copies the NeMo-RL
actor's runtime environment, preserving its py_executable setting.

if fp8_config.model_parallel_size > 1:
if envs.VLLM_USE_RAY_V2_EXECUTOR_BACKEND:
from vllm.v1.executor.ray_executor_v2 import RayWorkerProc
from vllm.v1.executor.ray_executor_v2 import RayWorkerProc

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.

[DEAD CODE] The V2 executor migration leaves the recipe's obsolete executor setting in place.

Ray execution already selects V2. The unknown-variable validation warns by default and raises in strict mode; strict validation defaults off.

Suggest fix: Delete only the two-line env block in grpo-nemotron3-super-120BA12B-16n4g-megatron-qa-bf16-300step.yaml:54–58, leaving the surrounding config as:

    vllm_cfg:
      tensor_parallel_size: 4
      enable_vllm_metrics_logger: false

Comment thread pyproject.toml
# No standalone deep_gemm: the vLLM wheel ships its own prebuilt DeepGEMM
# (vllm.third_party.deep_gemm) and only falls back to it when `import deep_gemm`
# fails, so a separately pinned build would shadow the one vLLM was tested with.
# No deep_ep either: the pinned DeepEP compiles as C++17, which torch 2.14's

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.

nit: README.md:287 still calls DeepEP a vLLM dependency.

This PR removes it from the vllm extra; the declared automodel and mcore environments retain it.

Suggest fix: Replace that sentence, keeping the following installation commands:

If you encounter problems when installing DeepEP (built in the mcore and automodel environments) on bare-metal (outside of a container), you may need to install libibverbs-dev as well. Here is how you can install it:

Comment thread pyproject.toml
# https://github.com/vllm-project/vllm/releases/tag/v0.29.0
"vllm==0.29.0",
# https://github.com/vllm-project/vllm/releases/tag/v0.33.0
"vllm==0.33.0",

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.

The vLLM 0.33 pin is paired with cuDNN frontend 1.25.0, below vLLM's minimum of 1.31.0.

The global override in pyproject.toml:488–490 forces 1.25.0; the locked vLLM dependency selects frontend 1.25.0. Upstream raised the minimum to retain execution plans used by CUDA graphs.

Suggest fix: Apply these edits together:

  1. Remove only the frontend override from pyproject.toml:488–490 and regenerate the lock using each backend's own requirements.
  2. Replace the obsolete frontend explanation in the TRT workspace's pyproject.toml:37–43.

Keep the two adjacent overrides unchanged:

  "nvidia-cublas==13.5.1.27; sys_platform != 'darwin'",
  "nvidia-cudnn-cu13==9.26.0.51; sys_platform != 'darwin'",

Replace only the seven-line TRT frontend comment with:

#   - nvidia-cudnn-frontend>=1.27.0,<1.28 (upstream): resolved from the
#     TRT-LLM requirement independently of the other backend environments.

@yuki-97
yuki-97 merged commit 4c6cb81 into main Nov 13, 2026
149 of 152 checks passed
@yuki-97
yuki-97 deleted the terryk/bump-vllm-0.33 branch November 13, 2026 12:34
yeyu-nvidia added a commit to yeyu-nvidia/RL that referenced this pull request Nov 25, 2026
Conflict resolutions:
- vllm_quant_backend.py / vllm_modelopt.py: keep NVIDIA-NeMo#3945 native real-quant;
  NVIDIA-NeMo#5153 only ported the legacy nemo_modelopt path, which NVIDIA-NeMo#3945 removes.
- prepare_nccl_reshard_refit_info: keep the draft-aware manifest, add
  NVIDIA-NeMo#5153 follow_source_reshard_path.
- _finish_train_step_body: keep the CP-aware draft count reductions, add
  NVIDIA-NeMo#5153 in-loss sequence-filter survivor counts.
- RADIO final LayerNorm patch: NVIDIA-NeMo#5153 0.33 anchors, but load through the
  param weight_loader hook so native refit tracks it (38cd96a).
- Drop the stale _patch_vllm_nemotron_h_fp32_lm_head (superseded upstream
  by NVIDIA-NeMo#5061; referenced an undefined constant, never called).
- Real-quant suites: grep quantization=modelopt only (0.33 dropped the
  Detected ModelOpt NVFP4 checkpoint line).
- uv.lock: NVIDIA-NeMo#5153, to be re-locked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Ye Yu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants