Google · 3.9B · Q4_K_M · 2.32 GiB
Gemma 3 4B Instruct at Q4_K_M needs about 3.24 GiB at 8K context, and the smallest listed machine that fits it is GeForce RTX 3060 Ti.
Sliding-window model. Config sliding_window_pattern is 6, so every 6th layer is full attention and the rest keep a 1,024-token window.
ollama run gemma3:4b
Weights: google_gemma-3-4b-it-Q4_K_M.gguf. Architecture: config source. Hugging Face repo created 2025-02-20. License field: gemma.
Quants with a measured file size
| Quant | File | Size |
|---|---|---|
| Q4_K_M · recommended | google_gemma-3-4b-it-Q4_K_M.gguf | 2.32 GiB |
| Q5_K_M | google_gemma-3-4b-it-Q5_K_M.gguf | 2.64 GiB |
| Q6_K | google_gemma-3-4b-it-Q6_K.gguf | 2.97 GiB |
| Q8_0 | google_gemma-3-4b-it-Q8_0.gguf | 3.85 GiB |
Machines
| Machine | Memory | Total | Verdict | Speed |
|---|---|---|---|---|
| Apple M1, 8 GB | 8 GB unified | 3.24 GiB | Fits | 13–22 tok/s |
| Apple M2, 8 GB | 8 GB unified | 3.24 GiB | Fits | 20–32 tok/s |
| Apple M3, 8 GB | 8 GB unified | 3.24 GiB | Fits | 20–32 tok/s |
| GeForce RTX 3060 Ti | 8 GB GDDR | 3.24 GiB | Fits | 89–144 tok/s |
| GeForce RTX 3070 | 8 GB GDDR | 3.24 GiB | Fits | 89–144 tok/s |
| GeForce RTX 4060 | 8 GB GDDR | 3.24 GiB | Fits | 54–87 tok/s |
| GeForce RTX 4060 Ti 8GB | 8 GB GDDR | 3.24 GiB | Fits | 57–93 tok/s |
| GeForce RTX 5060 | 8 GB GDDR | 3.24 GiB | Fits | 89–144 tok/s |
| GeForce RTX 5060 Ti 8GB | 8 GB GDDR | 3.24 GiB | Fits | 89–144 tok/s |
| Radeon RX 6600 | 8 GB GDDR6 | 3.24 GiB | Fits | 44–72 tok/s |
| Radeon RX 7600 | 8 GB GDDR6 | 3.24 GiB | Fits | 57–93 tok/s |
| GeForce RTX 3080 10GB | 10 GB GDDR | 3.24 GiB | Fits | 150–244 tok/s |
| GeForce RTX 3060 12GB | 12 GB GDDR | 3.24 GiB | Fits | 71–116 tok/s |
| GeForce RTX 4070 | 12 GB GDDR | 3.24 GiB | Fits | 100–162 tok/s |
| GeForce RTX 4070 Super | 12 GB GDDR | 3.24 GiB | Fits | 100–162 tok/s |
| GeForce RTX 4070 Ti | 12 GB GDDR | 3.24 GiB | Fits | 100–162 tok/s |
| GeForce RTX 5070 | 12 GB GDDR | 3.24 GiB | Fits | 133–216 tok/s |
| Intel Arc B580 | 12 GB GDDR6 | 3.24 GiB | Fits | 90–147 tok/s |
| Radeon RX 6700 XT | 12 GB GDDR6 | 3.24 GiB | Fits | 76–123 tok/s |
| Radeon RX 7700 XT | 12 GB GDDR6 | 3.24 GiB | Fits | 85–139 tok/s |
| Apple M1 Pro, 16 GB | 16 GB unified | 3.24 GiB | Fits | 40–64 tok/s |
| Apple M1, 16 GB | 16 GB unified | 3.24 GiB | Fits | 13–22 tok/s |
| Apple M2 Pro, 16 GB | 16 GB unified | 3.24 GiB | Fits | 40–64 tok/s |
| Apple M2, 16 GB | 16 GB unified | 3.24 GiB | Fits | 20–32 tok/s |
| Apple M3, 16 GB | 16 GB unified | 3.24 GiB | Fits | 20–32 tok/s |
| Apple M4, 16 GB | 16 GB unified | 3.24 GiB | Fits | 24–39 tok/s |
| GeForce RTX 4060 Ti 16GB | 16 GB GDDR | 3.24 GiB | Fits | 57–93 tok/s |
| GeForce RTX 4070 Ti Super | 16 GB GDDR | 3.24 GiB | Fits | 133–216 tok/s |
| GeForce RTX 4080 | 16 GB GDDR | 3.24 GiB | Fits | 142–230 tok/s |
| GeForce RTX 4080 Super | 16 GB GDDR | 3.24 GiB | Fits | 146–236 tok/s |
| GeForce RTX 5060 Ti 16GB | 16 GB GDDR | 3.24 GiB | Fits | 89–144 tok/s |
| GeForce RTX 5070 Ti | 16 GB GDDR | 3.24 GiB | Fits | 177–288 tok/s |
| GeForce RTX 5080 | 16 GB GDDR | 3.24 GiB | Fits | 190–308 tok/s |
| Intel Arc A770 16GB | 16 GB GDDR6 | 3.24 GiB | Fits | 101–165 tok/s |
| Legion Go | 16 GB LPDDR5X-7500 | 3.24 GiB | Fits | 24–39 tok/s |
| Radeon RX 6800 XT | 16 GB GDDR6 | 3.24 GiB | Fits | 101–165 tok/s |
| Radeon RX 7800 XT | 16 GB GDDR6 | 3.24 GiB | Fits | 123–201 tok/s |
| Radeon RX 9060 XT 16GB | 16 GB GDDR6 | 3.24 GiB | Fits | 63–103 tok/s |
| Radeon RX 9070 XT | 16 GB GDDR6 | 3.24 GiB | Fits | 127–206 tok/s |
| ROG Ally | 16 GB LPDDR5-6400 | 3.24 GiB | Fits | 20–33 tok/s |
| Steam Deck LCD | 16 GB LPDDR5-5500 | 3.24 GiB | Fits | 17–28 tok/s |
| Steam Deck OLED | 16 GB LPDDR5-6400 | 3.24 GiB | Fits | 20–33 tok/s |
| Apple M3 Pro, 18 GB | 18 GB unified | 3.24 GiB | Fits | 30–48 tok/s |
| Radeon RX 7900 XT | 20 GB GDDR6 | 3.24 GiB | Fits | 158–257 tok/s |
| Apple M2, 24 GB | 24 GB unified | 3.24 GiB | Fits | 20–32 tok/s |
| Apple M3, 24 GB | 24 GB unified | 3.24 GiB | Fits | 20–32 tok/s |
| Apple M4 Pro, 24 GB | 24 GB unified | 3.24 GiB | Fits | 54–88 tok/s |
| Apple M4, 24 GB | 24 GB unified | 3.24 GiB | Fits | 24–39 tok/s |
| GeForce RTX 3090 | 24 GB GDDR | 3.24 GiB | Fits | 185–301 tok/s |
| GeForce RTX 4090 | 24 GB GDDR | 3.24 GiB | Fits | 199–324 tok/s |
| Radeon RX 7900 XTX | 24 GB GDDR6 | 3.24 GiB | Fits | 190–308 tok/s |
| ROG Ally X | 24 GB LPDDR5X-7500 | 3.24 GiB | Fits | 24–39 tok/s |
| Apple M1 Max, 32 GB | 32 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M1 Pro, 32 GB | 32 GB unified | 3.24 GiB | Fits | 40–64 tok/s |
| Apple M2 Max, 32 GB | 32 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M2 Pro, 32 GB | 32 GB unified | 3.24 GiB | Fits | 40–64 tok/s |
| Apple M4, 32 GB | 32 GB unified | 3.24 GiB | Fits | 24–39 tok/s |
| GeForce RTX 5090 | 32 GB GDDR | 3.24 GiB | Fits | 355–576 tok/s |
| Apple M3 Pro, 36 GB | 36 GB unified | 3.24 GiB | Fits | 30–48 tok/s |
| Apple M4 Max 14-core, 36 GB | 36 GB unified | 3.24 GiB | Fits | 81–132 tok/s |
| Apple M3 Max 16-core, 48 GB | 48 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M4 Max 16-core, 48 GB | 48 GB unified | 3.24 GiB | Fits | 108–175 tok/s |
| Apple M4 Pro, 48 GB | 48 GB unified | 3.24 GiB | Fits | 54–88 tok/s |
| Apple M1 Max, 64 GB | 64 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M2 Max, 64 GB | 64 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M3 Max 16-core, 64 GB | 64 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M4 Max 16-core, 64 GB | 64 GB unified | 3.24 GiB | Fits | 108–175 tok/s |
| Apple M4 Pro, 64 GB | 64 GB unified | 3.24 GiB | Fits | 54–88 tok/s |
| Apple M2 Max, 96 GB | 96 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M3 Max 16-core, 128 GB | 128 GB unified | 3.24 GiB | Fits | 79–129 tok/s |
| Apple M4 Max 16-core, 128 GB | 128 GB unified | 3.24 GiB | Fits | 108–175 tok/s |
FAQ
Why Q4_K_M?
Q4_K_M is the quant this page recommends. The file is google_gemma-3-4b-it-Q4_K_M.gguf at 2.32 GiB. Other single-file quants are in the table when a real size was available.
Where do the architecture numbers come from?
Google's config.json is gated. Fields were read from the public unsloth config and checked against the bartowski GGUF header (block_count, heads, key_length, sliding_window). Source: https://huggingface.co/unsloth/gemma-3-4b-it/raw/main/config.json
Does this include a long context?
The fit uses 8,192 tokens, or less when that is all the fast memory can hold. The model file allows up to 131,072 tokens, and KV cache grows as you use more of that.
What is the Ollama command?
ollama run gemma3:4b. The library tag is Q4-class or the vendor quant. Compare it with the GGUF linked on this page before you treat the sizes as identical.
Does this include image input?
No. Weight memory is the cited language-model GGUF. A separate vision projector, when one exists, needs more memory.