Last reviewed · How we calculateSpeeds are estimates until benchmarks arrive
Memory at Q4_K_M with an 8K conversation. The highlighted cell is the lighter or longer one.
| Spec | Gemma 3 4B | Llama 3.2 3B |
|---|---|---|
| Parameters | 4.3B | 3.21B |
| Type | Dense | Dense |
| Memory at Q4, 8K | 3.5 GB | 3.5 GB |
| Model file at Q4_K_M | 2.6 GB | 1.9 GBSmaller |
| Conversation memory per 8K | 0.3 GBLighter |
Each row is one GPU or Mac. The longer the bar, the faster that model writes. Change the quality and conversation length to see where one stops fitting.
At Q4_K_M with a 8K conversation, Gemma 3 4B runs fully on 20 of 20 devices and Llama 3.2 3B on 20. Striped bars run partly from system RAM. All speeds are estimates; add a measured one.
Total for model, an 8K conversation and runtime. Higher quality costs memory on both, but the gap between them grows.
| Quality | Gemma 3 4B | Llama 3.2 3B | Difference |
|---|---|---|---|
| Q4_K_M | 3.5 GB | 3.5 GB | 0.0 GB |
| Q5_K_M | 3.9 GB | 3.8 GB | 0.1 GB |
| Q6_K | 4.4 GB | 4.2 GB | 0.2 GB |
| Q8_0 | 5.5 GB | 5.0 GB | 0.5 GB |
| F16 | 9.5 GB |
Pick it over Llama 3.2 3B if:
ollama run gemma3:4b
Pick it over Gemma 3 4B if:
Llama 3.2 3B needs about 3.5 GB at Q4_K_M with an 8K conversation, against about 3.5 GB for Gemma 3 4B. Llama 3.2 3B fits on an 8 GB card; Gemma 3 4B needs 8 GB.
Llama 3.2 3B is about 1.3 times faster when both fit on the same card, because it reads fewer weights for each token. On the RTX 4090 24GB that is about 337 against 251 tokens a second, estimated.
On an RTX 4070 12GB, Gemma 3 4B runs well at about 126 tokens a second, and Llama 3.2 3B runs well at about 168 tokens a second.
They come from different families, so size alone doesn't settle it. Gemma 3 4B is larger; check both model cards and try them on your own prompts.
| 0.9 GB |
| Native context | 128K tokens | 128K tokens |
|---|
| Smallest graphics card | 8 GB | 8 GB |
|---|
| Smallest Mac | 16 GB | 16 GB |
|---|
| Speed on RTX 4090 24GB | about 251 tok/s | about 337 tok/sFaster |
|---|
| Licence | Gemma Terms of Use | Llama 3.2 Community |
|---|
| Ollama tag | gemma3:4b | llama3.2:3b |
|---|
| 8.0 GB |
| 1.5 GB |
ollama run llama3.2:3b