Google Cloud Open Sources TPU Sync Library to Reduce Latency
November 30, 2026 · 2 min read
Also published in Português (Brasil)
Google Cloud has open sourced TPU Sync, which is a native C++ library designed to transfer model weights and KV cache blocks across data center networks, shared storage, host DRAM, and TPU HBM. The company also released the TPU 8i Max and TPU 8tx systems.
This project targets workloads that often remain idle while waiting for data, specifically decoupled large language model services with long contexts and reinforcement learning loops that push updated weights from trainers to rollout samplers. Google reports that for decoupled prefill and decode scenarios, the median KV cache transfer latency for Qwen3 235B dropped from several seconds to approximately 230 milliseconds. In low concurrency situations, the average time to first token for that model decreased by 60 percent, while a 480B model saw a 90 percent reduction. For prefix caching scenarios, the average time to first token for 64K context workloads decreased by up to 90 percent.
Developers can access Python Wheel for PyTorch and JAX, which includes APIs for weight synchronizers, KV Store, and a KV cache manager. TPU Sync serves as a KV Connector for vLLM-TorchTPU via the vLLM KVConnector interface. It also acts as a tiered cache backend and decoupled service for SGLang-TorchTPU. Additionally, it can work with llm-d 1.0 on GKE to enable prefix cache aware routing. The reinforcement learning weight synchronization modules for multi controller JAX and Pathways remain in an experimental stage.
The project has been validated on TPU v6e and TPU v7x. The PyTorch Wheel requires a matching torch_tpu build version, though that version has not been released to public package indexes. The GitHub repository, which has absorbed the previous TPU Raiden codebase, warns that APIs are changing quickly. Because only development versions are currently on PyPI, the project suggests pinning to the most recent known working commit.
TPU Sync is released under the Apache 2.0 license. Its repository includes C++ and Python APIs, architecture documentation, and examples for host KV offloading and decoupled services for single and multi host setups. Until a stable version is released, the PyTorch and JAX packages remain as development versions, and the reinforcement learning weight synchronization and storage tiering features are still experimental.