Google · Chat and reasoning · 31.3B parameters · apache-2.0
Gemma 4 31B
Needs 42 GB at FP8 / INT8. The smallest real configuration today is 2× Tesla V100 32GB at Vast.ai, $0.14 per hour, about $99 a month at 730 hours.
Parameters31.3Bdense
Context256k tokensmaximum published
Checkpoint63 GBBF16, as published
ReleasedApr 2, 2026documented date
Smallest configuration · FP8 / INT8
2× Tesla V100 32GB64 GB VRAM · 65% used
- Per hour
- $0.14
- Per month
- $99
- Cheapest at
Vast.ai
How much VRAM it needs
Weights plus runtime overhead, then the KV cache that grows with the context you serve.
| Precision | Weights | Weights + headroom | 4k context | 32k context | 128k context | 256k context |
|---|---|---|---|---|---|---|
| BF16published checkpoint | 63 GB | 76 GB | 77 GB | 82 GB | 98 GB | 119 GB |
| FP8 / INT8published checkpoint | 34 GB | 42 GB | 43 GB | 48 GB | 64 GB | 86 GB |
| INT4 / MXFP4published checkpoint | 20 GB | 25 GB | 26 GB | 31 GB | 47 GB | 68 GB |
| KV cacheone sequence, FP16 cache, included above | — | — | 2 GB | 7 GB | 23 GB | 44 GB |
Cross-checked on Hugging Face Oct 28, 2026: 31.3B parameters in the safetensors headers, 62.5 GB of weight files, attention layout from config.json (60 layers, 16 KV heads × 256, 50 sliding-window layers). Method: weights as published at the native precision, verified on Hugging Face 2026-10-28; other precisions estimated at 1 (8-bit) and 0.6 (4-bit) bytes per parameter; × 1.2 runtime headroom; KV cache = 16384 bytes per token per layer × 10 full-attention layers + 50 sliding-window layers capped at 1024 tokens (FP16 cache, one sequence).config.json ↗
What it costs to run, GPU by GPU
The fewest GPUs of one type whose total memory fits the model at short context, priced from the cheapest eligible on-demand offer for exactly that count (45-day window, newest reading per provider), with the next providers beside it. Monthly = 730 hours.
| GPU | Smallest config | VRAM used | $ / hour | $ / month | Cheapest at |
|---|---|---|---|---|---|
| Tesla V100 32GBBest fit | 2× 32 GB64 GB total | 65% | $0.14 | $99 | |
| T4 | 4× 16 GB64 GB total | 65% | $0.16 | $117 | |
| RTX 3060 | 4× 12 GB48 GB total | 86% | $0.16 | $119 | |
| Tesla P100 | 4× 16 GB64 GB total | 65% | $0.19 | $138 | |
| RTX 3090 | 2× 24 GB48 GB total | 86% | $0.21 | $157 | |
| Quadro RTX 8000 | 1× 48 GB48 GB total | 86% | $0.25 | $186 | |
| RTX 6000 | 2× 24 GB48 GB total | 86% | $0.27 | $196 | |
| Titan RTX | 2× 24 GB48 GB total | 86% | $0.27 | $196 | |
| Titan Xp | 4× 12 GB48 GB total | 86% | $0.27 | $196 | |
| L40 | 1× 48 GB48 GB total | 86% | $0.27 | $196 | |
| RTX 2080 Ti | 4× 11 GB44 GB total | 94% tight | $0.28 | $202 | |
| RTX A6000 | 1× 48 GB48 GB total | 86% | $0.33 | $241 | GPURentonot scored · read Nov 1 · receipt · also gcube $0.34, Thunder Compute $0.35 |
| A40 | 1× 48 GB48 GB total | 86% | $0.35 | $255 | GPURentonot scored · read Nov 1 · receipt · also Vast.ai $0.48, Exoscale $1.05 |
| RTX 5060 Ti | 4× 16 GB64 GB total | 65% | $0.35 | $258 | |
| RTX A4000 | 4× 16 GB64 GB total | 65% | $0.36 | $266 | |
| RTX A5000 | 2× 24 GB48 GB total | 86% | $0.38 | $274 | |
| RTX 4070 Super | 4× 12 GB48 GB total | 86% | $0.38 | $274 | |
| Tesla V100 16GB | 4× 16 GB64 GB total | 65% | $0.38 | $275 | |
| RTX 6000 Ada | 1× 48 GB48 GB total | 86% | $0.40 | $290 | |
| Quadro RTX 5000 | 4× 16 GB64 GB total | 65% | $0.40 | $294 | |
| RTX 3090 Ti | 2× 24 GB48 GB total | 86% | $0.42 | $304 | |
| L40S | 1× 48 GB48 GB total | 86% | $0.43 | $314 | |
| RTX PRO 4000 | 2× 24 GB48 GB total | 86% | $0.45 | $332 | |
| A800 80GB PCIe | 1× 80 GB80 GB total | 52% | $0.47 | $342 | |
| The 24 cheapest of 74 GPU types that fit. Every GPU, any precision and context, in the finder | |||||
Tokens per second, and what a million costs
Chat and reasoning. Speed estimated from memory bandwidth and model size, never measured. The cost per 1M output tokens is the study's own estimate at the prices it read on 2026-10-04; it is not recomputed here.
| GPU | Cards | Precision | tok/s per user | per 1M output tokens · study estimate |
|---|---|---|---|---|
| MI300X | 1 | FP8 | 72.0 | $0.253 |
| H100 SXM | 1 | FP8 | 62.0 | $0.321 |
| B200 | 1 | FP8 | 126 | $0.329 |
| H100 PCIe | 1 | FP8 | 39.5 | $0.347 |
| H200 | 1 | FP8 | 82.6 | $0.365 |
| RTX PRO 6000 | 1 | FP8 | 36.0 | $0.369 |
| RTX 5090 | 2 | FP8 | 44.8 | $0.378 |
| RTX 4090 | 2 | FP8 | 28.4 | $0.474 |
| L40S | 1 | FP8 | 18.3 | $0.636 |
| A100 80GB | 1 | BF16 | 21.8 | $1.35 |
cards, precision and speed estimated from memory bandwidth and model size (internal study); cost recomputed by the site from verified prices · cheapest per output at study prices: MI300XWhy estimates, and their limits →
