Local AI Bench

gemma-3-4b-it

Gemma 3 · 4.30 billion parameters · Dense architecture

Running this model locally

gemma-3-4b-it stores 4.30 billion parameters in memory. Reducing weight precision leaves more room for the attention cache and runtime buffers.

5 test records are available for this model. Check the runtime version and prompt length when comparing results. Source model card

Open in calculator
Architecture
DENSE
Parameters
4.30B
Layers
34
Hidden size
2560
KV heads
4
Head dimension
256
Maximum context
131,072 tokens
License
gemma
Release
2025-03-12

Quantization and memory

Estimated footprint with an 8,192-token context. Runtime allocations can vary.

Estimated
EncodingWeightsFP16 cacheTotal with overhead
Q4_K_M2.6 GB0.3 GB3.9 GB
Q8_04.6 GB0.3 GB6.1 GB
Q5_K_M3.1 GB0.3 GB4.4 GB
4bit2.4 GB0.3 GB3.7 GB
8bit4.6 GB0.3 GB6.1 GB

Device measurements

Explore data
Model / hardwareRuntimePrompt / windowDecodeSource
gemma-3-4b-itM4 Max 64 GBllama.cpp1.1.0 (build 12774, commit 171527522)Q8_0512 / 64085.5 tok/sMeasured2026-11-29 UTC
gemma-3-4b-itM4 Max 64 GBmlxmlx-lm 0.32.2 / mlx 0.32.54bit512 / 8,192148.3 tok/sMeasured2026-11-29 UTC
gemma-3-4b-itM4 Max 64 GBllama.cpp1.1.0 (build 12774, commit 171527522)Q5_K_M512 / 640104.2 tok/sMeasured2026-11-29 UTC
gemma-3-4b-itM4 Max 64 GBllama.cpp1.1.0 (build 12774, commit 171527522)Q4_K_M512 / 640131.9 tok/sMeasured2026-11-29 UTC
gemma-3-4b-itM4 Max 64 GBollama0.40.16Q4_K_M512 / 8,192117.3 tok/sMeasured2026-11-29 UTC

Hardware to consider

Frequently asked questions

How large is gemma-3-4b-it?

gemma-3-4b-it has 4.30 billion total parameters. Its dense layers use the full parameter set for inference.

How much memory does the attention cache require?

For 640 context tokens the estimated FP16 cache is 0.09 GB, before runtime overhead.

Where can I verify the model details?

The source model card below gives the architecture and links to its configuration and license. The hardware results table lists independently measured runtime conditions.