Chasing Speed of Light on TPU v6e In a blog post, the team at an AI infrastructure company detailed their optimization of Gemma 4 31B on Google's TPU v6e, boosting prefill efficiency from ~32% to ~63% MFU. They highlighted the chip's trade-offs, including lower memory bandwidth and slower inter-chip interconnect compared to NVIDIA H100, but noted its cost-effectiveness for certain workloads. We recently released HTDYM /blog/htdym , our performance modeling infrastructure which helps us assess which chips are most cost effective to deploy models on. If HTDYM always spat out that serving on NVIDIA or AMD was best, our jobs would be easy. These platforms have strong software ecosystems and highly optimized off the shelf codepaths in existing inference engines we can take advantage of. Unfortunately, this is often not the case. Depending on the model, more niche/specialized accelerators often offer performance at a substantial discount relative to the big players. We found this to be the case with Gemma 4 31B, which perhaps unsurprisingly being a Google model , appeared on paper to be a good fit for Google’s TPU v6e, and decided to give it a shot. In this post, we’ll break down our journey optimizing Gemma 4 on TPU v6e, taking prefill from an unimpressive ~32% MFU to a substantial ~63%. To understand what optimizations were necessary and why, let’s first look at what this chip is good at, and where it’s likely to struggle. Meet the v6e TPU v6e is a pretty weirdly spec’d accelerator by modern standards. Compared to an H100, it matches it in BF16 FLOPs, but has 2.5x less HBM, and less than half the memory bandwidth. 1 fn-1 Its inter-chip interconnect ICI is also constrained compared to H100. On a standard 8x H100 node, every GPU is connected to every other GPU via NVLink. On TPU v6e, each chip is connected only to its neighbors. In a 2x2 topology, the 4 chips form a ring. The ICI bandwidth numbers Google and NVIDIA quote are perhaps intentionally difficult to compare directly. In practice, an of a matrix sharded across all chips on a single host reaches an effective bandwidth of ~180 GB/s on TPU v6e vs. ~400 GB/s on H100. 2 fn-2 Low memory capacity, low memory bandwidth, and slow ICI... why would we ever want to use a chip like this? Memory is expensive, some estimates find HBM alone is north of 63% of the cost of producing an AI accelerator today.