Skip to main contentThe Local Bench

Gemma 4 31B IT

Google DeepMind · Apache-2.0 · Datasheet TLB-M-0012 rev. 2026.11

Evidence varies by field · estimates and placeholders labelled
  • Data checked: 2026-11-25. Review interval shown below. Prices need review after 30 days; specifications and benchmark collections after 90 days. Dates describe the recorded check, not a live retailer quote.

    • Verified Checked against the primary source (for example the model’s config.json on Hugging Face).
    • Sourced Taken from a cited source; not yet independently checked.
    • Estimate Calculated with the published formulas; not a measurement.
    • Sample Placeholder data for layout; not a real figure.
    • Not yet measured No public, citable score found for this benchmark yet. We never fill the gap with a guess.

    Verified metadata is not a measured performance result. Only cited runs matching model, device, quant and recorded context can replace speed estimates. Estimates assume one stream and F16 KV cache, with a ±25% uncertainty band. A published run applies only to its recorded runtime and conditions; missing settings are unknown.

    Evidence labels · Freshness policy · Calculation methodology

31.3B
parameters, dense
256K
token context window
21.1GB
memory at Q4_K_M, 8k context
27.4tok/s
decode on a used RTX 3090Estimate

At a glance

The other Issue 001 24 GB model. Q4_K_M is 18.32 GB. Fifty of the sixty layers only look at the last 1,024 tokens, so the KV cache stays smaller as context grows.

At Q4_K_M and 8k context it needs about 21.1 GB: 18.3 GB of weights, 2.2 GB of KV cache and 0.6 GB of runtime overhead. It is dense, so every token reads all 18.3 GB of weights; speed scales with memory bandwidth. 50 of its 60 layers use a 1,024-token sliding window, which keeps the cache small at long context.

Estimated setup

Quant
Q4_K_M
Smallest standard card size at 8k
24 GB
Max context, 24 GB card
16k
Runtimes
llama.cpp, Ollama, LM Studio, MLX
Check it on your hardware

Embed this

1 Estimates: decode ≈ η × bandwidth ÷ (active weights + KV cache), η 0.60 discrete / 0.45 unified / 0.50 CPU (see methodology). Not measurements.

2 Fit rules (see methodology), including the 0.75 unified-memory factor used by canirun.ai.

Flags: Verified = checked against config.json / HF API; Sourced = from a cited source; Estimate = formula; Sample = placeholder. Markdown · JSON · Report a problem