Gemma 4 is Google DeepMind’s family of free, open-weight AI models, announced on 2 April 2026 under the Apache 2.0 licence. It now comes in five sizes, E2B, E4B, 12B, 26B A4B and 31B, and every one of them reads text and images and writes text. You download the weights once and run them on your own phone, laptop or server, with no subscription and no internet connection.

The hard part is not getting Gemma 4. The hard part is picking the size your machine can actually hold.

The names hide the memory bill. The “4B active” 26B model still needs room for all 26 billion parameters. This guide maps each Gemma 4 model to the Mac that runs it, using Google’s own memory figures. It then covers three ways to install it, its scores, how it stacks up against Qwen 3.6, and what it cannot do.

The Key Takeaways

  • Five sizes, all free: E2B, E4B, 12B, 26B A4B and 31B, under Apache 2.0, which allows commercial use.
  • Memory decides the model: at 4-bit, Google lists 2.9GB for E2B, 6.7GB for the 12B and 17.5GB for the 31B, before any context.
  • The Mac short version: 8GB runs E2B, 16GB runs E4B or the 12B, the 26B A4B wants 24GB or more, and the 31B is happiest at 32GB+.
  • Strong for its size, not a frontier model: the 31B scores 84.3% on GPQA Diamond, but Alibaba’s own table puts Qwen3.6-27B ahead on coding, 77.2% vs 52.0% on SWE-bench Verified.
  • Reads, does not draw: Gemma 4 takes images (and audio on the small models) as input but only writes text, and its training data stops in January 2025.

What Is Gemma 4?

Del editor

Descubre qué IA responde mejor

Hazles la misma pregunta a GPT, Claude y Gemini y compara las respuestas. En Mac, iPhone y iPad.

¡Descárgala ahora!
Del editor

Descubre qué IA responde mejor

Hazles la misma pregunta a GPT, Claude y Gemini y compara las respuestas. En Mac, iPhone y iPad.

Pruébala gratis
Del editor

Deja de pagar tres suscripciones de IA

GPT, Claude y Gemini en una sola app y con un solo plan. En Mac, iPhone y iPad.

¡Descárgala ahora!
Del editor

Deja de pagar tres suscripciones de IA

GPT, Claude y Gemini en una sola app y con un solo plan. En Mac, iPhone y iPad.

Pruébala gratis
Del editor

Deja de saltar entre apps de IA

Hazle la misma pregunta a ChatGPT, Claude y Gemini en una sola ventana y quédate con la mejor respuesta. En Mac, iPhone y iPad.

Pruébala gratis
Del editor

Deja de saltar entre apps de IA

Hazle la misma pregunta a ChatGPT, Claude y Gemini en una sola ventana y quédate con la mejor respuesta. En Mac, iPhone y iPad.

¡Descárgala ahora!
Del editor

No solo leas sobre modelos de IA: pruébalos

Los modelos de IA más recientes, listos en una sola app. En Mac, iPhone y iPad.

¡Descárgala ahora!
Del editor

No solo leas sobre modelos de IA: pruébalos

Los modelos de IA más recientes, listos en una sola app. En Mac, iPhone y iPad.

Pruébala gratis

Gemma 4 is Google DeepMind’s open model family, the downloadable sibling of Gemini. Google’s launch post says it is “built from the same world-class research and technology as Gemini 3.” The same post calls it “the most capable model family you can run on your hardware.” Gemini stays a closed service you reach through Google’s apps and API. Gemma 4 ships as weights you keep.

The family has grown in three steps. Google’s release log dates the first four models, E2B, E4B, 26B A4B and 31B, to 31 March 2026, and the public announcement followed on 2 April. Multi-Token Prediction (MTP) drafters for those four arrived on 16 April. Gemma 4 12B Unified, a laptop-sized middle model with native audio input, completed the line-up on 3 June 2026.

Gemma 4 landed well. At launch, Google said the 31B ranked as the #3 open model on the Arena text leaderboard and the 26B as #6. By 3 June, Google counted more than 150 million downloads of Gemma 4 models. The licence matters as much as the scores. Earlier Gemma generations shipped under Google’s own Gemma Terms of Use. Gemma 4 uses plain Apache 2.0, a licence much of the open-source world already understands. For how that compares with the custom licences on other open models, see our ranking of the best open source AI models.

Gemma 4 Models: All Five Sizes Compared

Gemma 4 comes in five sizes, and the smallest and largest differ by more than ten times in parameters. Parameters, context and inputs come from Google’s model card. The 4-bit (Q4_0) figure comes from the Gemma 4 memory table in Google’s documentation, which counts the weights plus 20% loading overhead but not the conversation itself.

ModelTypeParametersContextInputMemory at 4-bit
E2BEdge, dense2.3B effective (5.1B total)128KText, image, audio2.9GB
E4BEdge, dense4.5B effective (8B total)128KText, image, audio4.5GB
12B UnifiedDense, encoder-free11.95B256KText, image, audio6.7GB
26B A4BMixture of Experts25.2B total, 3.8B active256KText, image14.4GB
31BDense30.7B256KText, image17.5GB

What E2B and E4B Mean

The “E” in Gemma 4 E2B and E4B stands for “effective” parameters. Google built both for phones and edge devices using Per-Layer Embeddings, which give every layer its own small lookup table instead of adding more layers. The lookup tables are large, so E4B behaves like a 4.5B model in speed but loads 8B parameters in total. Plan memory for the bigger number.

Why the 26B A4B Needs 26B Worth of Memory

Gemma 4 26B A4B is a Mixture-of-Experts model. It holds 128 experts and switches on 8 of them, plus one shared expert, for each token. Only 3.8 billion parameters do the work at any moment. That makes it fast, close to a 4B model in speed. It does not make it small. Google’s documentation says “all 26 billion parameters” must be loaded into memory to keep the routing fast, so its memory need sits close to a dense 26B model. The 4-bit figure is 14.4GB, against 4.5GB for E4B.

What 12B Unified and MTP Changed

Gemma 4 12B Unified, released on 3 June 2026, drops the separate vision and audio encoders the other models use. Images and sound go straight into the language model through light projection layers. Google says the 12B delivers benchmark performance “nearing” the 26B model at less than half its memory, and that it runs on laptops with 16GB of RAM. It is also the first mid-sized Gemma 4 model to take audio.

Multi-Token Prediction is the other addition, and it is about speed.

Every Gemma 4 model now ships with a small “drafter” that guesses several tokens ahead while the main model checks them in one pass. Google says the output is exactly the same as normal generation, only faster. The gain is smallest on the 26B A4B, because checking drafted tokens there can pull extra experts into memory.

Which Gemma 4 Model Can Your Mac Run?

Any Apple Silicon Mac can run a Gemma 4 model, and unified memory decides which one. The table below starts from Google’s 4-bit and 8-bit figures and Ollama’s actual download sizes, which run a little larger. Leave several gigabytes free for macOS and your open apps, and more again for long prompts: Google’s figures exclude the context, which grows with every token in the conversation.

Mac unified memoryBest Gemma 4 fitDownload or weightsWhat to expect
8GBE2B4.6GB to 7.5GBWorks for short chats; E4B is possible but leaves almost nothing for apps
16GBE4B or 12B6.6GB to 9.5GB (E4B), 7.7GB to 8.0GB (12B)The 12B is Google’s pick for 16GB laptops; the 26B will not fit
24GB26B A4B at 4-bit16GB to 19GBWorkable with short context; close the browser tabs first
32GB to 48GB26B A4B or 31B at 4-bit19GB to 20GB (31B)Comfortable, with room for longer documents
64GB and up31B at 8-bit34.9GB of weights at 8-bit (Google)Higher precision; 128GB machines can hold the full 16-bit 31B at 69.9GB

Real tests line up with the table. A developer at Classmethod tried the 26B on a 16GB M5 MacBook, where Ollama reported it needed 18.8GiB against about 11.8GB available to the model, and settled on E4B. If you are choosing hardware rather than a model, our guide to the best MacBook for AI lists which configurations reach 24GB and 32GB. Our M5 Ultra Mac Studio review shows the Gemma 4 26B A4B loading in 15.6GB with room to spare.

When a Local Model Is Not Enough

Gemma 4 on a 16GB Mac is a good private, offline assistant for drafts, summaries and reading screenshots. A 12B model is not what you want for a hard coding problem or a long legal document. You do not have to buy a bigger Mac to fix that. With Fello AI, you keep Gemma for the offline work and ask Claude, GPT or Gemini the hard question in one app, without a second subscription or more RAM.

Google’s own Gemma team makes the same split. Its account described the efficient setup this way on 2 November 2026:

How to Run Gemma 4 on a Mac

The fastest way to run Gemma 4 on a Mac is Ollama, which takes one command after install. LM Studio is the choice if you prefer a normal app window, and Google’s own AI Edge Gallery is the most hands-off option. All three are free.

Option 1: Ollama

  1. Install Ollama. Its macOS download page gives a one-line Terminal command: curl -fsSL https://ollama.com/install.sh | sh.
  2. Run the default model. In Ollama, the plain gemma4 tag is E4B, the right start for a 16GB Mac:
ollama run gemma4
  1. Pick a different size by adding its tag. The Ollama Gemma 4 library page lists five: gemma4:e2b, gemma4:e4b, gemma4:12b, gemma4:26b and gemma4:31b.
ollama run gemma4:12b
  1. Chat in the Terminal, or point any app that speaks the OpenAI API format at Ollama’s local server, http://localhost:11434/v1/.

Ollama also lists MLX builds for Apple Silicon, such as gemma4:e4b-mlx, and a gemma4:31b-cloud tag that runs the 31B on Ollama’s servers instead of your Mac. Beware of guides that tell you to pull gemma4:4b or an “E12B”: neither tag exists.

Option 2: LM Studio

LM Studio runs Gemma 4 in a chat window with no Terminal. Search for Gemma 4 in its model browser, choose the GGUF or the MLX build (MLX is the Apple-native format), download, and start chatting. LM Studio says the smallest Gemma 4 needs at least 4GB of RAM and the largest up to 19GB.

Google AI Edge Gallery is Google’s own app for running Gemma on-device. Google brought it from iPhone to the Mac alongside Gemma 4 12B in June 2026, as a free direct download from its developer site. It runs the 12B offline on the Mac’s Apple Silicon GPU. It also includes a sandboxed Python loop, so Gemma 4 can write and run code to plot a chart inside the chat.

Is Gemma 4 Free?

Yes, Gemma 4 is free in both of the ways that matter. The weights are free to download from Hugging Face, Kaggle, Ollama and LM Studio, and Apache 2.0 lets you use them commercially, change them and ship them in a product. Running them locally costs only electricity.

Google also hosts two Gemma 4 models for free through the Gemini API: gemma-4-31b-it and gemma-4-26b-a4b-it. Google’s pricing page lists input, output and context caching as “Free of charge” and shows no paid tier at all. The catch is data: on the free tier, Google marks your prompts as “Used to improve our products”. Our guide to free AI models compares that route with the other no-cost options. If privacy is the reason you want Gemma, run it on your own Mac instead.

Gemma 4 Benchmarks: How Good Is It?

Gemma 4 31B is strong for a model that fits on a laptop, and the jump over Gemma 3 is large. The scores below come from Google’s model card and cover the instruction-tuned models with reasoning on.

Benchmark31B26B A4B12BE4BE2BGemma 3 27B
MMLU Pro85.2%82.6%77.2%69.4%60.0%67.6%
GPQA Diamond84.3%82.3%78.8%58.6%43.4%42.4%
AIME 2026 (no tools)89.2%88.3%77.5%42.5%37.5%20.8%
LiveCodeBench v680.0%77.1%72.0%52.0%44.0%29.1%
Codeforces Elo215017181659940633110

Two readings matter. First, the 26B A4B stays within three points of the 31B on most rows while running at roughly 4B speed, which makes it the sweet spot for a 32GB Mac. Second, the edge models fall off sharply on maths and coding: E4B is fine for summaries and reading text in images, not for competition maths. Independent scores are thin. As of 4 November 2026, Artificial Analysis lists Gemma 4 models but publishes no Intelligence Index v5 score for any of them, so treat the vendor numbers as the ceiling.

Gemma 4 vs Qwen: Which Open Model Should You Pick?

Qwen 3.6 beats Gemma 4 on coding and edges it on reasoning, according to Alibaba’s own benchmark table. That table is useful because it runs Gemma 4 31B in the same columns, and its Gemma figures match Google’s model card exactly. The numbers are still vendor-reported by Alibaba, so read the margins, not the decimals.

BenchmarkGemma 4 31BQwen3.6-27BQwen3.6-35B-A3BQwen3.5-27B
SWE-bench Verified52.077.273.475.0
MMLU-Pro85.286.285.286.1
GPQA Diamond84.387.886.085.5
LiveCodeBench v680.083.980.480.7
AIME 202689.294.192.792.6

Source: the Qwen3.6-27B model card on Hugging Face. The SWE-bench Verified gap, 77.2 against 52.0, is the one that changes a decision.

If you want a local model to edit real code across a repository, Qwen3.6-27B is the stronger pick. Gemma 4 keeps three advantages. Apache 2.0 covers the whole family. Its small edge models take audio, a job Qwen’s 27B does not cover. And Google ships first-party apps for it on the Mac and iPhone. Our list of the best Chinese AI models covers the newer Qwen 3.8 and its rivals.

What Gemma 4 Cannot Do

Gemma 4 cannot generate images. Every model in the family takes images in and writes text out. It can describe a photo, read a chart or pull text from a scanned page, but it cannot draw one.

Its knowledge is old. Gemma 4’s training data has a January 2025 cutoff, so it does not know recent events or newer models unless you paste the facts in.

Audio and video are limited. Only E2B, E4B and 12B take audio, capped at 30 seconds per clip, and the 26B A4B and 31B do not hear at all. Ollama’s library lists text and image input only. Video is processed as frames, up to about 60 seconds at one frame per second.

Context costs memory. The 128K and 256K windows are real, but filling them adds memory on top of the figures in the tables. That is where 16GB Macs run out first.

It is not a frontier model. The 31B scores 19.5% on Humanity’s Last Exam without tools in Google’s own card, far below the closed flagships.

The Bottom Line

Gemma 4 is the best reason yet to run an AI model on your own Mac. Pick by memory, not by name: E4B or the 12B on 16GB, the 26B A4B on 32GB, and the 31B only when you have room to spare. Choose Gemma 4 for private, offline work, image reading and a licence your company’s lawyers already know, and choose Qwen 3.6 if local coding is the main job. Start with ollama run gemma4, see how your Mac copes, and size up from there.

FAQ

When did Gemma 4 come out?

Google announced Gemma 4 on 2 April 2026, with weights dated 31 March. Multi-Token Prediction drafters followed on 16 April, and Gemma 4 12B Unified on 3 June 2026.

How much RAM do I need for Gemma 4?

At 4-bit, Google lists 2.9GB for E2B, 4.5GB for E4B, 6.7GB for the 12B, 14.4GB for the 26B A4B and 17.5GB for the 31B, before context. In practice that means 8GB for E2B, 16GB for E4B or the 12B, 24GB or more for the 26B A4B and 32GB or more for the 31B.

Can Gemma 4 generate images?

No. Gemma 4 accepts images as input and writes text only, so it can describe, read and analyse pictures but not create them.

Is Gemma 4 good at coding?

Gemma 4 31B is good for its size, with 80.0% on LiveCodeBench v6 and a 2150 Codeforces Elo in Google’s card. For editing real repositories it trails Qwen3.6-27B, which scores 77.2% to Gemma’s 52.0% on SWE-bench Verified in Alibaba’s table.

How do I access Gemma 4 via API?

The Gemini API serves gemma-4-31b-it and gemma-4-26b-a4b-it free of charge with a Google AI Studio key. There is no paid tier, and Google marks free-tier prompts as used to improve its products. Running Ollama locally also gives you an OpenAI-compatible API on your own Mac.