โ˜… Reading this for free? Get 25 structured AI courses + per-chapter AI tutor โ€” the first chapter of every course free, no card.Start free in 30 secondsOr own every course: $149 once

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.

๐Ÿ“… Published: July 20, 2026๐Ÿ”„ Last Updated: November 2, 2026โœ“ Manually Reviewed

Gemma 4 hardware requirements per model

ModelOllama tagParametersDownloadMemory at 4KFits
Gemma 4 E2Bgemma4:e2b2.3B effective (5.1B with embeddings)4.6 GB~6 GB8 GB RAM laptop or Mac; 6 GB GPU; phones via LiteRT
Gemma 4 E4Bgemma4:e4b4.5B effective (8B with embeddings)6.6 GB~8 GB8 GB GPU (tight) or 12 GB; 16 GB RAM laptop
Gemma 4 12B Unifiedgemma4:12b11.95B8.0 GB~9.5 GB12 GB GPU (RTX 3060 12GB); 16 GB Mac
Gemma 4 26B A4B (MoE)gemma4:26b25.2B total, 3.8B active18.7 GB~20 GB24 GB GPU; 32 GB Mac. A 16 GB card runs it partly from RAM
Gemma 4 31Bgemma4:31b30.7B dense20.4 GB~22.6 GB24 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.

ModelParametersNotable
E2B2.3B effective (5.1B with embeddings)Phones, Raspberry Pi, Jetson Orin Nano โ€” fully offline (Google's claim)
E4B4.5B effective (8B with embeddings)Same targets as E2B, more capable
12B Unified11.95BText + audio + image input in one encoder-free model, up to 256K context. Added June 3, 2026
26B-A4B25.2B total / 3.8B active (MoE)MoE speed: quality of its size class, compute of a ~4B
31B30.7B denseThe 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 hardwareBest Gemma 4 fitNotes
Phone / Raspberry Pi / Jetson Orin NanoE2B, E4BGoogle's stated targets โ€” fully offline
8GB VRAME2B comfortably; E4B tightE4B is a 6.6 GB download (~8 GB in use); the 12B's 8.0 GB does not fit
12GB VRAM12B Unified at Q48.0 GB download, ~9.5 GB at 4K: room for some extra context
16GB VRAM12B Unified with long-context headroom26B A4B is 18.7 GB, so Ollama runs part of it from system RAM
24GB VRAM26B A4B or 31B at Q418.7 GB and 20.4 GB downloads; the 31B leaves little room for long context
Apple Silicon, 32GB+ unified memory26B A4B or 31B at Q4macOS keeps part of unified memory for itself; 32 GB is the floor, 48 GB is comfortable
80GB H10026B-A4B or 31BSingle-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?
Gemma 4 is Google's open-weight model family, released March 31, 2026 under Apache 2.0. The lineup: E2B (2.3B effective parameters) and E4B (4.5B effective) for phones and laptops, a 26B A4B Mixture-of-Experts model (25.2B total, 3.8B active per token), and a 30.7B dense 31B. On June 3, 2026 Google added Gemma 4 12B Unified (11.95B parameters), which takes text, image and audio input with a 256K context. Everything ships as open weights you can download and run locally.
Can Gemma 4 run on a Raspberry Pi?
Google's claim is yes: E2B and E4B run fully offline on phones, Raspberry Pi, and Jetson Orin Nano. That's the vendor's own positioning, but the effective parameter counts (~2.3B and ~4.5B) make it plausible โ€” these are the sizes that have historically been fine on Pi-class hardware. The bigger family members (12B Unified, 26B-A4B, 31B) are not Pi material; they need a real GPU or Apple Silicon with enough unified memory.
How much VRAM does Gemma 4 12B need?
ollama pull gemma4:12b downloads 8.0 GB (the 4-bit model, a small projector and the MTP draft model). At Ollama's 4K default context it needs about 9.5 GB, so a 12 GB card such as the RTX 3060 12GB fits it; an 8 GB card does not. Most of its layers use a 1,024-token sliding window, so longer contexts cost less memory than on older models, but the full 256K still needs extra headroom; a 16 GB card is comfortable for long context.
Should I upgrade from Gemma 2 to Gemma 4?
For most Gemma 2 users, yes. Three things stand out in the Gemma 4 lineup. First, a Mixture-of-Experts option: 26B-A4B runs 26B total parameters but only ~4B active per token, so it is fast for its quality class. Second, the E2B/E4B "effective parameter" models built explicitly for phones and Raspberry Pi (Google's claim). Third, the 12B Unified (added June 3, 2026): one model, one download, taking text, audio, and image input with 256K context โ€” no separate vision or audio models to juggle. If you are on Gemma 2 9B or 27B today, the 12B Unified and 26B-A4B are the natural upgrades.
Is Gemma 4 open source? What license does it use?
Gemma 4 ships under Apache 2.0, a permissive licence that covers commercial use, modification and redistribution, unlike the custom Gemma Terms of Use of Gemma 2 and 3. The weights are open and downloadable on Hugging Face and through Ollama.
Can Gemma 4 do speech / audio locally?
Two answers. E2B, E4B and the 12B Unified accept audio as a native input alongside text and images, per Google's model card (check Ollama's library page for which inputs its build exposes). For full voice conversations, Hugging Face published a fully local Reachy Mini setup on May 27, 2026 that runs Gemma 4 E4B in llama.cpp with Parakeet speech recognition and Qwen3-TTS. A July 1, 2026 Hugging Face and Cerebras pipeline uses the same design with Gemma 4 31B served on Cerebras hardware.

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
๐ŸŽฏ
AI Learning Path

Go from reading about AI to building with AI

25 structured courses. Hands-on projects. Runs on your machine. Start free.

Or own it for life โ€” Lifetime $149 $599, pay once
Barsha Mohapatra

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.

More on Local AI Hardware
See the full AI Hardware Guide 2026 guide.
๐Ÿ“š
Free ยท no account required

Grab the AI Starter Kit โ€” career roadmap, cheat sheet, setup guide

No spam. Unsubscribe with one click.

๐ŸŽฏ
AI Learning Path

Found your model? Now build something with it.

25 hands-on courses โ€” RAG, agents, fine-tuning โ€” all running locally. First chapter free, no card.

Or own it for life โ€” Lifetime $149 $599, pay once
Free Tools & Calculators