Google ยท Open Weights ยท Apache 2.0
Gemma 4 Hardware Requirements: VRAM and RAM per Model
Gemma 4 E2B needs about 6 GB of memory, E4B about 8 GB, the 12B about 9.5 GB, the 26B A4B about 20 GB and the 31B about 22.6 GB, based on the default 4-bit Ollama downloads (4.6, 6.6, 8.0, 18.7 and 20.4 GB). In practice: a laptop with 8-16 GB runs E2B and E4B, a 12 GB graphics card runs the 12B, and a 24 GB card or a 32 GB Mac runs the 26B and 31B. Google released the family on March 31, 2026 under Apache 2.0 and added the 12B Unified on June 3.
Gemma 4 hardware requirements per model
| Model | Ollama tag | Parameters | Download | Memory at 4K | Fits |
|---|---|---|---|---|---|
| Gemma 4 E2B | gemma4:e2b | 2.3B effective (5.1B with embeddings) | 4.6 GB | ~6 GB | 8 GB RAM laptop or Mac; 6 GB GPU; phones via LiteRT |
| Gemma 4 E4B | gemma4:e4b | 4.5B effective (8B with embeddings) | 6.6 GB | ~8 GB | 8 GB GPU (tight) or 12 GB; 16 GB RAM laptop |
| Gemma 4 12B Unified | gemma4:12b | 11.95B | 8.0 GB | ~9.5 GB | 12 GB GPU (RTX 3060 12GB); 16 GB Mac |
| Gemma 4 26B A4B (MoE) | gemma4:26b | 25.2B total, 3.8B active | 18.7 GB | ~20 GB | 24 GB GPU; 32 GB Mac. A 16 GB card runs it partly from RAM |
| Gemma 4 31B | gemma4:31b | 30.7B dense | 20.4 GB | ~22.6 GB | 24 GB GPU (tight); 32 GB Mac |
Downloads are what ollama pull fetches (4-bit weights, vision projector and the small MTP draft model), read from the Ollama registry. Memory is that plus the key-value cache at Ollama's 4K default (small, because most Gemma 4 layers use a 512- or 1,024-token sliding window) plus about 1 GB of buffers: arithmetic, not a measurement. 8-bit builds are larger: gemma4:e4b-it-q8_0 9.0 GB, gemma4:12b-it-q8_0 12.9 GB, gemma4:26b-a4b-it-q8_0 28.1 GB, gemma4:31b-it-q8_0 33.8 GB. Ollama also offers gemma4:cloud, which runs on Ollama's servers and downloads nothing.
Key takeaways
- โFive models, phone to workstation โ E2B (2.3B effective), E4B (4.5B effective), 12B Unified (11.95B), 26B A4B MoE (3.8B active), 31B dense.
- โApache 2.0, open weights โ no custom license restrictions.
- โ12B Unified is the headline โ text + audio + image input in one encoder-free model, up to 256K context, 8.0 GB on Ollama. Added June 3, 2026.
- โPhone and Pi are official targets โ Google claims E2B/E4B run fully offline on phones, Raspberry Pi, and Jetson Orin Nano.
- โ24GB VRAM unlocks the whole family โ gemma4:26b is 18.7 GB and gemma4:31b 20.4 GB on Ollama.
Quick verdict
If you run models locally, Gemma 4 is the family to know in 2026. Many 2026 open releases target datacenter hardware; Gemma 4 goes the other way: every member of the family targets hardware people actually own, from phones up to a single prosumer GPU.
The short version: own a 12GB card, run the 12B Unified. Own a 24GB card, run 26B-A4B (faster) or 31B (denser). Own a Raspberry Pi or want offline-on-phone, E2B/E4B are Google's explicit targets. For install steps, our Gemma local setup guide covers the tooling.
The family at a glance
The core family launched March 31, 2026 (Google's announcement). The 12B Unified joined on June 3, 2026, confirmed on Google's official Gemma releases page. All under Apache 2.0. Per Google's model card, every size takes text and image input, E2B, E4B and the 12B also take audio, and the context is 128K on E2B and E4B and 256K on the larger three.
| Model | Parameters | Notable |
|---|---|---|
| E2B | 2.3B effective (5.1B with embeddings) | Phones, Raspberry Pi, Jetson Orin Nano โ fully offline (Google's claim) |
| E4B | 4.5B effective (8B with embeddings) | Same targets as E2B, more capable |
| 12B Unified | 11.95B | Text + audio + image input in one encoder-free model, up to 256K context. Added June 3, 2026 |
| 26B-A4B | 25.2B total / 3.8B active (MoE) | MoE speed: quality of its size class, compute of a ~4B |
| 31B | 30.7B dense | The full-strength dense flagship; fits a single 80GB H100 (Google's claim) |
Hardware tiers: what runs where
The same table by the hardware you own. Sizes are the real Ollama downloads from the table above; leave headroom if you plan to use long contexts.
| Your hardware | Best Gemma 4 fit | Notes |
|---|---|---|
| Phone / Raspberry Pi / Jetson Orin Nano | E2B, E4B | Google's stated targets โ fully offline |
| 8GB VRAM | E2B comfortably; E4B tight | E4B is a 6.6 GB download (~8 GB in use); the 12B's 8.0 GB does not fit |
| 12GB VRAM | 12B Unified at Q4 | 8.0 GB download, ~9.5 GB at 4K: room for some extra context |
| 16GB VRAM | 12B Unified with long-context headroom | 26B A4B is 18.7 GB, so Ollama runs part of it from system RAM |
| 24GB VRAM | 26B A4B or 31B at Q4 | 18.7 GB and 20.4 GB downloads; the 31B leaves little room for long context |
| Apple Silicon, 32GB+ unified memory | 26B A4B or 31B at Q4 | macOS keeps part of unified memory for itself; 32 GB is the floor, 48 GB is comfortable |
| 80GB H100 | 26B-A4B or 31B | Single-GPU fit is Google's claim |
On an 8GB card, E2B or E4B is the honest recommendation; the 12B is an 8.0 GB download and needs a 12GB card. More 8GB options in best local AI models for 8GB RAM. Sitting at 16GB and weighing alternatives? See the best LLMs for 16GB VRAM.
12B Unified: text, audio, image โ one model
The June 3 addition is the most interesting member of the family. Gemma 4 12B "Unified" is a single encoder-free multimodal model: Google's model card says it projects raw image and audio input straight into the language model instead of using separate encoders. It has 11.95B parameters and a 256K context, and scores 77.2 on MMLU Pro and 72.0 on LiveCodeBench v6 in Google's table (instruction-tuned).
For local use, that simplicity matters more than it sounds. Multimodal-local setups have historically meant juggling two or three models and hoping the glue code holds. A 12B that takes all three inputs and fits a 12GB card at 4-bit (an 8.0 GB Ollama download) collapses that stack into one model. Ollama's library page lists text and image input for gemma4:12b; check it before relying on audio through Ollama.
What defines the Gemma 4 lineup
Three structural choices define the Gemma 4 lineup. First, MoE: 26B A4B carries 25.2B total parameters but activates 3.8B per token โ its compute cost per token is closer to a small model's, though all 25.2B still have to fit in memory. Second, the E2B/E4B "effective parameter" models, built for phones and single-board computers as first-class targets rather than afterthoughts. Third, the unified multimodal 12B described above.
If you're currently running Gemma 2 9B, the 12B Unified is the natural upgrade path โ similar hardware tier, plus audio and image input. If you're on Gemma 2 27B, the 26B-A4B gives you the same size class with MoE speed, and the 31B is the straight dense successor.
Ecosystem proof: local speech-to-speech in production
A fair question about any new family: is anyone actually building on it? For Gemma 4, yes. On May 27, 2026 Hugging Face published a fully local conversation setup for its Reachy Mini robot: Silero voice detection, Nvidia Parakeet speech recognition, Gemma 4 E4B in llama.cpp and Qwen3-TTS for the spoken reply. See our local speech-to-speech assistant guide for the same idea on a PC.
On July 1, 2026 Hugging Face and Cerebras released a speech-to-speech pipeline with the same stages and Gemma 4 31B in the middle, served on Cerebras hardware rather than locally. The companies say the pipeline powers more than 9,000 Reachy Mini robots; that figure is theirs, not ours.
FAQ
What is Gemma 4?
Can Gemma 4 run on a Raspberry Pi?
How much VRAM does Gemma 4 12B need?
Should I upgrade from Gemma 2 to Gemma 4?
Is Gemma 4 open source? What license does it use?
Can Gemma 4 do speech / audio locally?
Related models
- โ Gemma 2 9B โ the previous mid-size Gemma; 12B Unified is its successor tier
- โ Gemma 2 27B โ previous large Gemma; compare with 26B-A4B and 31B
- โ Gemma 3 270M โ the tiniest Gemma, for microcontroller-class tasks
- โ GPT-OSS โ OpenAI's open-weight alternative in the prosumer tier
- โ Best Ollama models โ where the Gemma family sits in the wider local lineup
Go from reading about AI to building with AI
25 structured courses. Hands-on projects. Runs on your machine. Start free.

Written by
Barsha Mohapatra
Founder and Editor, Local AI Master ยท Founder, Little AI Master
Founder of Little AI Master and the editor behind every course and guide on Local AI Master. Years of tutoring students taught her where AI education actually fails.