Google Open-Sources TPU Sync for KV Cache and Weight Transfer on TPUs
- TPU Sync
- vLLM
- SGLang
- JAX
- PyTorch
- Pathways
- NVIDIA Dynamo
- LMCache
- Mooncake
AI Summary
Google Cloud has open-sourced TPU Sync, a native C++ library designed to optimize the transfer of KV cache blocks and model weights between TPU HBM, host DRAM, shared storage, and data center networks. Targeting long-context and disaggregated LLM serving alongside reinforcement learning loops, the library significantly reduces latency, achieving up to 90% lower time-to-first-token (TTFT) for large models. It provides C++ and Python APIs for JAX and PyTorch, integrates with frameworks like vLLM and SGLang, and is licensed under Apache 2.0.
Key Takeaways
- TPU Sync cuts median KV transfer latency for Qwen3 235B from several seconds down to about 230 ms.
- The library integrates with vLLM-TorchTPU, SGLang-TorchTPU, and llm-d 1.0 on GKE for prefix-cache-aware routing.
- APIs are currently changing rapidly, with development builds available on PyPI and an experimental RL weight-sync module.
Why it matters
Data movement and memory bottlenecks remain critical hurdles in large-scale LLM serving and reinforcement learning. TPU Sync offers a specialized, open-source solution for hardware-accelerated KV cache and weight transfers on TPUs, directly addressing multi-node latency and capacity constraints.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.