---
title: "vLLM V0 to V1: Correctness Before Corrections in RL"
description: "Migrating PipelineRL's rollout generation from vLLM V0 (0.8.5) to V1 (0.18.1) caused training metrics (clip rate, KL, entropy, reward) to diverge."
url: "https://swe.quest/articles/vllm-v0-to-v1-correctness-before-corrections-in-rl-4dc68bef7cff8909"
canonical: "https://huggingface.co/blog/ServiceNow-AI/correctness-before-corrections"
source: "Hugging Face"
published: "2026-05-06"
difficulty: "hard"
kind: "Case study"
reading_minutes: 7
tags: ["model-training","inference","llms","debugging"]
---

# vLLM V0 to V1: Correctness Before Corrections in RL

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-05-06, 7 min read, Case study. Original: [https://huggingface.co/blog/ServiceNow-AI/correctness-before-corrections](https://huggingface.co/blog/ServiceNow-AI/correctness-before-corrections)

## Summary

Migrating PipelineRL's rollout generation from vLLM V0 (0.8.5) to V1 (0.18.1) caused training metrics (clip rate, KL, entropy, reward) to diverge. Matching the V0 reference took four backend fixes: setting logprobs-mode=processed\_logprobs so returned logprobs reflect temperature and top-k/top-p processing, explicitly disabling V1's default prefix caching and async scheduling, reproducing V0's inflight weight-update semantics with pause\_generation(mode="keep", clear\_cache=False), and computing the lm\_head in fp32 to match the trainer. Batch invariance and the logprob-mode fix alone did not close the gap. The broader recommendation is to restore inference-backend correctness before adding objective-side off-policy corrections such as truncated importance sampling, so those corrections don't hide backend bugs.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- policy-gradient RL for LLMs (PPO/GRPO) ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- importance ratios and KL divergence
- LLM inference engines ([easy posts on Inference & serving](https://swe.quest/tags/inference.md?difficulty=easy))
- logits sampling (temperature, top-k/top-p)

## Keywords

vLLM, PipelineRL, GSPO, prefix caching, fp32 lm\_head, MiniMax-M1, ScaleRL

## Related posts

- [Putting RL back in RLHF](https://swe.quest/articles/putting-rl-back-in-rlhf-dbdbc5d62840e65d.md): Hugging Face · 2024-06-12 · Hard · 11 min read · Model training, LLMs, Python
  RLOO (REINFORCE Leave-One-Out) is now available as a trainer in Hugging Face TRL.
- [PipelineRL](https://swe.quest/articles/pipelinerl-a0c5543b6f9a965f.md): Hugging Face · 2025-04-25 · Hard · 7 min read · Model training, Inference & serving, LLMs, Open source
  PipelineRL resolves the tradeoff between inference throughput and on-policy data in LLM reinforcement learning by doing inflight weight updates: after each optimizer step, trainers broadcast new weights via NCCL to inference servers, which pause only long enough to receive them and then keep generating with existing KV caches.
- [Unlocking Agentic RL Training for GPT-OSS: A Practical Retrospective](https://swe.quest/articles/unlocking-agentic-rl-training-for-gpt-oss-a-practical-retrospective-2439023c679282b9.md): Hugging Face · 2026-01-27 · Hard · 21 min read · Model training, LLMs, AI agents, Debugging
  Agentic RL training of GPT-OSS-20B in verl initially failed with exploding gradient norms, KL and entropy, and flat rewards.
- [No GPU left behind: Unlocking Efficiency with Co-located vLLM in TRL](https://swe.quest/articles/no-gpu-left-behind-unlocking-efficiency-with-co-located-vllm-in-trl-6f9360880cc9b7e0.md): Hugging Face · 2025-06-03 · Hard · 22 min read · Model training, Inference & serving, Performance engineering, LLMs
  TRL v0.18.0 can run vLLM co-located with the training job on the same GPUs. vLLM's external\_launcher executor puts it inside the torch.distributed process group, replacing the separate HTTP server that left training and inference GPUs idle in turn during GRPO's frequent generation steps.
- [Toward RL on mixed-precision, mixed-accelerator samplers](https://swe.quest/articles/toward-rl-on-mixed-precision-mixed-accelerator-samplers-1c0dc5519077aec1.md): Modal · 2026-10-13 · Hard · 17 min read · Model training, Inference & serving, LLMs, Hardware, Cost optimization
  RL training of Qwen3.6-35B-A3B on agentic coding stays stable when samplers run on six accelerator types (A100 through B300, RTX PRO 6000) in NVFP4, FP8 and BF16 with their own kernels, feeding a BF16 trainer on B200.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
