Gemma 4 31B on RTX 3090 workstation (Ryzen 9 7950X, 64 GB)

31.273B on 24 GB at 936 GB/s. Hardware details · Model details

No calculated fit. Gemma 4 31B does not fit under standard overhead assumptions at Q4_K_M: the model calculates 27.2 GB required against 22.1 GB usable.
CompatibilityDoes not fit
Calculated fit
No
Calculated Requires more than 97% of usable memory. Needs a smaller quantization or more memory.
Smallest catalogued quantization
Q4_K_M
Calculated gguf
Memory required
27.2 GB
Calculated of 22.1 GB usable — 123%
Max practical context
1K
Calculated model supports 256K

Memory budget at 8K context

Model weights ⓘ
18.2 GB Calculated
KV cache ⓘ
7.5 GB Calculated
Runtime overhead ⓘ
1.5 GB Estimated
Total required
27.2 GB Calculated
Headroom ⓘ
-5.2 GB Calculated
No quantization in our catalogue fits this machine.
Discrete GPU: 24 GB of VRAM, of which we assume 92% is usable after driver and context overhead.
This model can be run with layers offloaded to system RAM, but decode throughput typically drops by an order of magnitude once any significant fraction of the weights crosses PCIe. We do not count offload as fitting.
Performance

Estimated performance · recommended Q4_K_M

Decode, prefill and TTFT below are estimates for Q4_K_M. We do not have a comparable Q4_K_M measurement on this machine.

Estimated decode
—
Estimated Q4_K_M; calculated range
Estimated prefill
—
Estimated Q4_K_M; calculated range
Estimated TTFT at 8K
~8.4–17.5 s
Estimated Q4_K_M; calculated range
Hardware load reference
600 W
Official spec hardware TDP; not this model run
No throughput figures for this configuration. We do not estimate performance for a model that cannot load.
How the estimate is calculated
  1. Decode: reading 31.3B active parameters at 4.85 bits/weight takes 27.01 ms at 936 GB/s x 75% achieved efficiency.
  2. Prefill: 142 TFLOPS (FP16) 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.

Submit a benchmarkSubmissions stay pending until reviewed.
This model at other quantizations on this machine
QuantizationResidentDiskTotal neededUtilisationFitMax context
Q4_K_Msmallest listed18.2 GB18.2 GB27.2 GB123%Does not fit1K
Q5_K_M21.3 GB21.3 GB30.5 GB138%Does not fit0
Q8_031.6 GB31.6 GB41.0 GB186%Does not fit0
BF1658.3 GB58.3 GB68.5 GB310%Does not fit0
Cost of running Gemma 4 31B on this machineUnited States (federal) · C corporation · 8h/day
Monthly economic cost
$26
Calculated after tax
Codex/Claude Code
$100/mo
≈ $100/mo · local is $74 less
Net cash at purchase
$1,981
Calculated VAT not reclaimable
Total over 5 years
$1,578
Calculated after tax, after resale
Cost per USD/1M tokens
—
Calculated

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.

Purchase-price input: $1,981 in United States (federal), tax/VAT excluded · estimated · Used market exact-match reference (converted catalogue estimate). This is the localized purchase input; the after-tax economic cost is calculated separately below.

Monthly breakdown

Depreciation
1,545 over 5 years, straight-line to a 436 residual
$25.75
Electricity
31.3 kWh/month at 0.140/kWh
$4.38
Cost of capital
4.0%/yr on 1,208 average capital employed
$4.03
Monthly cost before tax$34.16
Electricity tax shield
Running costs are deductible business expenses
−$0.92
First-year expensing
§179 (100.0%)
−$6.93
Monthly economic cost after tax$26.30

Three different numbers, deliberately

Cash cost
$1,981
Money that leaves the bank account on day one, net of reclaimable VAT.
Accounting depreciation
$25.75/month
$1,545 written down over 5 years to a $436 residual.
After-tax economic cost
$26.30/month
Depreciation plus running costs plus cost of capital, less the tax those deductions save. This is the figure to compare between machines.
Assumptions and sources (verified 2026-09-07)
VAT rate
0% Official spec
VAT recoverable
0% Official spec
Federal C-corporation estimate at the flat 21% rate. Pass-through entities should use the sole-proprietor estimate as a rougher proxy.
Effective deduction rate
21.00% Calculated
Headline marginal rate 21.00%.
Depreciation
5 years, straight-line Assumption
Residual value
$436 (22%) Assumption
Extrapolated.
Electricity
$0.140/kWh Assumption
Average power draw
178 W Calculated
Load 600 W for 20% of powered hours, idle 72 W for the rest — a machine that is on is not generating tokens the whole time.
Investment allowances
§179 100.0% Official spec
Worth $416 in total — first-year expensing that replaces later tax depreciation.
Cost of capital
$4.03/month Assumption
Federal planning estimate only, not tax advice. State and local income tax, sales/use tax and incentives are excluded. It assumes 100% business use, a Section 179 election, enough business income to use it, and that the full annual limit remains available.