Skip to content
IJK

Co-Located vLLM in TRL: Training and Inference on the Same GPUs

By IJK ·

What a Hugging Face post says vLLM server mode was before TRL v0.18.0, what co-location changes and what was not possible before.

Before TRL v0.18.0

Before TRL v0.18.0, vLLM was only supported in server mode, running as a separate process on different GPUs from the training job. [1]

What co-location is

Training and inference are co-located on the same GPUs and coordinated via the same process group, allowing them to take turns smoothly — no extra hardware needed. [2]

replaced byvLLM server modea separate process on different GPUs from the tra...Co-located training and inferencethe same GPUs, coordinated via the same process g...Not possible beforeTRL relied on vLLM as an external HTTP server
What does co-location change?

What was not possible before

Previously, this wasn’t possible in TRL, which relied on vLLM as an external HTTP server. [3]

Sources

  1. The Hugging Face source says: Before TRL v0.18.0, vLLM was only supported in server mode, running as a separate process on different GPUs from the training job. Co-located vLLM in TRL
  2. The Hugging Face source says: Training and inference are co-located on the same GPUs and coordinated via the same process group, allowing them to take turns smoothly — no extra hardware needed. Co-located vLLM in TRL
  3. The Hugging Face source says: Previously, this wasn’t possible in TRL, which relied on vLLM as an external HTTP server. Co-located vLLM in TRL

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

  • trl
  • vllm
  • grpo
  • hugging face