Not All LLM Workloads Are Equal: Benchmarking TPU Performance on Classification vs. Generation
Google•How-to••by Rupjit Chakraborty•Google Cloud Blog (developers and practitioners)
Benchmark Gemma 3 on Google Cloud TPU v6e. Find out why generation tasks hit a performance wall and how to optimize throughput with vLLM bucket padding.
A Google Cloud benchmark of Gemma 3 12B and 27B on TPU v6e finds the 27B model plateaus at 128 users for generation, while classification scales similarly for both sizes.
Who it is for
Teams serving Gemma 3 on GKE TPU v6e who need to size replicas, set autoscaling limits and choose between 12B and 27B.
Key points
Generation: 27B plateaus at a 4.12x throughput multiplier at 128 users; 12B reaches 8.19x (relative to 12B at 16 users).
Classification: both models reach about 6.0x to 6.4x at 128 users, per the post.
Post suggests scaling on end-to-end latency rather than CPU/memory and tuning vLLM bucket padding.
Setup: GKE Autopilot with a single-host TPU v6e node pool in a 2x2 topology; models taken from Hugging Face.
Benchmark uses a single test configuration; results are the authors' measurements, not general guarantees.
AI:Both show where throughput plateaus as concurrent users rise on an LLM endpoint, but Google does it as a manual TPU benchmark rather than a SageMaker automated sweep.
AI:Both benchmark LLM serving performance on a cloud platform to pick settings, using Google TPUs in the item and an AWS SageMaker route with BentoML in C15.
AI:Release notes bundle several AI items: Pathways on Cloud is GA on GKE for TPU training, Gemini 3.8 Flash is GA in Canada and Japan, Claude Fable 5.2 is GA in Model Garden, Meta Muse models are in preview, and Agent Substrate on GKE is GA.
AI:A Google guide gives hardware-based design rules for LLMs and Mixture-of-Experts models on TPUs, covering 256-aligned dimensions, LatentMoE compression, and mapping parallel axes to physical links.
AI:HeyGen reports its Avatar IV video model runs 1.86x faster on an eight-chip Trillium TPU host, through attention kernel, collective overlap and softmax changes.