[rollout, vllm, ray] feat: isolate standalone rollout Python runtime #8407
All Vouch review confidence checks passed
Residual risk 0.38 = Change Risk (0.64) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.64 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #8407"
general
weight: 0.35
Levius-Fubuki
What does this PR do?
Add an opt-in
actor_rollout_ref.rollout.runtimedescriptor for a pre-provisioned Python interpreter. A training-only environment can launch standalone vLLM HTTP actors, backend children, and rollout checkpoint workers in a separate environment without importing vLLM on the controller. Leaving it unset preserves the shared-runtime path.This implements an initial slice of #8388: V1
separate_async, CUDA, FSDP2, vLLM and NCCL, with hybrid switching disabled. Python, Ray, PyTorch and verl sources must match; arbitrary mixed core versions, PD, colocated/hybrid workers, and teacher/reward runtime overrides remain outside this change.Checklist Before Starting
neowith a backend-neutral worker runtime. Neither provides this standalone vLLM Python environment selection.Test
Ownership follow-up (
360e29b): replaced the temporary factory task with a retained, non-detached launcher actor. Both launcher and native server are tied to controller/job lifetime. This revision was validated on macOS/arm64, Python 3.12.13, Ray 2.55.1 and PyTorch 2.13.0:The GPU and application results below were collected at
55c61de, before the ownership follow-up. GPU integration has not been rerun on360e29b.Server: 2 × RTX 3090 24 GB, Python 3.12.3, Ray 2.55.1, PyTorch 2.13.0+cu130; rollout vLLM 0.32.0. Separate locked
uvenvironments; training environment has no vLLM installed.Additional application check: Qwen3-0.6B (revision
c1899de289a04d12100db370d81485cdf75e47ca), one FSDP2 training GPU and one TP=1 rollout GPU, GRPO batch 4 / n=2 / response length 16 / lr=1e-5, synthetic prompts and deterministic synthetic rewards. Two optimizer steps completed with checkpoints and weight synchronization:| Step | Gradient norm | Weight-sync seconds |
| --- | ---: | ---: |
| 1 | 8.815419 | 1.358 |
| 2 | 7.831224 | 1.345 |
| 3 (cold restart) | 15.106471 | 1.355 |
Training peak tensor allocation was 11.12 GiB. Two-second device-memory samples peaked at 13,097 MiB (training) and 6,762 MiB (rollout). The full job logged an ignored DataLoader-worker atexit warning after reaching 2/2 steps. A fresh Ray job restored step 2 model/optimizer/RNG/LR-scheduler/dataloader and queued prompt groups, then completed step 3 (exit code 0); it also logged an exit-time DataLoader-worker warning.
These are functional correctness checks on small workloads, not throughput or convergence benchmarks.
API and Usage Example
See
docs/advance/isolated_rollout_runtime.mdfor provisioning, precedence and unsupported topologies.Design & Code Changes
Checklist Before Submitting
AI assistance: implementation, code review, and the reported experiments used OpenAI Codex. The test results above are agent-run.