News Infrastructure

Google adds PyTorch-based vLLM and SGLang engines to TPU

Google's TorchTPU runs PyTorch natively on TPU chips, and new vLLM and SGLang engines built on it add caching, offloading and split serving.

Google has launched native PyTorch versions of the vLLM and SGLang serving engines for its TPU chips. Google says vLLM was built with Inferact and SGLang with RadixArk. Both run on TorchTPU, a layer that makes the TPU a standard PyTorch device.

Both engines already ran on TPU through a JAX-based backend. Google says developers wanted to customize and debug their serving stack in PyTorch instead. The new engines keep each framework's scheduler, KV cache manager and API server, and add TPU code underneath. The KV cache is the stored record of earlier text that a model reuses instead of recomputing. Custom kernels written in Pallas are called from PyTorch inside the compiled graph.

Google lists support for agentic, long-context and multimodal workloads. For agents that resend growing conversations, both engines keep reusable prefixes in the chips' high-bandwidth memory. With host offload turned on, they automatically move older prefixes to host memory as a second tier.

Disaggregated serving is also supported. It runs prefill, which reads the prompt, and decode, which writes the answer, on separate TPU hosts. Each request's KV cache then travels from the prefill host to the decode host over TPU Sync.

Source: Announcing New vLLM and SGLang Inference Engines on TPU – Google Developers Blog.