Repository navigation
Description
Tracking issue for follow-ups deliberately deferred out of #3280 (vLLM 0.20.0 → 0.25.1) so the bump itself stays reviewable. None of these block that PR; each is either pre-existing, upstream, or needs work that does not belong in a version bump.
1. PPO critic grad-norm regression on 0.25 — highest priority
tests/functional/ppo_automodel.sh shows a large, measured change in a training-side metric after the bump:
metric (ppo_automodel) |
vLLM 0.20 | vLLM 0.25 | bound | change |
|---|---|---|---|---|
token_mult_prob_error (max) |
1.0263 | 1.0197 | < 1.05 | ≈ same |
probs_ratio_clamped_min |
0.8000 | 0.8000 | — | identical |
probs_ratio_clamped_max (max) |
1.2800 | 1.2800 | < 1.29 | identical |
critic/loss (max) |
4.037 | 3.087 | < 6.0 | lower |
critic/loss (min) |
2.160 | 1.601 | ≥ 0 | lower |
critic/explained_var (max) |
−0.7208 | −5.2847 | ≤ 1.0001 | 7.3× worse |
critic/grad_norm (max) |
110.54 | 700.22 | < 350 | 6.3× higher |
Sources: 0.25 from #3280's L1_Functional_Tests_PPO (job 90199439799); 0.20 baseline from #3360 (job 90219748938), which passes at 110.54.
What the data says. Every policy-side metric is unchanged — rollout logprobs still agree with training logprobs as well as they did on 0.20 — so this is not generation being broken in any way this test detects. The critic is where it diverges: explained_var at −5.28 means the value function fits the returns much worse than predicting their mean, and a badly-fitting critic produces large value errors and therefore large gradients. explained_var and grad_norm are most likely one phenomenon seen twice.
The question to chase: why is the critic's regression target harder under 0.25 when policy-side metrics are flat? Threads: do returns/advantages differ (nothing in this test asserts on advantage scale); do generation lengths/truncation differ; anything touching the value model rather than the policy model.
Interim state in #3280: the ceiling is raised so the bump is not blocked, with a comment pointing here. That is explicitly a placeholder, not a verdict — please do not close this by declaring the raised bound correct. If 700 turns out to be acceptable, that needs to rest on understanding the critic-fit change, and the bound should then be set from measured behaviour.
History worth knowing: an earlier revision of #3280 raised this ceiling to 1500 claiming "all observed metrics are healthy on-policy values". That claim was unsubstantiated — no functional run had executed on the PR at that point. It was reverted, which is the only reason the regression surfaced at all: 700 passes silently under 1500.
Caveats: n=1 per version, and 2 steps of a freshly-initialised value head is a high-variance regime, so the exact multipliers should not be treated as precise. Repeat runs on each side would firm this up.
- Reproduce with ≥2 runs per version
- Identify the mechanism
- Set the bound from measured behaviour, or fix the cause
- Consider adding a floor on
critic/explained_var— the current assertion is<= 1.0001, which only catches impossible-good values, so a 7× degradation in critic fit triggers nothing on its own and is only visible via the downstreamgrad_norm
2. TRT-LLM nightly recipes — see #3411
Both nightly_gb200.txt TRT-LLM recipes fail at startup, for two unrelated reasons (missing tensorrt_llm module; missing HF model in the CI cache). Tracked separately in #3411. Almost certainly pre-existing rather than bump-related — they appear to have not been running in nightlies at all.
3. DeepSeek-V3 GB200: dies during checkpointing at step 10
grpo-deepseek-v3-32n4g on GB200 now gets all the way to step 10 — 22 completed refits, CUDA graphs captured, validation started — and then dies while saving a checkpoint:
ray.exceptions.ActorDiedError: The actor died unexpectedly before finishing this task.
Worker exit type: SYSTEM_ERROR — Worker unexpectedly exits with a connection error code 2
with a corresponding Slurm step failure on a named node. All three vLLM-0.25 startup blockers fixed in #3280 show zero occurrences in that run (no EADDRINUSE, no ZMQError, no refit-buffer assertion), and the H100 equivalent passes at the same step budget. Reads as node/transport-level rather than application logic, but it has not been root-caused.
- Re-run to establish whether it is reproducible or a one-off infrastructure failure
4. Upstream vLLM fixes worth contributing back
Two source patches in #3280 fix bugs that are byte-identical on vLLM main, so they affect upstream users too:
-
MessageQueueremote-socket probe-then-bind race (shm_broadcast.py): every worker on a non-driver node races for the sameVLLM_PORT. Fixed locally by retrying at the bind. Context in RL-1111. -
RayExecutorV2._select_tcpstore_port: the TCPStore port is chosen from the sameVLLM_PORTscan the broadcastMessageQueuebinds and holds. Context in RL-1104. -
File both upstream
5. Smaller loose ends
-
No nightly coverage for node-spanning engines. Zero of the 140 nightly tests have
tensor_parallel_size * pipeline_parallel_size > cluster.gpus_per_node, which is the only reason two separate startup bugs shipped undetected. All 17 such recipes live in performance/release suites. Both bugs now have cheap unit-level reproductions, but a ≤2-node functional test would close the class properly. -
test_vllm_megatron_pipeline_parallelis ~9% slower on 0.25 (103.80s → 113.10s call time), which is why its 120s budget had to go to 240s. Not a generation-throughput regression — it is engine-init overhead in a test that builds both a Megatron pp=2 policy and a vLLM engine inside one budget. Worth knowing if init time matters elsewhere. -
fp8-rolloutsKV-cache pin is a ~45% cut, and CI cannot detect if it is too small. Now quantified. Measured ongrpo-llama3.1-8b-instruct-1n8g-megatron-fp8-rollouts.v3:vLLM 0.20 (job 371232800) 0.25 @ head, pinned Available KV cache memory 36.13 GiB 20.00 GiB Sleep pool discarded 36.19 GiB 20.00 GiB So the 20 GiB pin is not a 0.20-equivalent restoration — it is the empirical value that stops the wake-up OOM. The recipe comment previously claimed the opposite ("several GiB larger", "0.20-equivalent"); corrected in 72f550c.
The risk is that this recipe's driver asserts only
token_mult_prob_error, with nototal_step_timegate like the moonlight fp8-e2e recipe has — so a throughput regression from an over-tight pin passes CI silently. Worth either adding a step-time gate to this driver or re-deriving the pin from a profile. -
Two sibling fp8 recipes fail with the same wake-up OOM and have no pin.
llm_grpo_llama3_1_8b_instruct_2n8g_megatron_fp8_e2eandllm_grpo_qwen3_8b_base_1n8g_fp8_kvcache_megatronboth die withCUDA Error: out of memory at cumem_allocator.cpp— on 0.20 (:139) as well as 0.25 (:163), so this is pre-existing and not caused by the bump. They keepgpu_memory_utilization: 0.4with nokv_cache_memory_bytes, and0.4is therefore not demonstrated to be safe; they simply never get far enough to prove otherwise.The pin is known to work on this failure class — it took
fp8-rolloutsfrom red-on-main to green-at-head. Deliberately not applied to these two in build: bump vllm 0.20.0 → 0.25.1 #3280, because thefp8-rolloutsvalue came from a measured 0.20 figure and there is no equivalent for a 2n8g run or a different model without profiling each. -
_patch_vllm_init_workers_rayis inert under the 0.25 default.VLLM_USE_RAY_V2_EXECUTOR_BACKENDflipped"0"→"1", soRayExecutorV2is selected and it has no_init_workers_ray; workers get the right interpreter from Ray'sruntime_envinheritance instead. The patch is kept because it is still load-bearing when the v1 executor is selected explicitly, and its logging now says so — but it is a candidate for deletion once the v1 executor path is confirmed dead.
Activity
test: unblock the bump on the PPO critic grad-norm, tracked in #3412
docs(fp8): correct the KV-cache pin rationale with the measured numbers
docs(fp8): tighten the KV-cache pin comment, detail moved to #3412
test: unblock the bump on the PPO critic grad-norm, tracked in #3412
docs(fp8): correct the KV-cache pin rationale with the measured numbers
docs(fp8): tighten the KV-cache pin comment, detail moved to #3412
docs(fp8): correct the KV-cache pin rationale with the measured numbers
docs(fp8): tighten the KV-cache pin comment, detail moved to #3412
test: raise ppo_automodel critic loss bound to 8.0
test: raise ppo_automodel critic loss bound to 8.0
yuki-97 commentedon Aug 3, 2026
#3401, #3404, and #3423 all hit the same pre-existing L1 PPO flake:
train/critic/loss (max)breaches the 6.0 bound since the vLLM 0.25.1 bump (#3280), same neighborhood as thegrad_normbound already raised as a placeholder for this issue. Mitigation on those PRs: bumped thecritic/loss (max)bound from 6.0 to 8.0.Quoting michal2409 on #3404:
tianyi-zhang-02 commentedon Aug 24, 2026
Interested in item 1, and I can do part of it — flagging the split before starting so the halves do not get duplicated.
What I can run. The numbers in this issue all come from CI. Nobody has reproduced them outside it, and an independent measurement seems worth having before anyone reasons about cause.
tests/functional/ppo_automodel.shturns out to fit on a single 24 GiB card: Qwen2.5-0.5B for both policy and value, 2 steps,train_micro_batch_size=1, andcolocated.enableddefaults true withpolicy_gpus_per_node > 0as the only structural guard. Memory is the binding constraint rather than device count — the automodel path loads fp32 (setup.py:330, which is #2865), so each 0.5B model carries ~2 GiB of weights plus ~4 GiB of AdamW state, andgpu_memory_utilization=0.35leaves the engine enough room.So I can report
critic/explained_varandcritic/grad_normon the pinned 0.25.1 from a machine that is not your CI. Two steps will not reproduce a 40-step maximum, so that is a sanity check on sign and order of magnitude, not a reproduction of the maxima.What I cannot. The regression is a 0.20-vs-0.25 delta, and the 0.20 side needs an environment on a vLLM the repo no longer pins, with #3280 having changed the adaptation code in between. Standing that up is its own project and I would rather not guess at it.
Proposal: I run the 0.25 half and post the numbers here with the exact invocation. If someone with a bed that already has both versions runs the same thing on 0.20, the delta is confirmed or refuted outside CI, and the search for cause starts from two independent points rather than one.
One observation while reading, offered as a lead rather than a claim: every policy-side metric being unchanged while
explained_varmoves 7x says the change is in value estimation, not in generation — which makes it odd that a generation-engine bump is the trigger. The obvious bridge is the rollout distribution shifting in a waytoken_mult_prob_errorcannot see, since that metric compares train and gen logprobs on whatever tokens were drawn and stays flat if both move together. #3497 (unset sampling params resolving from the model'sgeneration_config.json) is that shape, though the version table there puts the behaviour change at v0.8.0, so it does not by itself explain a 0.20 → 0.25 delta.Happy to be told this is already in hand — say so and I will leave it alone :)
tianyi-zhang-02 commentedon Aug 24, 2026
I said I would run the 0.25 half on a single card and post the numbers. I could not get there, and since the value of that offer was an independent data point, a report of where it stops seems more useful than silence.
Where it stops
deep_epfails to build, and the worker venv is where it becomes fatal:pyproject.tomlalready notes it (# deep_ep also needs libibverbs-dev). That is a system package and I have no root on this box.The part that makes it unrecoverable rather than inconvenient: I can skip it for the driver environment with
uv sync --extra vllm --no-install-package deep-ep --no-install-package deep-gemm, which produces a workingvllm 0.25.1 / torch 2.11.0+cu130. Butvenvs.py:98builds each worker's environment with a fixedand there is no way to pass an exclusion through it. So
[vllm]makes an InfiniBand-dependent MoE package a hard requirement for running any vLLM-backed test, including a dense 0.5B model on one consumer card. If reproducing this outside CI matters, that is the thing standing in the way.What I am not going to do
I have vLLM 0.27.1 in another environment and could produce an
explained_varnumber from it today. I don't think that number should exist: this issue is about 0.25 specifically, and a figure from a different version would get cited as an independent reproduction while measuring something else.Everything else on the path, in case it saves someone the afternoon
None of these are the blocker, but each cost time and none pointed at itself:
.python-versionpins 3.13.14. uv 0.11.9 only offers 3.13.13 and fails withNo interpreter found.uv syncthen fails withnemo-gym references a workspace in tool.uv.sources, but is not a workspace member, which reads like a pyproject problem.git submodule update --init --recursivefixes it.CUDA_HOMEis not set, butnvccis present — 13.3, inside torch's own pip dependencies atsite-packages/nvidia/cu13/bin/nvcc.which nvccfinds nothing, which is not the same thing. SettingCUDA_HOMEthere plus alib64 -> libsymlink lets CUDA extensions compile./mnt/c/Users/First Last/...and/Users/First Last/...are ordinary shapes on WSL and macOS, and the symptom is a Ray actor-creation failure that never mentions the path.--locked. Going to 0.12.5 (to get 3.13.14) makes everyuv run --lockedfail withlockfile has non-canonical formatting at line 1. Inside the worker builder that surfaces asModuleNotFoundError: No module named 'vllm', which sends you off reinstalling vLLM.docker/DockerfilepinsUV_VERSION=0.11.28; staying on 0.11.x is what works. Install 3.13.14 with the newer uv, then downgrade — the interpreter persists.Still happy to do the half that fits
If
deep_epcan be made optional for the worker venv — or if there is a documented way to run the functional PPO test without the full[vllm]extra — I will run it and postcritic/explained_varandcritic/grad_normfrom outside CI. Two steps will not reproduce a 40-step maximum, so it would be a check on sign and order of magnitude, as I said before.The 0.20 side I still cannot do, for the reason in my earlier comment.
cc @yuki-97 for review or routing to the right person :)