Gemma 4 E4B
Gemma · Apache 2.0
Gemma 4's mid-range edge model. 8B total parameters with 4.5B effective. Full multimodal: text, image, audio, and video. 52% LiveCodeBench v6 and 42.5% AIME 2026 put its reasoning and coding above most models at this size. Fits comfortably on 8 GB GPUs at Q4_K_M. Apache 2.0 licensed.
- Parameters
- 8B
- Architecture
- Dense
- Context
- 128,000 tokens
- Released
- 2026-04-02
- Engines
- llama.cpp, ollama, vLLM, TGI
- Builder Tools
- Aider, Claude Code, Continue, Cursor, LM Studio, Ollama, Open WebUI, Windsurf
Parameters
8B
VRAM
7 GB
Context
125K
Formats
4
GPUs
43
Gemma 4 E4B (8B) requires 7 GB VRAM at recommended quality (Q6_K). At efficient quality (Q4_K_M), it fits in 6 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
7 GB
Q6_K
6.33 GB
125K tokens
Chat
VRAM Requirements
| Quality | Quantization | VRAM | File Size |
|---|---|---|---|
| full | Q8_0 | 9 GB | 8.03 GB |
| recommended | Q6_K | 7 GB | 6.33 GB |
| recommended | Q5_K_M | 6.5 GB | 5.82 GB |
| efficient | Q4_K_M | 6 GB | 5.41 GB |
Context Length Impact
KV cache VRAM at Q6_K quality. Longer context = more memory.
| Context | KV Cache | Total VRAM |
|---|---|---|
| 2K | 102 MB | 7.1 GB |
| 4K | 205 MB | 7.2 GB |
| 8K | 307 MB | 7.3 GB |
| 16K | 717 MB | 7.7 GB |
| 32K | 1.3 GB | 8.3 GB |
| 64K | 2.7 GB | 9.7 GB |
Compatible GPUs
43 devicesShowing 43 of 43 entries
Builder Context
Gemma 4 E4B is commonly used with Aider, Claude Code, Continue, Cursor, LM Studio, Ollama, Open WebUI, Windsurf. 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 4 E4B need?
- Gemma 4 E4B requires 7 GB VRAM at recommended quality (Q6_K). At lower quality settings, it can fit in as little as 6 GB.
- What is the best GPU for Gemma 4 E4B?
- The NVIDIA Grace Blackwell Ultra GB300 delivers the best performance for Gemma 4 E4B, achieving 500 tok/s at Q8_0 with an excellent rating.
- Can I run Gemma 4 E4B on an RTX 4060 Ti?
- Yes. On the NVIDIA GeForce RTX 4060 Ti 16GB, Gemma 4 E4B runs at 26 tok/s (Q8_0, acceptable).
- What quantization should I use for Gemma 4 E4B?
- For the best quality, use Q6_K (7 GB VRAM). If your GPU has limited VRAM, Q4_K_M (6 GB) is the most efficient option with acceptable quality.
- Is Gemma 4 E4B good for coding?
- Yes. Gemma 4 E4B is used with Aider, Claude Code, Continue, Cursor, LM Studio, Ollama, Open WebUI, Windsurf for local AI coding. For the best coding experience, pair it with an embedding model for local RAG.
Related Guides
Tutorial
Running Gemma 4 locally: which GPU you actually need
Gemma 4 VRAM requirements for every variant: E2B, E4B, 26B-A4B, and 31B. Which GPUs can run each, what quantization to use, and the honest call on RTX 4060 vs RTX 4090.
Buying Guide
Mac Mini M4 for AI: which models run on 16 GB
Which AI models run on the Mac Mini M4 with 16 GB, 24 GB, or 48 GB of unified memory. Honest compatibility table, real quantization requirements, and the upgrade case for M4 Pro.
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.