Gemma 4 31B on RTX 5090 workstation (1x 32 GB)
31.273B on 32 GB at 1,792 GB/s. Hardware details · Model details
Q4_K_M configuration, requiring approximately 27.2 GB at 8K context. Practical context capacity is 8K. Measured evidence: 67.31 t/s median across 33 comparable runs at Q4_K_M and 128 context. AggregatedMemory budget at 8K context
Measured performance · recommended Q4_K_M
Decode, prefill and TTFT below are measured for Q4_K_M, the recommended configuration.
Measurement evidence
33 measured runsRows are kept separate when quantization, runtime, context, workload or execution settings differ.
| Quant | Engine | Decode mode | Context | Runs | Median decode | Median prefill | Latest | Sources |
|---|---|---|---|---|---|---|---|---|
Q4_K_M | llama.cpp | standard | 128 | 33 | 67.31 t/s | — | 1 Jul 2026 | llm-speed.com |
How the estimate is calculated
- Decode: reading 31.3B active parameters at 4.85 bits/weight takes 13.36 ms at 1792 GB/s x 79% achieved efficiency.
- Prefill: 210 TFLOPS (FP16) x 2 for native FP8 tensor cores x 0.71 calibrated against measured prefill on this platform x 32% assumed model-FLOPs utilisation, divided by 2 x 31.3B parameters per token.
- Prefill throughput is highly engine-dependent. Flash attention, batch size and quantized KV all move this number substantially, and for sparse mixture-of-experts models it is the least reliable figure we produce.
- This is a calculated estimate, not a measurement. It assumes a single request, a short prompt, no speculative decoding and a warm model already resident in memory.
Estimator version estimator_v1. Stored with every estimated row so old estimates can be regenerated when the model improves.
Why this is rated "High" confidence
- Independent third-party benchmark: +3
- 33 measurements: +2
- Sources agree closely (±1%): +2
- Incomplete run metadata: +0
Score 7/10. Aggregated with the median, not the mean, so one outlier cannot move the headline figure.
| Quantization | Resident | Disk | Total needed | Utilisation | Fit | Max context |
|---|---|---|---|---|---|---|
Q4_K_Mrecommended | 18.2 GB | 18.2 GB | 27.2 GB | 93% | BorderlineResident run observed | 8K |
Q5_K_M | 21.3 GB | 21.3 GB | 30.5 GB | 104% | Does not fit | 4K |
Q8_0 | 31.6 GB | 31.6 GB | 41.0 GB | 139% | Does not fit | 0 |
BF16 | 58.3 GB | 58.3 GB | 68.5 GB | 233% | Does not fit | 0 |
The $100 comparison uses the Codex Pro 5x / Claude Max 5x plans. A fixed planning conversion is used for USD. This compares monthly spend only: subscriptions have usage limits, local hardware has different capabilities and constraints, and taxes or regional pricing may change the charged amount. Prices checked 7 September 2026.
Monthly breakdown
| Depreciation 2,832 over 5 years, straight-line to a 500 residual | $47.21 |
| Electricity 32.4 kWh/month at 0.140/kWh | $4.53 |
| Cost of capital 4.0%/yr on 1,916 average capital employed | $6.39 |
| Monthly cost before tax | $58.13 |
| Electricity tax shield Running costs are deductible business expenses | −$0.95 |
| First-year expensing §179 (100.0%) | −$11.66 |
| Monthly economic cost after tax | $45.51 |
Three different numbers, deliberately
Assumptions and sources (verified 2026-09-07)
- VAT rate: No US federal VAT · verified 2026-09-07
- Marginal tax rate: IRS Publication 542 — Corporations · verified 2026-09-07
- VAT recoverable fraction: site assumption · verified 2026-09-07
- Useful life: IRS Publication 946 — How To Depreciate Property · verified 2026-09-07
- Electricity price: Site assumption · verified 2026-09-07
| Hosted model | USD/1M output | Break-even | API at your volume | Verdict | Comparison type |
|---|---|---|---|---|---|
| Qwen3.8 Flash Alibaba Cloud | $0.42 | 29.6M/mo | $13 | API cheaper | Different model |
| DeepSeek-V4.1 Flash DeepSeek | $0.60 | 25.3M/mo | $15 | API cheaper | Different model |
| DeepSeek-V4 Pro DeepSeek | $1.98 | 6.3M/mo | $62 | Local cheaper | Different model |
| DeepSeek V4 Pro (Together) Together AI | $4.40 | 2.1M/mo | $181 | Local cheaper | Different model |
| GLM-5.3 Z.ai | $4.40 | 2.9M/mo | $133 | Local cheaper | Different model |
| Claude Haiku 4.5 Anthropic | $5.00 | 3.5M/mo | $111 | Local cheaper | Different model |
| Hardware | Decode | Price | Fit |
|---|---|---|---|
| NVIDIA DGX H200 (8x H200, 1,128 GB) | ~313–451 t/s | $359,430 * | Comfortable |
| Quad RTX 5090 workstation (4x 32 GB) | ~68.1–98 t/s | $12,611 * | Comfortable |
| Lenovo ThinkStation PX (4x RTX PRO 6000, 384 GB) | ~59.4–85.5 t/s | $58,553 * | Comfortable |
| Dual RTX 5090 workstation (2x 32 GB) | ~45.2–65.1 t/s | $5,854 * | Comfortable |
| Dell Precision 7960 Rack (2x RTX PRO 6000, 192 GB) | ~41.4–59.6 t/s | $36,663 * | Comfortable |
| Dual used RTX 4090 workstation (48 GB) | ~38–54.6 t/s | $3,692 * | Comfortable |
Compare RTX 5090 workstation (1x 32 GB) against Dual RTX 5090 workstation (2x 32 GB) →