---
title: "Google Gemma 4: Model Sizes, Specs and Which One to Run"
description: "What Gemma 4 is, when each model was released, how the five sizes compare on hardware, context and benchmarks, and how to run it locally or in the cloud."
url: https://aismith.dev/insights/google-gemma-4-release
publisher: AIsmith (aismith.dev)
---

[Back](https://aismith.dev/insights)Blog

# Google Gemma 4: Model Sizes, Specs and Which One to Run

What Gemma 4 is, when each model was released, how the five sizes compare on hardware, context and benchmarks, and how to run it locally or in the cloud.

AISmith Team

April 10, 2026

10 min read

Gemma 4 is Google's family of open weight language models, first released on 2 April 2026 under the Apache 2.0 license. It now comes in five sizes, from E2B for phones to a 31B dense model for a single data centre GPU, reads text and images (audio on the three smaller ones), and can be downloaded, fine tuned and used commercially without paying Google.

If you are weighing an open weight model like Gemma against a paid API for your own product, our [AI model selection and fine tuning](https://aismith.dev/services/ai) work starts with exactly that comparison.

This guide covers what each model is for, what hardware it needs, how it scores, and when it makes sense to run Gemma 4 yourself instead of paying for a hosted model. All specs come from Google's own pages as of November 2026.

## What is Gemma 4?

Gemma 4 is the fourth generation of Gemma, the open model line Google DeepMind publishes alongside its closed Gemini models. "Open weight" means Google releases the trained model files, so you can run them on your own machines, inspect them and fine tune them. You do not get the training data or the full training code.

Like most current language models, Gemma 4 is built on the [Transformer architecture](https://aismith.dev/insights/transformers-chatgpt-aismith). Every model in the family takes text and images as input and produces text. The three smaller models also accept audio. Google's [Gemma 4 announcement](https://blog.google/innovation-and-ai/technology/developers-tools/gemma-4/) says developers have downloaded Gemma models more than 400 million times and built more than 100,000 variants.

## When was Gemma 4 released?

Gemma 4 was released on 2 April 2026, when Google published four sizes: E2B, E4B, a 26B mixture of experts model and a 31B dense model. A fifth size, [Gemma 4 12B](https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemma-4-12b/), followed on 3 June 2026 as a model for laptops.

For comparison, Gemma 3 came out on 12 March 2025 in 1B, 4B, 12B and 27B sizes with a 128K token context window, according to [Google's Gemma 3 announcement](https://blog.google/technology/developers/gemma-3/). Gemma 4 roughly doubles the context window on the larger models and changes the license.

## What Gemma 4 models are there?

Gemma 4 has five models. The figures below come from the official [Gemma 4 model card](https://gemma.ai/models/gemma-4/model-card/).

- **E2B**: 2.3B effective parameters (5.1B including embeddings), 128K context, text, image and audio input. Built for phones and small edge devices.
- **E4B**: 4.5B effective parameters (8B including embeddings), 128K context, text, image and audio input. The stronger of the two edge models.
- **12B**: 11.95B parameters in a unified design with no separate vision or audio encoders, 256K context, text, image and audio input. Google's first mid sized Gemma with native audio, aimed at laptops.
- **26B A4B**: 25.2B total parameters, but a mixture of experts design that activates only 3.8B per token, 256K context, text and image input. Because so few parameters work on each token, Google pitches it as the model for fast replies.
- **31B**: 30.7B parameters, dense, 256K context, text and image input. The highest quality model, which Google describes as a powerful foundation for fine tuning.

The "E" in E2B and E4B stands for effective. Those models use a technique Google calls Per Layer Embeddings, so the number of parameters doing work on each token is smaller than the file size suggests. That is why they fit on devices with little memory.

## Which Gemma 4 model should you run?

The right Gemma 4 model is the largest one your hardware can hold with room to spare, because quality rises steadily with size. Use these rules as a starting point.

1. **Phone, Raspberry Pi or Jetson board**: E2B or E4B. Google says both run fully offline on phones, Raspberry Pi and NVIDIA Jetson Orin Nano.
2. **Laptop with 16 GB of memory**: 12B. Google's 12B post says it runs locally with 16 GB of VRAM or unified memory.
3. **Workstation or gaming GPU**: a quantized 26B A4B or 31B. Quantizing stores the weights at lower precision so they take less memory, at a small cost in quality.
4. **One 80 GB data centre GPU**: 26B A4B or 31B at full bfloat16 precision. Google states the unquantized weights of both fit on a single 80 GB NVIDIA H100.

Pick the 26B A4B when speed matters most, for example a chat interface or an agent that makes many calls. Pick the 31B when answer quality matters more than latency, or when you plan to fine tune.

A hypothetical example: a support team wants to sort incoming tickets by topic and urgency without sending customer messages to an outside API. A quantized 26B A4B on one workstation GPU is a sensible first test, because the task is short classification with many requests, which suits the faster mixture of experts model. If accuracy on the hard tickets is not good enough, try the 31B on the same data before buying more hardware.

## How good is Gemma 4 on benchmarks?

Gemma 4 scores far above Gemma 3 on reasoning and coding tests, according to Google's published results for the instruction tuned models. The figures below are Google's own and were measured by Google, so treat them as a guide and test on your own tasks.

- **MMLU Pro** (broad knowledge): 31B 85.2%, 26B A4B 82.6%, 12B 77.2%, E4B 69.4%, E2B 60.0%. Gemma 3 27B scored 67.6%.
- **AIME 2026** (competition maths, no tools): 31B 89.2%, 26B A4B 88.3%, 12B 77.5%, E4B 42.5%. Gemma 3 27B scored 20.8%.
- **LiveCodeBench v6** (coding): 31B 80.0%, 26B A4B 77.1%, 12B 72.0%, E4B 52.0%. Gemma 3 27B scored 29.1%.

At launch, Google said the 31B ranked third among open models on the Arena AI text leaderboard and the 26B ranked sixth. Leaderboard positions shift every few weeks, so check the current table before relying on that.

The pattern that matters for planning: the 26B A4B gets within a few points of the 31B while doing far less work per token, and the 12B sits about 8 to 12 points below the 31B. The two edge models are a clear step down on hard reasoning, so use them for narrow tasks like transcription, tagging and short replies.

## Is Gemma 4 open source and free for commercial use?

Gemma 4 is free for commercial use under the Apache 2.0 license, one of the most widely used permissive software licenses. You can download the weights, fine tune them and ship them inside a paid product without paying Google or asking permission.

That is a real change from earlier releases. Gemma 1 through Gemma 3n were published under Google's own [Gemma Terms of Use](https://gemma.ai/resources/terms/), which add usage rules on top of the download. Those terms now point Gemma 4 users to a separate Apache 2.0 license. Strictly, Gemma 4 is open weight rather than fully open source, because the training data is not released.

## How do you run Gemma 4 locally or in the cloud?

You can run Gemma 4 on your own machine with common local tools, or try and host it on Google's services.

- **Download the weights** from the [Gemma 4 collection on Hugging Face](https://huggingface.co/collections/google/gemma-4) or from Kaggle, in pretrained and instruction tuned versions.
- **Run locally** with [Ollama](https://aismith.dev/insights/run-llm-locally-hardware-tools), LM Studio, llama.cpp or MLX on a Mac. Ollama and LM Studio are the quickest way to try a model on a laptop.
- **Serve it in production** with vLLM or SGLang on your own GPUs.
- **Try it in the browser** in Google AI Studio, where Google lists the 31B and 26B A4B models.
- **Host it on Google Cloud** with Cloud Run, GKE or Google's managed model platform (listed as Vertex AI at the April launch and as Gemini Enterprise Agent Platform Model Garden in the June 12B post).
- **Try it on a device** with the Google AI Edge Gallery app, which Google lists for the E2B and E4B models and, since June, the 12B.

If you need answers grounded in your own documents, pair the model with a retrieval step. Our [guide to RAG for business leaders](https://aismith.dev/insights/rag-aismith) explains how that works without retraining anything.

## Can Gemma 4 power AI agents?

Gemma 4 can power AI agents, because the model card lists native function calling and system instructions, and Google's launch post adds structured [JSON](https://aismith.dev/insights/json-aismith) output. Function calling means the model can reply with a request to run a tool you define, such as "look up order 1234", and your code runs it and feeds the result back.

Gemma 4 also has a thinking mode you switch on and off. Per the model card, you enable it by putting the `<|think|>` token at the start of the system prompt and disable it by leaving it out. Thinking improves multi step planning at the cost of more tokens and slower replies.

An open model that runs on your own hardware is a good fit for agents that touch private data. It does not remove the need for guardrails. Our piece on [autonomous AI agents like OpenClaw](https://aismith.dev/insights/openclaw-ai-autonomous-agent) covers why an agent with broad permissions needs limits whatever model sits behind it.

## What are the limits of Gemma 4?

Gemma 4 has limits worth knowing before you build on it.

- **Short media inputs**: the model card caps audio clips at 30 seconds and video at 60 seconds, read as one frame per second.
- **Audio only on three sizes**: E2B, E4B and 12B accept audio. The 26B A4B and 31B do not.
- **Text output only**: Gemma 4 does not generate images or speech.
- **You run the infrastructure**: self hosting means you own uptime, scaling, updates and security. A hosted API hides all of that.
- **Language coverage is uneven**: Google says the models were pretrained on more than 140 languages but support more than 35 out of the box, so test quality in the languages you need.

## Should you self host Gemma 4 or use a hosted model?

Self host Gemma 4 when data must stay on your machines, when you need to fine tune on your own examples, or when request volume is high and steady enough that owning the hardware costs less than paying per token. Use a hosted model when volume is low or unpredictable, when you need the very best reasoning available, or when nobody on the team wants to run GPUs.

The cost question deserves real numbers, not a guess. Work out what the task is worth and what each option costs to run, as described in our guide to [measuring AI ROI before you build](https://aismith.dev/insights/ai-roi-how-to-measure-it). The broader trade off between owning a system and renting one is covered in [build vs buy for custom AI](https://aismith.dev/insights/build-vs-buy-custom-ai-solutions).

If you want help choosing a model and putting it into production, that is the kind of work our [AI engineering team](https://aismith.dev/services/ai) does.

## Key takeaways

- Gemma 4 launched on 2 April 2026, with a 12B laptop model added on 3 June 2026.
- There are five sizes: E2B, E4B, 12B, 26B A4B and 31B, with 128K context on the edge models and 256K on the rest.
- The Apache 2.0 license allows commercial use and fine tuning without fees, unlike the custom terms on earlier Gemma releases.
- The 26B A4B is the speed pick, the 31B is the quality pick, and the 12B fits a 16 GB laptop.
- Benchmarks are Google's own; test on your own data before committing.

## Frequently asked questions

### Is Gemma 4 free to use?

Gemma 4 is free to download and use, including in commercial products, under the Apache 2.0 license. You pay only for the hardware or cloud service you run it on. Using it through Google's hosted services follows that service's own pricing and limits.

### Can Gemma 4 run on a laptop?

Gemma 4 can run on a laptop. Google says the 12B model runs locally with 16 GB of VRAM or unified memory, and the E2B and E4B models run on far less. Tools such as Ollama and LM Studio make this a short setup.

### What is the difference between Gemma and Gemini?

Gemma models are open weight models you can download and run yourself. Gemini models are Google's closed models, available only through Google's apps and APIs. Gemma is the choice when you need control over where the model runs.

### Does Gemma 4 support audio and video?

Gemma 4 E2B, E4B and 12B accept audio input, with clips up to 30 seconds. All Gemma 4 models read images, and they handle video as a sequence of frames, up to 60 seconds at one frame per second. Output is always text.

### When was Gemma 3 released?

Gemma 3 was released on 12 March 2025 in 1B, 4B, 12B and 27B sizes. Gemma 4 followed in April 2026 with larger context windows, audio input on the smaller models and a more permissive license.

## Related reading

- [Beyond Transformers: Why Mamba is the Next Big Leap in Generative AIHow the Mamba state space model avoids the Transformer's quadratic cost on long inputs, why it runs faster, and where hybrids like Jamba fit in.](https://aismith.dev/insights/aismith-mamba-llm)
- [The Secret Engine Behind ChatGPT: A Simple Guide to TransformersA simple guide to the Transformer, the engine behind ChatGPT: what came before it, how attention works, and why it changed AI for good.](https://aismith.dev/insights/transformers-chatgpt-aismith)
- [OpenClaw AI: The Autonomous Agent Revolutionizing WorkWhat OpenClaw is, how this open source autonomous agent works, what its AgentSkills let it do, and the security risks to check before you run it.](https://aismith.dev/insights/openclaw-ai-autonomous-agent)

Author

Published on April 10, 2026

Keep exploring

## Build this with AISmith

One team for AI, web, mobile, and infrastructure.

- [AI Workflows](https://aismith.dev/services/ai-workflows): AI inside one business process, coached every week against a growing test set.

- [AI Development & Automation](https://aismith.dev/services/ai): AI agents, RAG assistants, and workflow automation.

- [AI Consulting & Strategy](https://aismith.dev/services/ai-consulting): Use cases, build versus buy, ROI and a costed AI roadmap.

- [Web Development](https://aismith.dev/services/web-development): Fast, scalable web apps on React and Next.js.

- [App Development](https://aismith.dev/services/app-development): High-performance iOS, Android, and cross-platform apps.

- [Voice AI & Call Automation](https://aismith.dev/services/voice-ai): AI voice agents that answer, book, and log every call.

- [UI/UX & Product Design](https://aismith.dev/services/design): Design systems, prototypes, and conversion-focused interfaces.

- [Cloud and IT Consulting](https://aismith.dev/services/it-consulting): Cloud migration, DevOps, and security strategy.

---

## About AIsmith

AIsmith builds AI agents, workflow automations, voice AI and production web and mobile apps for startups and enterprises, from spec to production in weeks.

- Contact: grow@aismith.dev
- Full site map for AI agents: https://aismith.dev/llms.txt
- Tools for AI agents (MCP, streamable HTTP): https://aismith.dev/mcp
- Any page as markdown: add .md to its URL, for example https://aismith.dev/services/ai.md
