Gemma 4 26B-A4B on NVIDIA Tesla P40 24 GB

25.806B (3.8B active) on 24 GB at 346 GB/s. Hardware details · Model details

Run locally →
Yes. Gemma 4 26B-A4B fits on NVIDIA Tesla P40 24 GB at the recommended Q4_K_M configuration, requiring approximately 18.3 GB at 8K context. Practical context capacity is 16K.
CompatibilityFits
Calculated fit
Yes
Calculated Uses 80-90% of usable memory. Works, with limited headroom.
Recommended quantization
Q4_K_M
Calculated gguf
Memory required
18.3 GB
Calculated of 22.1 GB usable — 83%
Max practical context
16K
Calculated model supports 256K

Memory budget at 8K context

Model weights ⓘ
15.0 GB Calculated
KV cache ⓘ
1.9 GB Calculated
Runtime overhead ⓘ
1.5 GB Estimated
Total required
18.3 GB Calculated
Headroom ⓘ
3.7 GB Calculated
Fits with limited headroom (83% of usable memory). A longer context will not leave room for much else.
Discrete GPU: 24 GB of VRAM, of which we assume 92% is usable after driver and context overhead.
Mixture of experts: all 25.806B parameters must be resident in memory even though only ~3.8B are active per token. Memory follows total parameters; speed follows active parameters.
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
—
Estimated Q4_K_M; calculated range
Hardware load reference
250 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 3.8B active parameters at 4.85 bits/weight takes 9.51 ms at 346 GB/s x 70% achieved efficiency.
  2. MoE routing penalty of 15% applied: expert gathers are less bandwidth-efficient than a dense sweep.

  • MoE decode depends on how well the engine batches expert gathers; real results vary more than for dense models.
  • No FP16 compute figure for this hardware, so prefill cannot be estimated.
  • 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_Mrecommended15.0 GB15.0 GB18.3 GB83%Fits16K
Q5_K_M17.6 GB17.6 GB21.0 GB95%Borderline8K
Q8_026.0 GB26.0 GB29.7 GB135%Does not fit0
BF1648.1 GB48.1 GB52.4 GB237%Does not fit0
Cost of running Gemma 4 26B-A4B on this machineUnited States (federal) · C corporation · 8h/day
Monthly economic cost
$1
Calculated after tax
Codex/Claude Code
$100/mo
≈ $100/mo · local is $99 less
Net cash at purchase
$0
Calculated VAT not reclaimable
Total over 5 years
$86
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.

Monthly breakdown

Depreciation
0 over 5 years, straight-line to a 0 residual
$0.00
Electricity
13.0 kWh/month at 0.140/kWh
$1.82
Monthly cost before tax$1.82
Electricity tax shield
Running costs are deductible business expenses
−$0.38
Monthly economic cost after tax$1.44

Three different numbers, deliberately

Cash cost
$0
Money that leaves the bank account on day one, net of reclaimable VAT.
Accounting depreciation
$0.00/month
$0 written down over 5 years to a $0 residual.
After-tax economic cost
$1.44/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
$0 (15%) Assumption
Two GPU generations later, the card is worth a fraction of its list price.
Electricity
$0.140/kWh Assumption
Average power draw
74 W Calculated
Load 250 W for 20% of powered hours, idle 30 W for the rest — a machine that is on is not generating tokens the whole time.
Investment allowances
§179 100.0% Official spec
Worth $0 in total — first-year expensing that replaces later tax depreciation.
Cost of capital
not applied 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.