How to Choose an AI Accelerator: A Decision Framework by Workload
[!NOTE] TL;DR: There’s no best accelerator — there’s a best answer to five questions: What framework is your code in? What workload are you running? What scale and where? What does your team already know? And what is each option worth if things change? Answer them honestly and the choice usually makes itself.
The GPU-vs-TPU debate generates more heat than light because it’s usually asked as a brand question instead of a workload question. With TPUs now credible at frontier scale and GPUs answering with rack-scale systems of their own, the decision deserves a framework rather than a recommendation. Here’s the one that actually resolves it in practice.
Table of Contents
Q1: What Does Your Code Already Say?
This is the question that eliminates options fastest, and it’s the one teams skip.
JAX or PyTorch-on-XLA, standard transformer, new pipeline? You’re a natural TPU candidate — the architecture was designed for exactly this, and the perf-per-dollar case is strongest here.
PyTorch or anything else with CUDA-specific code, custom kernels, or exotic ops? GPU, and the question is settled. Porting to XLA is a re-architecture, not a migration — see the TCO analysis for what that actually costs.
Don’t know yet / research still fluid? GPU. Optionality has no substitute when the workload is still changing shape.
Q2: What’s the Actual Workload?
Match the chip to the shape of the work:
| Workload | Best fit | Why |
|---|---|---|
| Frontier-scale pre-training | TPU pod or NVL72-class GPU rack | Both are valid; pick by ecosystem, not spec |
| High-volume inference / serving | TPU7x or GPU + TensorRT-LLM | TPU edge on $/token at scale; GPU edge on flexibility |
| Fine-tuning / LoRA | Mid-tier GPU or TPU slice | Both cheap; go where your pipeline already lives |
| Research / novel architectures | GPU | CUDA programmability is non-negotiable |
| Mixed training + serving + preprocessing | GPU | One fleet does everything |
| Embedding-heavy / MoE | TPU7x (SparseCores) or GPU | SparseCores are purpose-built for this |
Q3: What Scale — and Where?
Under a certain scale the TCO math rarely justifies leaving your default. A startup fine-tuning a standard model on a few accelerators should not over-think this — GPU, on whatever cloud already hosts you, is the answer until it provably isn’t.
Above that scale, the question inverts: are you inside Google Cloud’s gravity? If yes, TPU economics become compelling because the pod, the interconnect, and the tooling arrive as one product. If you’re multi-cloud, on-prem, or need procurement flexibility, GPU is the only option that doesn’t cost you portability.
Q4: Who Has to Operate It?
Talent is a cost line item that doesn’t appear on vendor quotes. CUDA-fluent ML engineers vastly outnumber XLA-fluent ones; a TPU strategy carries a hiring or retraining premium that TCO models almost never include. If your team is small and your models are standard, that premium is manageable. If you’re betting a large program on it, it’s a real risk factor — which is part of why Anthropic’s “all three platforms” strategy is a talent hedge as much as a hardware one.
Q5: What’s Change Worth?
The last question is the one nobody prices: what is it worth to you that things might change? Requirements shift, models change shape, a new framework wins the next cycle, a supply constraint hits one vendor. Portability is insurance — and it’s the strongest structural argument for GPUs, and for multi-platform strategies generally.
The frontier labs’ actual behavior is the answer to the whole framework: Anthropic on TPUs + Trainium + GPUs; Meta renting TPUs while buying GPUs. Not indecision — portfolio optimization. If billion-dollar infrastructure teams can’t justify a single winner, your five answers probably can’t either.
Frequently Asked Questions
Q: Should I choose GPU or TPU for a startup? A: GPU, almost by default. It’s available on every cloud, every framework assumes it, the talent pool is deeper, and at startup scale the TCO difference rarely justifies the porting and hiring premium. Revisit when your workload is large, standard, JAX/PyTorch-based, and the economics actually move the needle.
Q: When does TPU become the clearly better choice? A: When your workload is standard transformer training or high-volume inference on JAX or PyTorch, your scale justifies pod-level commitment, you’re already in (or willing to move to) Google Cloud’s gravity, and you don’t carry a CUDA codebase that needs porting. All four, not just one.
Q: Can I run on both GPU and TPU? A: Yes — that’s the actual strategy of every frontier lab. Anthropic runs TPUs, Trainium, and GPUs simultaneously; Meta rents TPUs while buying GPUs at scale. PyTorch portability across both substrates makes it feasible; per-workload optimization makes it worthwhile.
Q: What’s the most common mistake in this decision? A: Optimizing on spec-sheet FLOPs-per-dollar and skipping the other four questions. Utilization, porting cost, team skills, and portability decide real outcomes far more often than peak numbers — the chip is the smallest variable in the equation.
Q: Does the choice lock me in permanently? A: Only to the degree your code is platform-specific. JAX/PyTorch-XLA code moves between TPU and GPU reasonably well; deeply CUDA-specific code doesn’t. Design for the abstraction layer, not the chip — and treat the accelerator choice as workload-level, revisited per deployment, rather than a one-time platform bet.