vLLM TorchTPU

Run vLLM on Google TPUs: a new option beyond CUDA for the PyTorch ecosystem

What it is

During PyTorch Conference week Google pushed its TorchTPU strategy — a PyTorch build targeting its TPUs — and the vLLM community followed with vllm-torchtpu, bringing the high-throughput inference engine to TPU hardware. Combined with vLLM’s PagedAttention and continuous batching, teams can keep one PyTorch codebase and choose GPU or TPU serving, reducing lock-in to the CUDA stack. The sgl-project shipped a parallel sglang-torchtpu the same week, signaling a fast-moving TPU inference ecosystem.

Highlights

  • Apache-2.0 licensed under the official vllm-project org
  • Native PyTorch-on-TPU path: one codebase for both GPU and TPU
  • Inherits vLLM’s PagedAttention and continuous batching
  • Rides this week’s TorchTPU ecosystem push, alongside sglang-torchtpu

How to use

Install vllm-torchtpu in a TPU environment following the README, then load models through the same vLLM API you use on GPUs. Smoke-test on a small TPU slice first, benchmark throughput and cost, and watch operator coverage and precision when migrating.

License

Released under Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.