Gemma 3 4B
4B Gemma 3 for edge. Multimodal.
Performance evidence
Performance statements in this entry have not been tied to a published, configuration-matched run. Treat speed figures as unverified estimates, not validated measurements. Compare the full configuration of a published benchmark before relying on throughput or latency.
Positioning
The 4B Gemma 3 with multimodal capability. Genuinely the best small-model pick when image input matters and VRAM is constrained — fits in under 4 GB at Q4.
Strengths
- Native multimodal at 4B — no other model in this size class does this credibly.
- Conversational quality materially better than Phi 3.5 Mini for general chat.
- 128K context even at this size.
Limitations
- Gemma license restrictiveness.
- Math and structured tasks weaker than Phi 3.5 Mini.
- Knowledge breadth narrow — small-model limitations are real.
Historical performance claims (unverified) on RTX 4090
- Q4_K_M (2.7 GB): 130–150 tok/s decode, TTFT under 50 ms
- Q5_K_M (3.2 GB): 115–135 tok/s
- Q8_0 (4.8 GB): 95–115 tok/s
Should you run this locally?
Yes, for edge devices with multimodal input requirements, 4–6 GB GPU owners who want chat + vision. No, for math/structured tasks (pick Phi 3.5 Mini), or where chat-only ≥ 8B is a better fit.
How it compares
- vs Phi-3.5 Mini (3.8B) → Gemma 3 4B wins on chat + multimodal; Phi wins on math + structured output.
- vs Llama 3.2 3B → similar text capability; Gemma adds multimodal.
- vs Gemma 3 1B → 4B is meaningfully smarter; 1B is for very tight constraints.
Run this yourself
ollama pull gemma3:4b-it-q4_K_M
ollama run gemma3:4b-it-q4_K_M
Example settings (not a measured run): Q4_K_M GGUF, 8192 ctx, llama.cpp/CUDA, RTX 4090
›Why this rating
7.5/10 — best 4B-class general model when you want multimodal at edge size. Loses to Phi-3.5 Mini on math + structured tasks but beats it on chat naturalness.
Overview
4B Gemma 3 for edge. Multimodal.
How to run it
Gemma 3 4B is a small multimodal model. Use a current Ollama release and check the Gemma 3 listing for the package and quantization. The command ollama pull gemma3:4b downloads the default 4B package; it does not by itself select a particular Q4_K_M artifact.
For llama.cpp, select a supported Gemma 3 GGUF and the matching vision projector when using images. The earlier example flags were -ngl 999 -fa -c 4096; verify their spelling against the installed release, and reduce GPU offload if memory is insufficient. Start with a modest context and check the allocated memory before increasing it.
A Q4 artifact is roughly 2.5–2.7 GB before runtime, vision and KV-cache memory, so a 2 GB device cannot hold the full working set. CPU-only use is possible with adequate system RAM, but no measured speed is linked here. The advertised maximum context does not guarantee that it fits a phone or small GPU.
For a larger model, see Gemma 3 12B. Review the Gemma license and upstream model card before deployment.
Hardware guidance
The Q4 artifact is approximately 2.5–2.7 GB before KV cache, vision components and runtime overhead. A 2 GB GPU or 2 GB system-RAM budget is insufficient for the full working set. Check the actual artifact and start with short context on a small device.
A larger GPU is optional for CPU inference with enough RAM. On Apple Silicon, memory is shared with macOS and other apps; confirm the runtime supports this model and its vision path. For phones, use a package and runtime explicitly supporting the device. No device-specific throughput measurement is linked here.
What breaks first
- 4B quality ceiling. The model's fundamental capability is limited by 4B parameters. Complex reasoning, nuanced understanding, and deep knowledge recall hit the wall hard. 2. Hallucination rate. Small models hallucinate more. Gemma 3 4B will confidently produce incorrect facts more often than 7B+ models. Don't treat it as a knowledge base. 3. Context window overclaim. 8K is advertised but usable context at 4B degrades past 4K tokens. The model loses track of earlier context. Keep prompts concise. 4. Not multilingual. Gemma 3 4B's multilingual quality is weak. English is strongest; other languages may produce broken or English-mixed outputs.
Runtime recommendation
Common beginner mistakes
Performance evidence
Performance statements in this entry have not been tied to a published, configuration-matched run. Treat speed figures as unverified estimates, not validated measurements. Compare the full configuration of a published benchmark before relying on throughput or latency.
Mistake: Deploying Gemma 3 4B for tasks that need reasoning depth. Fix: 4B is a lightweight model. For complex tasks, use at least Gemma 4 26B MoE or Qwen 3 32B. Mistake: Running 8K context and expecting coherent outputs. Fix: 4B quality degrades past 4K context. Keep prompts short and focused. Mistake: Using Gemma 3 4B as a production knowledge base. Fix: 4B models hallucinate more. Pair with RAG on vetted documents for factual tasks. Mistake: Over-provisioning hardware ("I need an RTX 4090 for this"). Fix: It runs on a phone. You don't need a powerful GPU. CPU-only inference at 10-20 tok/s is perfectly usable for chat.
Family & lineage
How this model relates to others in its lineage. Family members share architecture and training-data roots; parent / children edges record direct distillation or fine-tune relationships.
Strengths
- Multimodal at 4B
- Edge-class
Weaknesses
- License restrictions
Quantization variants
Each quantization trades model quality for file size and VRAM. Q4_K_M is the most popular starting point.
| Quantization | File size | VRAM required |
|---|---|---|
| Q4_K_M | 2.5 GB | 4 GB |
| Q8_0 | 4.4 GB | 6 GB |
Get the model
Ollama
One-line install
ollama run gemma3:4bRead our Ollama review →HuggingFace
Original weights
Source repository — direct quantization required.
Benchmarks
Real measurements on real hardware. Numbers ship with the runner version, quant, and date.
| Hardware | Provenance | Quant | Ctx | Tokens / sec | TTFT | Date |
|---|---|---|---|---|---|---|
| NVIDIA GeForce RTX 3080 16GB (Mobile) | EditorialM | Q4_K_M | 4K | 97.7tok/s | 743 ms | Jun 2, 26 |
What to do next
Got this model running on real hardware? Share what you measured — the form arrives with the model pre-selected.
Hardware that runs this
Cards with enough VRAM for at least one quantization of Gemma 3 4B.
Models worth comparing
Same parameter band, plus what's one tier above and below — so you can decide what actually fits your hardware.
Frequently asked
What's the minimum VRAM to run Gemma 3 4B?
Can I use Gemma 3 4B commercially?
What's the context length of Gemma 3 4B?
How do I install Gemma 3 4B with Ollama?
Does Gemma 3 4B support images?
Source: huggingface.co/google/gemma-3-4b-it
Reviewed by RunLocalAI Editorial. See our editorial policy for how we research and verify model claims.
Related — keep moving
Verify Gemma 3 4B runs on your specific hardware before committing money.