Same Math, Different Programs: JAX and TorchTPU on a TPU
On one TPU v5e chip, JAX and TorchTPU compute the same math. Speed comes from how many XLA programs a training step becomes, and from a few defaults.
Research Scientist at TwelveLabs and Google Developer Expert in AI/ML
I help language models see and understand the world a little better. I'm a research scientist at TwelveLabs, working on Pegasus, our video language model. As a Google Developer Expert in AI/ML, I love sharing what I learn with other developers, and this blog is where I slow down to write about the ideas, events, and people I meet along the way.
On one TPU v5e chip, JAX and TorchTPU compute the same math. Speed comes from how many XLA programs a training step becomes, and from a few defaults.
Serving Gemma 4 26B-A4B on a TPU v6e-4: why FP8 is the slow format on v6e, how a broken MTP drafter was fixed, and how a profile found half of each decode step in masked attention.
My recap of Google I/O Connect China 2025 as a first-time AI GDE: the JAX-on-TPU stack behind Gemini is being handed to application developers through Keras 3 and sharding-first JAX, while ADK makes the agents built on top of it composable.
How a small model can give an agent fast judgment: Gemma 3 270M scores the actions a game offers, trained with Tunix and run on a Mac with MLX.
How the Kanana-2 small language models were built, and how elastic training produced a family of dense models in several sizes from a single training run, instead of training each size from scratch.
Part of the AI Hypercomputer session on resilient training and serving infrastructure on Google Cloud. Shared how Kakao trains its large language models with JAX on Cloud TPUs.
Kanana-2: an open 30B-A3B MoE and on-device small models for KakaoTalk
Open Korean LLMs up to 12.8B parameters, trained on 256 A100 GPUs
37% higher throughput for Qwen3-Next 8B on TPU v5e-256