Repository navigation
build: bump vllm to 0.33.0 - #5153
Conversation
|
/ok to test 3037418 |
|
/ok to test 57aa56d |
|
/ok to test f0c6dac |
|
/ok to test 422c787 |
|
/ok to test 38328b0 |
|
/ok to test e4b09f3 |
|
/ok to test ab95028 |
|
/ok to test 5b97077 |
|
/ok to test 9d69dc2 |
|
/ok to test d330dad |
|
/ok to test 6d113c1 |
|
/ok to test 1ccc0ea |
|
/ok to test 5cbceec |
|
/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]>
5f98ba3 to
b3b6fe5
Compare
|
/ok to test b3b6fe5 |
terrykong
left a comment
There was a problem hiding this comment.
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_vllmruns 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
ModelOptLinearMethodinstead of a copiedprocess_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 wrapsRayExecutorV2._build_runtime_envinstead of replacing it. - The
nccl_reshardhandshake 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.
- (C1) Diagnostic script 6 fails with its default flags on vLLM 0.33.
- (C2) The router-replay guide shows numbers measured with prefix caching off next to a line saying it is on.
- (C3)
TORCH_EXTENSIONS_DIRfolders namedtorch-…get stripped. - (C4)
self.per_token_activation = Truedoes nothing, and its comment says it does. - (C5) The
cuda_ipc.pydocstring still calls vLLM a same-torch consumer of the trainer's CUDA IPC handles; it is on torch 2.14 now. - (C6)
research/README.mdshould warn that switching research projects in one venv needs an exact sync or a fresh env.
Generated by Claude Code
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]>
|
/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]>
|
/ok to test 4e6b860 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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"| 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. |
There was a problem hiding this comment.
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:
| 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 |
There was a problem hiding this comment.
[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| # 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 |
There was a problem hiding this comment.
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:| # 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", |
There was a problem hiding this comment.
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:
- Remove only the frontend override from
pyproject.toml:488–490and regenerate the lock using each backend's own requirements. - 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.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]>
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(mainwas merged in at 685fc22). The "main" column in the nightly table is the scheduledmainnightly from the day before and the day of the branch run.Three decisions to confirm
deep_gemmanddeep_epfrom source.deep_gemm: the vLLM 0.33 wheel ships its own prebuilt DeepGEMM 2.8.1 (x86_64 and aarch64) and only uses it whenimport deep_gemmfails. 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 defaultallgather_reducescatterall2all backend, which does not need it. Selecting adeepep_*backend throughvllm_kwargswould now fail at engine start. The trainer venvs keep DeepEP.Changes
Dependencies (
pyproject.toml,uv.lock) — f61c461, f61c461, f61c461main>=5.16.1,<5.21sm110a/sm121aare aarch64 onlyNew test — 617ed69
test_every_vllm_source_patch_applies_to_installed_vllmruns the worker's patch entry point on copies of the installed vLLM files and fails on any warning. Most patches inpatches.pyonly 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.33py_executablev1/executor/ray_executor.pywas deleted; the patch raised and every worker died at startupprepare_monolithic_logitsline); silent miss → all-zero routes for router replayRoutedExpertsSinkon the layer; silent miss → per-token NVFP4 kernel rejectedmainafter this branch started)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
VLLM_USE_RAY_V2_EXECUTOR_BACKENDandRayDistributedExecutorare goneRayDistributedExecutorRayExecutorV2._build_runtime_envvllm.entrypoints.chat_utilsis gonevllm.utils.torch_utils.is_quantized_kv_cacheis goneModelOptMxFp8LinearMethodis gone; the import sat inexcept ImportError: return, so the rebuild was skipped silentlyModelOptNvFp4LinearMethodandLinearMethodClsare gone (one genericModelOptLinearMethodnow)replace_parameterlost itsprefer_copyargument; FP8 engines that swap a parameter layout died at startupmax_position_embeddingsas already YaRN-scaled, so the recipe'smax_model_lenwas rejectedquantization=nemo_modelopt_...insteadnccl_reshardrefit (Megatron → vLLM)nccl.m2n.reshardop or the Python transfer by what its own venv can import. flashinfer 0.7.2 installsnccl-extensions(which shipsnccl.m2n) in the vLLM venv only, so the two ends used different transfers and the refit hung in NCCLget_logprobsTORCH_EXTENSIONS_DIR)uv run --extra mcoremcore/automodelextras stay on 2.13.uv run --extra mcoreput a TransformerEngine build for torch 2.13 in the shared driver venv, the next plainuv runmoved torch back to 2.14, and every later test in the container failed with an undefined-symbolImportError--isolatedmain)OutputProcessorstate 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 thererouting_sinkargument toFusedMoEKernel.apply_monolithic; our override ofModelOptMxFp8FusedMoE.apply_monolithicdid not pass it (TypeErroron the first forward pass)LLM.generatecan 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 H100parallel_tool_calls=false(Gym BrowseComp agent)</tool_call>came back with logprob ~0 from vLLM against about -8.4 from the trainer, sotrain/token_mult_prob_errorreached 2 to 5000 on a few steps ofgrpo_async_gym_single_controller_context_compaction.sh(limit 1.05)L1_Functional_Tests_Other_1/L0_Unit_Tests_Other--inexact.flow_grponeedsnemo-rl[automodel](torch 2.13 and TransformerEngine);template_projectneeds plainnemo-rl, which now resolves torch 2.14, so itsuv runleft a TransformerEngine built for 2.13 behind (undefined symbolintransformer_engine_torch)torch.is_tensorNot changed here
main, with the same draft acceptance length (2.43 vs 2.45).nixl_epmodule at startup and logs an import warning. The same warning is inmain'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.
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.mainuv lock --check, pyreflyuv.lockwritten by a newer uv than CI's; torch 2.14 typingconfigs-minimize-checktest_captured_media.py::test_real_vllm_retained_image_budget_and_cachetest_vllm_fp8_hf_overrides.py::test_vllm_keeps_target_dict_overrides_out_of_draft_modelcompose_draft_hf_overridesreturns afunctools.partialtest_nemo_gym.py::test_vllm_http_logprobs_contracttop_logprobs=nullnow returns logprobstest_vllm_generation.py::test_vllm_http_serverweight_versionstest_vllm_fp8_quantization.py(5 tests)replace_parameterlostprefer_copy(source fix)test_deepseek_v4_two_refits_preserve_kernel_fp32_scale_referencesmoe_backendtest_modelopt_moe_amax_aliases_satisfy_installed_vllm_loaderis_act_and_multest_pinned_with_cancellation_aborts_chat_completion_on_http_disconnect(2 tests)with_cancellationreturns an emptyResponse()instead ofNonereplace_parameterlayout-change testParameterobject and swaps its datatest_rollout_manager.py::test_async_nemo_gym_rollout_managerand..._matches_originaltest_vllm_generation.py::test_vllm_http_server(second failure, after 09ff906)top_logprobs=nullis accepted instead of rejected with a 400H100 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
main(fixed by the merge 685fc22)configs-minimize-check(row above)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 onmain(job 130013516240), so it looks flaky and not caused by the bump;L0_Unit_Tests_Vllm_3did not finish in 80 minutes (the ModelOpt hang fixed by 9fd43dd). Replaced by the next runL0_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_jobcounted 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 startmain(fixed by the merge d07e18d)L0_Unit_Tests_Nemo_Gym(job 130332851732),test_vllm_token_capture_hosting.pybuilt 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 runL1_Functional_Tests_Other_1(job 130436971185): the research project row above (fixed by ea6f8bc).L1_Functional_Tests_SingleController_3(job 130436971180): theparallel_tool_callsrow above; the same job passed onmainat this branch's merge base (job 130295253812, max 1.026) (fixed by b3b6fe5)mainagain (#4905; fixed by the merge 5f98ba3, which also addsai-dynamoto thevllmextra and re-resolvesuv.lock)L0_Unit_Tests_Otheron a second attempt) and all 22 functional jobs.L1_Functional_Tests_PPO_1: attempt 2 (job 130658113043) failedppo_non_colocated.sh'smax critic/grad_norm < 350check 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 onmain(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)main): all unit shards and all functional jobs. Attempt 1 failed onlyL0_Unit_Tests_Other(job 130878008938):unit/data_plane/nixl/test_ssd_tier.py::test_a_failed_write_fails_the_put_and_frees_the_io_areacounted 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 reruncodecov/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: theRayExecutorV2nsys 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
mainin 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)
maingrpo_nccl_reshard_refitmodelopt_quant_rolloutppo_megatron,ppo_automodel,ppo_async_single_controller,gdpo_async_grpo,grpo_async_replay_buffer_checkpoint,vlm_grpo,prorlv2,grpo_nixl_non_colocatedImportErrorin the driver, because they ran afterqa_distillation_megatronin one container: driver and trainer extras now resolve different torch versions (see the changes table). All pass on Slurm job 21676982 at 1e10aa6⚪ Not run here, left to L1 (3)
grpo_sc_generation_shard_recoveryxtoken_off_policy_distillationgrpo_async_gymHF_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)
mainllm_grpo_deepseek_v4_flash_0731_16n8g_automodel_cp8ep128replace_parameterlostprefer_copyllm_grpo_qwen2_5_1_5B_4n8g_megatron_yarn_256kmax_position_embeddingsas already YaRN-scaledllm_grpo_qwen3_30ba3b_10n8g_megatron_cp2_r3_async_single_controllerllm_grpo_qwen3_30ba3b_10n8g_megatron_cp2_r3_asyncllm_grpo_qwen3_30ba3b_8n8g_megatron_cp2_r3_tq_simplellm_grpo_qwen3_30ba3b_8n8g_megatron_cp2_r3llm_grpo_qwen3_30ba3b_thinking_swe1_16n8g_megatron_cp2_r3_async_gymllm_grpo_qwen3_8b_base_dapo_2n8g_long_megatron_qa_nvfp4_w4a16llm_ppo_qwen3_30ba3b_3n8g_megatron_cp2_r3_async_single_controller❌ Still failing, not caused by the bump (22)
mainllm_dapo_gemma4_12b_it_2n8g_automodelmainllm_dapo_gemma4_e2b_it_1n8g_automodelmainllm_grpo_deepscaler_1_5b_8K_tq_simplemainllm_grpo_gspo_deepscaler_1_5b_8K_tq_nixlmainllm_grpo_llama3_1_8b_instruct_2n8g_automodel_noncolocated_tq_nixlmainllm_grpo_llama3_1_8b_instruct_2n8g_megatron_fp8_e2e_tq_nixlmainllm_grpo_llama3_2_1b_instruct_1n8g_automodel_v3_tq_simpleNo module named ...). The first rerun passed. The second rerun trained all 500 steps and passed the probability-error checks; it failed onlymean(total_step_time, last 5) < 10with 10.04 s, where the passingmainrun 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_nixlmainllm_grpo_moonlight_16ba3b_4n8g_megatron_tq_nixlmainllm_grpo_nanov3_30BA3B_2n8g_noncolocated_async_gym_single_controller_token_capture_r3_defermainllm_grpo_nanov3_30ba3b_3n8g_megatron_dynamo_swe1main(the Gym actor dies during rollout collection)llm_grpo_qwen3_1_7b_6n8g_megatron_super_rlvrmainllm_grpo_qwen3_8B_base_1n8g_automodel_lora_tq_nixlmainllm_grpo_qwen3_8b_4n8g_automodel_dflashmainllm_grpo_qwen3_8b_4n8g_automodel_dsparkmainllm_grpo_qwen3_8b_4n8g_automodel_eagle3mainllm_grpo_qwen3_8b_base_1n8g_megatron_lora_tq_nixlmainllm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_valuetp2_cp2main. 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_mooncakemainvlm_vlm_grpo_qwen2_5_vl_3b_instruct_clevr_1n8g_automodel_tq_nixl_v1mainvlm_vlm_grpo_qwen3_5_35ba3b_geo3k_2n8g_automodel_ep16_tq_simpletoken_mult_prob_errorcheck, also fails onmainvlm_vlm_grpo_qwen3_5_35ba3b_geo3k_2n8g_automodel_ep16token_mult_prob_errorcheck, also fails onmain✅ 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
mainand 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_cp2runs out of time as it does onmain, and..._automodel_v3_tq_simplepassed in the earlier rerun and this time missed its step-time check by 0.4% after training all 500 steps (see its row).mainllm_dapo_nanov3_5_30BA3B_4n8g_automodel_ep8_r3No module named ...)llm_distillation_qwen3_1_7b_1n8g_megatron_qa_nvfp4No module named ...)llm_distillation_xtoken_off_policy_multiteacher_qwen3_4b_llama3_2_3b_to_llama3_2_1b_1n8g_automodel_tp4cp2mainjobs that day did too; steady step time equalsmainllm_distillation_xtoken_off_policy_qwen3_4b_to_llama3_2_1b_1n8g_automodel_tp4cp2mainjobs that day did too; steady step time equalsmainllm_dpo_mistral_nemo_instruct_2407_1n8g_automodel_tp8_actckpt_longllm_grpo_cispo_mm1_async_lag1_highoffpolicy_qwen3_30ba3b_3n8g_megatron_cispollm_grpo_deepscaler_1_5b_16Kllm_grpo_deepscaler_1_5b_8Kllm_grpo_gemma3_1b_it_1n8g_automodel_tq_simplemainjobs that day did too; steady step time equalsmainllm_grpo_llama3_1_8b_instruct_1n8g_megatron_fp8_rollouts_v3_tq_simplemainjobs that day did too; steady step time equalsmainllm_grpo_llama3_1_8b_instruct_1n8g_megatron_fp8_rollouts_v3mainjobs that day did too; steady step time equalsmainllm_grpo_llama3_2_1b_instruct_1n8g_automodel_tp2_temp0_8_topp0_9_topk50_tq_mooncakellm_grpo_llama3_2_1b_instruct_1n8g_automodel_tp2_temp0_8_topp0_9_topk50mainjobs that day did too; steady step time equalsmainllm_grpo_llama3_2_1b_instruct_1n8g_automodel_v3mainjobs that day did too; steady step time equalsmainllm_grpo_llama3_2_1b_instruct_1n8g_megatron_generation_tq_mooncakellm_grpo_llama3_2_1b_instruct_1n8g_megatron_temp0_8_topp0_9_topk50_isllm_grpo_llama3_2_1b_instruct_1n8g_megatron_temp0_8_topp0_9_topk50_tq_mooncakellm_grpo_llama3_2_1b_instruct_1n8g_megatron_temp0_8_topp0_9_topk50mainjobs that day did too; steady step time equalsmainllm_grpo_math_qwen3_30ba3b_megatron_tp4_32kNo module named ...)llm_grpo_moonlight_16ba3b_4n8g_megatron_vllm_tp2ep16mainjobs that day did too; steady step time equalsmainllm_grpo_nanov3_30BA3B_2n8g_automodel_lorallm_grpo_qwen2_5_32b_32n8g_automodel_tp8_actckpt_v3No module named ...)llm_grpo_qwen2_5_math_1_5b_instruct_1n8g_automodel_v3_tq_simpleNo module named ...)llm_grpo_qwen2_5_math_1_5b_instruct_1n8g_automodel_v3mainjobs that day did too; steady step time equalsmainllm_grpo_qwen2_5_math_1_5b_instruct_1n8g_megatron_single_controller_sync_tq_mooncakemainjobs that day did too; steady step time equalsmainllm_grpo_qwen2_5_math_1_5b_instruct_2n8g_automodel_sglangllm_grpo_qwen2_5_math_1_5b_instruct_2n8g_megatrontp1_sglangNo module named ...)llm_grpo_qwen3_1_7b_2n8g_megatron_super_rlhfllm_grpo_qwen3_30ba3b_4n8g_megatron_qa_nvfp4No module named ...)llm_grpo_qwen3_30ba3b_4n8g_megatron_zmq_deltaweight_noncolocatedNo module named ...)llm_grpo_qwen3_8B_base_1n8g_automodel_lora_mergedmainjobs that day did too; steady step time equalsmainllm_grpo_qwen3_8B_base_1n8g_automodel_loramainjobs that day did too; steady step time equalsmainllm_grpo_qwen3_8b_base_1n8g_megatron_loramainjobs that day did too; steady step time equalsmainllm_mopd_qwen3_1_7b_3n8g_megatron_packNo module named ...)llm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_noncolocated_asyncmainjobs that day did too; steady step time equalsmainllm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_noncolocatedmainjobs that day did too; steady step time equalsmainllm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_valuetp2sp_dynbatchmainjobs that day did too; steady step time equalsmainllm_ppo_qwen2_5_1_5b_gsm8k_1n8g_automodel_valuetp2sp_packmainjobs that day did too; steady step time equalsmainllm_ppo_qwen2_5_1_5b_gsm8k_1n8g_megatron_valuetp2sp_dynbatchmainjobs that day did too; steady step time equalsmainllm_ppo_qwen2_5_1_5b_gsm8k_1n8g_megatron_valuetp2sp_pp2cp2_packllm_ppo_qwen2_5_1_5b_gsm8k_2n8g_megatron_valuetp2sp_dynbatch_noncolocated_async_single_controllermainjobs that day did too; steady step time equalsmainllm_ppo_qwen2_5_1_5b_gsm8k_2n8g_megatron_valuetp2sp_dynbatch_noncolocated_asyncllm_ppo_qwen2_5_1_5b_gsm8k_2n8g_megatron_valuetp2sp_dynbatch_noncolocatedllm_prorlv2_qwen2_5_math_1_5b_instruct_1n8g_automodel_v2_tq_mooncakemainjobs that day did too; steady step time equalsmainllm_prorlv2_qwen2_5_math_1_5b_instruct_1n8g_automodel_v2mainjobs that day did too; steady step time equalsmainllm_sft_llama3_1_8b_1n8g_automodel_lorallm_sft_llama3_1_8b_1n8g_automodel_tp2Nightly on GB200
deep_gemmdoes not compile against torch 2.14 (fixed by f61c461)uv lock --check(fixed by f61c461)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.
maincolumns are the two latestmainnightlies. 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)
mainllm_grpo_qwen3_5_35ba3b_4n4g_megatron_ep16tp2_mxfp8_trtllmapply_monolithic() missing ... 'routing_sink'llm_grpo_qwen3_30ba3b_4n4g_megatron_te_nvfp4_pertoken_quickmain: "auxiliary output generation changed with output in flight" at the first generate after a refitllm_grpo_qwen3_30ba3b_4n4g_megatron_qa_nvfp4_w4a4_realllm_grpo_nanov3_30ba3b_4n4g_megatron_qa_nvfp4_w4a16_realllm_grpo_qwen3_5_35ba3b_6n4g_async_1off_bf16_trtllmnccl_reshardrefit hung until the job was cancelled❌ Still failing, not caused by the bump (7)
mainllm_distillation_nano3_30ba3b_4n4g_megatron_qa_nvfp4_modelopt_specmain(Gym config path not found)llm_grpo_gemma3_1b_it_1n4g_automodelmain; ran all 400 steps, then the metric check failedllm_grpo_qwen2_5_math_1_5b_instruct_1n4g_automodel_v3main; ran all 450 steps, then the metric check failedllm_grpo_nanov3_30BA3B_4n4g_megatron_generation_noncolocated_mxfp8_rolloutsmain; ran all 10 steps, then the metric check failedllm_grpo_qwen3_30ba3b_2n4g_megatron_generation_noncolocated_zero_klmain; ran all 5 steps, then the metric check failedllm_grpo_qwen3_1_7b_2n4g_megatron_trtllm_disagg_swe1main(TRT-LLM NIXL assertion)vlm_vlm_grpo_nemotron_omni_30ba3b_clevr_8n4g_megatron_generation_v1main; 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.
mainllm_grpo_moonlight_16ba3b_4n4g_megatronKeyError: ...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 scheduledmainnightlies 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_gymlatest_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_generationCommit 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 newmaincommits. 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.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 inmegatron_policy_worker.py: keep bothmain's new localrefit_infoand this PR'ssource_uses_real_reshard_opkey.AuxOutput Connector requires prefix caching. Fixed script reportsnum_failures: 0on a tiny Qwen3 MoE (16 outputs) and on Moonlight 16B (32 outputs), with and without--enable-chunked-prefillmean(gen_kl_error)0.000364 with routed experts (job 541964199) against 0.000864 without (job 541272606); the doc says 0.00037 against 0.00086torch-…was mistaken for one of our per-version folders/scratch/torch-extensionsbecame/scratch/torch-2.14.0. After:test_transformers_module_patching.pypasses (3 tests) on H100 and in L1per_token_activation = Trueon the per-token NVFP4 method is never readllm_grpo_qwen3_30ba3b_4n4g_megatron_te_nvfp4_pertoken_quickpasses at 5d40c55 (job 547109941):mean(gen_kl_error)0.0084 < 0.02--inexactcan leave a TransformerEngine built for the other torchresearch/README.mdflow_grposync gives torch 2.13 and TransformerEngine imports;template_projectwith--inexactgives torch 2.14 and TransformerEngine fails withundefined symbol; an exact sync removes itRuns on the new head:
L0_Unit_Tests_Other, on the open-file-count check intest_ssd_tier.py, which this PR does not touchllm_grpo_qwen3_30ba3b_4n4g_megatron_te_nvfp4_pertoken_quick(job 547109941)llm_grpo_qwen3_5_35ba3b_6n4g_async_1off_bf16_trtllm(job 547233819), thenccl_reshardrefit recipe touched by the merge conflictmean(gen_kl_error)0.0010 < 0.002,max(reward)0.75 > 0.5Before your PR is "Ready for review"
Pre checks:
🤖 Generated with Claude Code