Llama 2 7B at FP16 needs 13.5 GB for its weights and 47.8 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 | 47.8 GB | 39.49 | 473.9 | 536.5 ms | $2.46 | ✓ |
| 2× TPU | 190 GB | 47.8 GB | 67.14 | 1611 | 285.5 ms | $1.45 | ✓ |
| 4× TPU | 380 GB | 47.8 GB | 134.3 | 6445 | 157.7 ms | $0.7241 | ✓ |
| 8× TPU | 760 GB | 47.8 GB | 268.5 | 25780 | 93.9 ms | $0.3620 | ✓ |
| Context | Concurrent users | KV per request | Fits? |
|---|---|---|---|
| 4K | 37 | 2.15 GB | ✓ fits |
| 8K | 18 | 4.29 GB | ✓ fits |
| 33K | 4 | 17.18 GB | ✓ fits |
| 66K | 2 | 34.36 GB | ✓ fits |
| 131K | 1 | 68.72 GB | ✓ fits |
| GPU | GPUs | Aggregate tok/s | Cost / 1M tok |
|---|---|---|---|
| RTX 5090 32GB | 2× | 3526 | $0.0788 |
| AMD MI300X 192GB | 1× | 3067 | $0.2264 |
| AMD MI325X 288GB | 1× | 3472 | $0.2800 |
| A100 80GB SXM4 | 1× | 1157 | $0.2880 |
| Intel Gaudi 3 128GB | 1× | 1909 | $0.2909 |
| H100 SXM5 80GB | 1× | 1938 | $0.3583 |
Yes. Llama 2 7B at FP16 needs 47.8 GB including the KV cache, and TPU v5p (per-chip, 95GB) has 95 GB — so it fits on a single GPU.
39.49 tokens/sec per stream and 473.9 tok/s aggregate with continuous batching at 8 concurrent users. Time to first token is 536.5 ms, and inter-token latency is 25.3 ms.
$2.46 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.
13.5 GB for the weights at FP16, plus 34.4 GB of KV cache for 8 concurrent requests at 8K context — 47.8 GB total. Every extra concurrent user at long context costs more, so leave headroom.
It works. Compare $2.46 per 1M tokens against the alternatives below — the cheapest option that fits the same workload is 8× RTX 3080 10GB at $0.0186, and the fastest is 2× Cerebras CS-3 (WSE-3) at 39347 tok/s.
Same formulas, your context length, concurrency, and quantisation.