AI Infrastructure
Google Releases PyTorch-Native AI Inference Engines for TPU Hardware
vLLM and SGLang now run natively on TPUs through PyTorch, enabling developers to build and debug production AI serving systems with familiar tools.
Google Developers Blog (AI)
Google has launched production-ready PyTorch backends for two major AI inference frameworks—vLLM and SGLang—designed to run natively on Tensor Processing Units (TPUs). The initiative stems from developer demand for PyTorch-based customization and debugging capabilities on TPU hardware, moving beyond previous JAX-based implementations.
Building Native PyTorch on TPU#
The new engines rest on TorchTPU, which enables PyTorch to execute directly on TPU devices. Tensors are managed as standard PyTorch objects, code runs eagerly or compiles via torch.compile through XLA, and distributed operations flow through torch.distributed. This architecture allows vLLM and SGLang to maintain their existing worker models, schedulers, and APIs while adding TPU-optimized implementations underneath—particularly custom Pallas kernels that integrate directly into compiled graphs.
Production-Ready Features for Diverse Workloads#
Both engines ship with comprehensive optimization support across multiple dimensions:
- Agentic & multi-turn workloads: Automatic prefix caching for hybrid models, KV cache offloading to host memory and Managed Lustre, tool calling, structured output
- Low-latency serving: Speculative decoding using MTP, EAGLE-3, DFlash, DSpark, and n-gram drafters
- High-throughput processing: Data-parallel attention with expert parallelism
- Long-context handling: Context parallelism for both prefill and decode phases, FP8 KV cache compression, host offloading
- Disaggregated architecture: Separate prefill and decode on different hosts via TPU Sync
- Multimodal support: Vision-language and embedding models with image and video processing
- Scale: Hybrid and sparse-attention models using tensor, data, expert, pipeline, and context parallelism with mixed-precision checkpoints
Agentic applications particularly benefit from these features working in tandem—prefix caching avoids recomputing expanding conversations, while tiered KV offloading automatically migrates older prefixes from device memory to host DRAM and persistent storage as needed.

