NVIDIA MPS co-locates vLLM inference with PyTorch training

towardsdatascience.com8 min read

The author demonstrates how to co-locate open-weight LLM inference and training workloads on shared GPUs using NVIDIA Multi-Process Service to improve hardware utilization and reduce infrastructure costs. Testing on an Amazon EC2 instance with NVIDIA L40S GPUs running vLLM and a PyTorch training job, the author found that co-location increased Time to First Token by roughly 1.8x and overall latency by 2.4x under heavy inference load, while training throughput dropped by 12.9% when inference was active. Open article →