Gemma 2 9B at FP16 needs 18.0 GB for its weights and 40.5 GB in total at 8K context with 8 concurrent users. That means it fits on a single TPU v5p (per-chip, 95GB). Every figure is computed by tokcalc's open-source capacity model.
| GPUs | Total VRAM | VRAM needed | Decode tok/s | Aggregate tok/s | TTFT | Cost / 1M tok | Fits? |
|---|---|---|---|---|---|---|---|
| 1× TPU | 95 GB | 40.5 GB | 29.58 | 354.9 | 706.3 ms | $3.29 | ✓ |
| 2× TPU | 190 GB | 40.5 GB | 50.28 | 1207 | 371.1 ms | $1.93 | ✓ |
| 4× TPU | 380 GB | 40.5 GB | 100.6 | 4827 | 200.6 ms | $0.9669 | ✓ |
| 8× TPU | 760 GB | 40.5 GB | 201.1 | 19307 | 115.3 ms | $0.4834 | ✓ |
| Context | Concurrent users | KV per request | Fits? |
|---|---|---|---|
| 4K | 54 | 1.41 GB | ✓ fits |
| 8K | 27 | 2.82 GB | ✓ fits |
| 33K | 6 | 11.27 GB | ✓ fits |
| 66K | 3 | 22.55 GB | ✓ fits |
| 131K | 1 | 45.10 GB | ✓ fits |
| GPU | GPUs | Aggregate tok/s | Cost / 1M tok |
|---|---|---|---|
| RTX 5090 32GB | 2× | 2640 | $0.1052 |
| AMD MI300X 192GB | 1× | 2297 | $0.3024 |
| AMD MI325X 288GB | 1× | 2600 | $0.3739 |
| A100 80GB SXM4 | 1× | 866.7 | $0.3846 |
| Intel Gaudi 3 128GB | 1× | 1430 | $0.3885 |
| H100 SXM5 80GB | 1× | 1452 | $0.4784 |
Yes. Gemma 2 9B at FP16 needs 40.5 GB including the KV cache, and TPU v5p (per-chip, 95GB) has 95 GB — so it fits on a single GPU.
29.58 tokens/sec per stream and 354.9 tok/s aggregate with continuous batching at 8 concurrent users. Time to first token is 706.3 ms, and inter-token latency is 33.8 ms.
$3.29 per 1M output tokens at 1× TPU v5p (per-chip, 95GB) ($4.20/hr). That is the marginal hardware cost — add idle capacity, ops, and egress for the real figure.
18.0 GB for the weights at FP16, plus 22.5 GB of KV cache for 8 concurrent requests at 8K context — 40.5 GB total. Every extra concurrent user at long context costs more, so leave headroom.
It works. Compare $3.29 per 1M tokens against the alternatives below — the cheapest option that fits the same workload is 8× RTX 3080 10GB at $0.0248, and the fastest is 8× RTX 3080 10GB at 17916 tok/s.
Same formulas, your context length, concurrency, and quantisation.