Skip to content

vLLM 0.25 bump: cleanup and loose ends #3412

Open

Description

@terrykong

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 downstream grad_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:

  • MessageQueue remote-socket probe-then-bind race (shm_broadcast.py): every worker on a non-driver node races for the same VLLM_PORT. Fixed locally by retrying at the bind. Context in RL-1111.

  • RayExecutorV2._select_tcpstore_port: the TCPStore port is chosen from the same VLLM_PORT scan the broadcast MessageQueue binds 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_parallel is ~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-rollouts KV-cache pin is a ~45% cut, and CI cannot detect if it is too small. Now quantified. Measured on grpo-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 no total_step_time gate 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_e2e and llm_grpo_qwen3_8b_base_1n8g_fp8_kvcache_megatron both die with CUDA 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 keep gpu_memory_utilization: 0.4 with no kv_cache_memory_bytes, and 0.4 is 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-rollouts from 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 the fp8-rollouts value 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_ray is inert under the 0.25 default. VLLM_USE_RAY_V2_EXECUTOR_BACKEND flipped "0" → "1", so RayExecutorV2 is selected and it has no _init_workers_ray; workers get the right interpreter from Ray's runtime_env inheritance 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

  1. added
    bug
    on Jul 29, 2026
  2. yuki-97 commented on Aug 3, 2026

    @yuki-97
    Contributor

    #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 the grad_norm bound already raised as a placeholder for this issue. Mitigation on those PRs: bumped the critic/loss (max) bound from 6.0 to 8.0.

    Quoting michal2409 on #3404:

    Same pre-existing L1 PPO flake as on #3401 (critic loss vs the 6.0 bound since the vLLM 0.25.1 bump): raised the bound to 8.0 with a note pointing at #3412.

  3. tianyi-zhang-02 commented on Aug 24, 2026

    @tianyi-zhang-02
    Contributor

    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.sh turns 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, and colocated.enabled defaults true with policy_gpus_per_node > 0 as 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, and gpu_memory_utilization=0.35 leaves the engine enough room.

    So I can report critic/explained_var and critic/grad_norm on 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_var moves 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 way token_mult_prob_error cannot 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's generation_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 :)

  4. tianyi-zhang-02 commented on Aug 24, 2026

    @tianyi-zhang-02
    Contributor

    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_ep fails to build, and the worker venv is where it becomes fatal:

    fatal error: infiniband/mlx5dv.h: No such file or directory
    subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1
    help: `deep-ep` was included because `nemo-rl[vllm]` depends on `deep-ep`
    

    pyproject.toml already 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 working vllm 0.25.1 / torch 2.11.0+cu130. But venvs.py:98 builds each worker's environment with a fixed

    uv run --locked --extra vllm --directory <root>

    and 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_var number 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:

    1. .python-version pins 3.13.14. uv 0.11.9 only offers 3.13.13 and fails with No interpreter found.
    2. Submodules are not initialised by a plain clone. uv sync then fails with nemo-gym references a workspace in tool.uv.sources, but is not a workspace member, which reads like a pyproject problem. git submodule update --init --recursive fixes it.
    3. CUDA_HOME is not set, but nvcc is present — 13.3, inside torch's own pip dependencies at site-packages/nvidia/cu13/bin/nvcc. which nvcc finds nothing, which is not the same thing. Setting CUDA_HOME there plus a lib64 -> lib symlink lets CUDA extensions compile.
    4. The repo cannot run from a path containing a space — filed as Worker startup fails when the repo path contains a space (unquoted git_root re-parsed by shlex.split) #3800. /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.
    5. Upgrading uv breaks --locked. Going to 0.12.5 (to get 3.13.14) makes every uv run --locked fail with lockfile has non-canonical formatting at line 1. Inside the worker builder that surfaces as ModuleNotFoundError: No module named 'vllm', which sends you off reinstalling vLLM. docker/Dockerfile pins UV_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_ep can 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 post critic/explained_var and critic/grad_norm from 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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accuracybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions