Skip to content
ChaiBytes

Google Releases TPU Sync Open-Source Library to Speed up AI Model Training

Google has released TPU Sync, an open-source C++ library designed to reduce KV cache transfer latency by over 90% on Cloud TPUs [1, 2].

By , Founder

2 min read

Share

What Happened

Google Cloud has released TPU Sync, an open-source C++ library intended to move model weights and KV caches (Key-Value caches, which store data used during AI inference) on Cloud TPUs [1]. The library is licensed under Apache-2.0 [1].

Google reports that the library can reduce KV transfer latency by more than 90% on Mixture-of-Experts (MoE) models with 235B to 480B parameters [1]. The software treats TPU HBM (High Bandwidth Memory), host DRAM, shared storage, and the data center network as a single memory hierarchy to address bottlenecks in moving model states [1].

Key technical details include:

  • The library uses asynchronous DMA (Direct Memory Access) to move TPU-tiled tensors across different memory tiers [1].
  • It performs two main tasks: managing KV cache state during inference and handling trainer-to-sampler weight broadcasts in reinforcement learning [1].
  • The system includes a global KV store for prefix lookups, a transfer controller, and a KV cache manager [1].
  • For storage, it uses experimental POSIX backends, including local SSDs and Google Cloud Managed Lustre [1].
  • In the prefill node process, KV blocks are offloaded to pinned host RAM through async DMA, then streamed host-to-host to the assigned decode node [1].

Google conducted internal tests in July 2026 using TPU v7x (2x2x1) hardware with the tpu-inference v0.24.0 stack, JAX 0.10.2, and libtpu 0.0.42.1 [1]. The company noted that real-world results will vary [1].

TPU Sync integrates with JAX natively and with PyTorch through TorchTPU [1]. It serves as the TPU KV connector in vLLM-TorchTPU and acts as the P/D transfer and hierarchical cache I/O backend in SGLang-TorchTPU [1]. On GKE (Google Kubernetes Engine), llm-d 1.0 uses it for prefix-cache-affinity routing and experimental spill to Managed Lustre [1]. The integrations for vLLM and SGLang were co-engineered by Inferact and RadixArk [1]. Google stated that Meta and Wayfair are currently evaluating the architecture [1].

Additionally, Google announced the Agent Compute Engine, a Google Cloud service that moves the working memory of idle agent sessions aside until they are required again to save memory [2].

About the author

, Founder

Sources

  1. Google Releases TPU Sync: Open-Source KV Cache Transfer for TPUs — MarkTechPost
  2. Google adds two new specialized chips for AI agents and security to 8th-gen TPU lineup — TPU 8i Max puts two chips on one package for long-context work, TPU 8tx swaps Arm hosts for AMD EPYC | Tom's Hardware — tomshardware.com

Drafted with AI assistance from the reports above and checked automatically for sourcing. Always confirm dates, fees and requirements on the official website before acting. Report an error · How we correct mistakes

Was this helpful?

Questions or something to add?

Ask below. We read every comment and reply when we can.

Leave a comment

Be respectful. Comments with links are reviewed before they appear. Your email is used only to contact you about your comment, such as a reply from the editor.