Gemma 3 4B
Gemma Β· Gemma license
Compact Gemma 3 model for chat and light coding on low-VRAM hardware.
- Parameters
- 4.3B
- Architecture
- Dense
- Context
- 32,768 tokens
- Released
- 2025-03-12
- Engines
- llama.cpp, ollama, vLLM, TGI
- Builder Tools
- Cursor, Continue, Aider, Open WebUI, LM Studio
Parameters
4.3B
VRAM
3.8 GB
Context
32K
Formats
4
GPUs
29
Gemma 3 4B (4.3B) requires 3.8 GB VRAM at recommended quality (Q6_K). At efficient quality (Q4_K_M), it fits in 2.5 GB VRAM, making it compatible with the NVIDIA RTX 4060 Laptop (40-60W). On NVIDIA Grace Blackwell Ultra GB300, expect approximately 500 tok/s at Q8_0. For the best experience, Starter AI Desktop ($582) is recommended.
Source: OwnRig methodology
3.8 GB
Q6_K
3.2 GB
32K tokens
Chat
VRAM Requirements
| Quality | Quantization | VRAM | File Size |
|---|---|---|---|
| full | Q8_0 | 4.8 GB | 4.2 GB |
| recommended | Q6_K | 3.8 GB | 3.2 GB |
| recommended | Q5_K_M | 3.2 GB | 2.6 GB |
| efficient | Q4_K_M | 2.5 GB | 2.1 GB |
Context Length Impact
KV cache VRAM at Q6_K quality. Longer context = more memory.
| Context | KV Cache | Total VRAM |
|---|---|---|
| 2K | 102 MB | 3.9 GB |
| 4K | 102 MB | 3.9 GB |
| 8K | 307 MB | 4.1 GB |
| 16K | 614 MB | 4.4 GB |
| 32K | 1.2 GB | 5 GB |
Compatible GPUs
29 devicesShowing 29 of 29 entries
Builder Context
Gemma 3 4B is commonly used with Cursor, Continue, Aider, Open WebUI, LM Studio. For an AI coding workflow, pair it with an embedding model like nomic-embed-text for local RAG.
Frequently Asked Questions
- How much VRAM does Gemma 3 4B need?
- Gemma 3 4B requires 3.8 GB VRAM at recommended quality (Q6_K). At lower quality settings, it can fit in as little as 2.5 GB.
- What is the best GPU for Gemma 3 4B?
- The NVIDIA Grace Blackwell Ultra GB300 delivers the best performance for Gemma 3 4B, achieving 500 tok/s at Q8_0 with an excellent rating.
- What quantization should I use for Gemma 3 4B?
- For the best quality, use Q6_K (3.8 GB VRAM). If your GPU has limited VRAM, Q4_K_M (2.5 GB) is the most efficient option with acceptable quality.
- Is Gemma 3 4B good for coding?
- Yes. Gemma 3 4B is used with Cursor, Continue, Aider, Open WebUI, LM Studio for local AI coding. For the best coding experience, pair it with an embedding model for local RAG.
Data confidence: estimated. Source
VRAM requirements are calculated from model parameters and may vary by inference engine, context length, and batch size. Performance estimates are based on community benchmarks and should be verified for your specific configuration.Gemma is a trademark of its respective owner. OwnRig is not affiliated with or endorsed by the model creator.