Blogs / Why a Logprob Mismatch Matters in Online RL

Why a Logprob Mismatch Matters in Online RL

What a Hugging Face post says the inference engine returns, what the trainer computes from it and why any discrepancy changes training dynamics.

  • Learning
  • 1 min read

For: Learners who know what token probabilities are.

Who uses the engine

PipelineRL uses vLLM as the inference engine for rollout generation.[1]

What the engine returns and the trainer computes

The inference engine samples tokens and returns token logprobs; the trainer uses those logprobs to compute policy ratios, KL, clip rate, entropy, and reward.[1]

Inference enginesamples tokensand returns token logprobsTrainer computespolicy ratios, KL, cliprate, entropy and rewardAny discrepancy inthe logprobscan change the trainingdynamicsfeeds
Why does a mismatch matter?

Why a discrepancy matters

Any discrepancy in how those logprobs are computed can change the training dynamics.[1]

Sources

  1. vLLM V0 to V1: Correctness Before Corrections in RL (huggingface.co · checked )

More articles