Skip to content

[rl] Pin the nightly vLLM wheel to 2026-11-07 - #5958

Merged
felipemello1 merged 1 commit into
pytorch:mainfrom
felipemello1:felipemello1/rl/pin-vllm-nightly
Nov 9, 2026
Merged

felipemello1 merged 1 commit into
pytorch:mainfrom
felipemello1:felipemello1/rl/pin-vllm-nightly

Conversation

@felipemello1

@felipemello1 felipemello1 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary (human-written)

everything will break tomorrow after new wheels come out. This is just to avoid that.

This stack is to fix the code base to work with latest vllm #5967

Agent details

Written with Claude Code.

TLDR: scripts/install_rl_env.sh installs vllm==1.0.0.dev20261107+cu132 instead of the newest nightly vLLM wheel. RL CI keeps the vLLM it installs today when PyTorch moves its vLLM pin.

main:     torch, torchvision, vllm: newest nightly  -> vLLM = whatever commit PyTorch pins next
this PR:  vllm==1.0.0.dev20261107                   -> vLLM 9f03b510c (same as today), torch 2.16.0.dev20261107

Problem

  1. PyTorch's nightly vLLM wheel is built from the vLLM commit in PyTorch's .github/ci_commit_pins/vllm.txt. That pin has been stuck on vLLM 9f03b510c (09-13) because the wheel build was failing. The build is fixed now, so the pin will move.
  2. vLLM main deleted the V1 model runner and vllm/v1/cudagraph_dispatcher.py on 11-07.
  3. torchtitan/rl/generator/vllm/worker.py imports both. All 5 RL workflows run install_rl_env.sh with no vLLM pin. So the first nightly after the pin moves fails every RL job at import, on main and on every PR that runs RL CI.

Solution

  1. Pin the 11-07 wheel. It holds vLLM 9f03b510c, the same vLLM RL CI installs today.
  2. That wheel pins torch to its own date, so RL CI runs torch 2.16.0.dev20261107 until the pin goes. Core CI keeps the newest nightly.
  3. The pin is temporary (TODO: 2026-11-22). The follow-up installs a vLLM PyPI release on the newest torch nightly, once the generator runs on vLLM 0.33.

You may ask: why not the 11-08 wheel? The index already replaced it once (two uploads on 11-08, different contents). If 11-08 were rebuilt after the pin moved, it would hold the new vLLM. The 11-07 wheel was built before any pin move.

NOTE:

  • If RL CI fails on a torch API newer than 11-07 before the follow-up lands, land the follow-up first.
  • --cuda now works only with cu132, the only index with the pinned wheel. No CI job passes --cuda.

Test plan

  • Fresh venv on GB300 (aarch64): scripts/install_rl_env.sh --flash-attn none installs torch 2.16.0.dev20261107+cu132, torchvision 0.30.0.dev20261108+cu132 and vllm 1.0.0.dev20261107+cu132 (vllm.__version__ = 0.1.dev1+g9f03b510c.d20261107). The script's .dev / +cu132 check passes.
  • Same venv, GPUs hidden as on the CPU CI runner: CUDA_VISIBLE_DEVICES= pytest tests/rl/unit_tests/cpu -> 566 passed, 8 skipped (verifiers and dist_moe not installed).
  • ciflow/rl on this PR.

PyTorch's nightly vLLM wheel is built from the vLLM commit PyTorch pins. The
next pin moves RL CI to a vLLM main without the V1 model runner that the
generator subclasses. Pin the 11-07 wheel (vLLM 9f03b510c, the same vLLM RL CI
installs today) until RL installs a vLLM PyPI release.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 8, 2026
@felipemello1
felipemello1 marked this pull request as ready for review November 9, 2026 03:03
@pytorch-bot pytorch-bot Bot added the ciflow/fake-pg Run 1-GPU Fake PG integration tests label Nov 9, 2026
@acisseJZhong

Copy link
Copy Markdown
Contributor

shall we update rl to use model running v2 instead of pinning vllm nightly?

@felipemello1

Copy link
Copy Markdown
Contributor Author

shall we update rl to use model running v2 instead of pinning vllm nightly?

good question @acisseJZhong
everything will break tomorrow after new wheels come out. This is just to avoid that.

This stack is to fix the code base to work with latest vllm #5967

@acisseJZhong acisseJZhong 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.

accept to unblock, in the longer term, can we depend on vllm stable + torch nightly, instead of vllm nightly + torch nightly?

@felipemello1

Copy link
Copy Markdown
Contributor Author

accept to unblock, in the longer term, can we depend on vllm stable + torch nightly, instead of vllm nightly + torch nightly?

yes, thats what the stack is doing!

@felipemello1
felipemello1 merged commit 3da9eac into pytorch:main Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/fake-pg Run 1-GPU Fake PG integration tests ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants