AI Cloud Architect

Not All LLM Workloads Are Equal: Benchmarking TPU Performance on Classification vs. Generation

GoogleHow-to by Rupjit ChakrabortyGoogle 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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

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.

The same at other vendors