Skip to content
IJK

vLLM V0 to V1: Logprob Semantics and the Prefix Cache

By IJK ·

What a Hugging Face post says vLLM V1 returns logprobs from by default, what the trainer expected and what a prefix-cache hit can reuse across weight updates.

The first issue, semantics

The first issue was semantic. vLLM V1 returns logprobs from the raw model outputs by default, before logits post-processing such as temperature scaling, penalties, and top-k/top-p filtering. [1]

What the trainer expected

PipelineRL expected logprobs from the processed distribution used by the sampler. [2]

What a prefix-cache hit can reuse

A prefix-cache hit can reuse state computed before a weight update when the cache policy ignores the weight-update boundary. [3]

differs fromthenV1 logprobs from raw model outputs by defaultbefore logits post-processingThe trainer expected the processeddistributionused by the samplerPrefix-cache hit across a weight updatecan reuse state computed before the update
Where did the post find the mismatch?

Sources

  1. The Hugging Face source says: The first issue was semantic. vLLM V1 returns logprobs from the raw model outputs by default, before logits post-processing such as temperature scaling, penalties, and top-k/top-p filtering. vLLM V0 to V1: Correctness Before Corrections in RL
  2. The Hugging Face source says: PipelineRL expected logprobs from the processed distribution used by the sampler. vLLM V0 to V1: Correctness Before Corrections in RL
  3. The Hugging Face source says: A prefix-cache hit can reuse state computed before a weight update when the cache policy ignores the weight-update boundary. vLLM V0 to V1: Correctness Before Corrections in RL

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • vllm
  • reinforcement learning
  • inference
  • debugging