dexiio

What hardware runs Gemma 3 4B?

Gemma 3 4B is a 3.88B-parameter dense model (gemma license). Edge Gemma with real vision. Fine as a first model on integrated graphics; outclassed by Qwen at the same size.

All figures assume an f16 KV cache, a 0.6 GB display reserve on the GPU, and 64 GB of DDR5 system RAM for the offload tiers. Tune these in the calculator.

Minimum VRAM by quant and context

QuantFile size8K16K32K64K128K
Q2_K *1.6 GB3.7 GB4 GB4.4 GB5.3 GB7 GB
Q3_K_M *2.0 GB4.1 GB4.3 GB4.7 GB5.6 GB7.4 GB
Q4_K_M2.3 GB4.5 GB4.7 GB5.1 GB6 GB7.7 GB
Q5_K_M2.6 GB4.8 GB5 GB5.4 GB6.3 GB8 GB
Q6_K3.0 GB5.1 GB5.3 GB5.8 GB6.6 GB8.4 GB
Q8_03.8 GB6 GB6.2 GB6.6 GB7.5 GB9.3 GB
IQ4_XS2.1 GB4.2 GB4.5 GB4.9 GB5.8 GB7.5 GB

Full-GPU figures: weights + f16 KV cache + overhead. * below our recommended floor of Q4_K_M.

GPU compatibility

GPU8K16K32K64K128K
NVIDIA GeForce RTX 5090Q8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 5080Q8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 5070 TiQ8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 5070Q8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 5060 Ti 16GBQ8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 5060Q8_0Q8_0Q8_0Q8_0Q5_K_M
NVIDIA GeForce RTX 4090Q8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 4080 SUPERQ8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 4070 Ti SUPERQ8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 4070Q8_0Q8_0Q8_0Q8_0Q8_0
NVIDIA GeForce RTX 4060 Ti 16GBQ8_0Q8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)Q8_0Q8_0Q8_0Q8_0Q8_0
Apple M4 (16GB)Q8_0Q8_0Q8_0Q8_0Q8_0
Apple M4 Pro (48GB)Q8_0Q8_0Q8_0Q8_0Q8_0
Apple M4 Max (64GB)Q8_0Q8_0Q8_0Q8_0Q8_0
CPU only / integrated graphicsQ8_0Q8_0Q8_0Q8_0Q8_0

Fits on GPUExpert offloadPartial offloadCPU only

Quant guidance

Our floor for Gemma 3 4B is Q4_K_M — below that, quality degrades faster than the VRAM savings are worth. Prefer the highest quant that still lands "Fits on GPU" at your context length in the table above.

Recommended run command

Q4_K_M at 32K on a NVIDIA GeForce RTX 5060-class GPU (Fits on GPU):

llama-server -m gemma-3-4b-it-Q4_K_M.gguf -c 32768 --flash-attn -ngl 99

Frequently asked questions

How much VRAM does Gemma 3 4B need?

At Q4_K_M and 32K context, Gemma 3 4B needs about 5.1 GB of VRAM to run fully on GPU (weights + KV cache + overhead).

What is the smallest GPU that can run Gemma 3 4B?

The NVIDIA GeForce RTX 5060 (8 GB) is the smallest GPU in our set that runs Gemma 3 4B well at 32K context.

What quantization should I use for Gemma 3 4B?

We recommend Q4_K_M or higher. Q4_K_M weighs 2.3 GB (5.13 bits/weight); going below Q4_K_M costs noticeable quality on a model this size.

How long a context can Gemma 3 4B handle?

Gemma 3 4B supports up to 128K tokens. KV cache grows linearly with context, though sliding-window layers cap most of the growth.

Can I run Gemma 3 4B without a GPU?

Yes, at reduced speed: on CPU with 64 GB of DDR5 it manages roughly 12 tokens/sec at 8K context (Q8_0).

Related guides