What is Gemma 4

Gemma 4 is a family of open-weight models from Google DeepMind, and Google says it comes from the same research and technology as Gemini 3. The announcement post is dated April 2, 2026, while Google’s release history page lists March 31, and on June 3 Google added 12B, currently the latest size in the main lineup of chat models. Each of the five sizes has a pretrained version and an instruction-tuned version (the file name ends in -it, the version meant for chat).

For a phone, pick E2B or E4B, and for a laptop, pick 12B (the 12B laptop configuration Google lists is 16 GB of VRAM or unified memory). Loading all of 26B A4B or 31B onto a graphics card takes more memory, and you can also try them directly in Google AI Studio.

SizeParametersReads at onceInput
E2B2.3B effective (5.1B with embeddings)128K tokensText, image, audio
E4B4.5B effective (8B with embeddings)128K tokensText, image, audio
12B11.95B256K tokensText, image, audio
26B A4B25.2B total, 3.8B active256K tokensText, image
31B30.7B256K tokensText, image

How to read the names: B stands for billion, so the number is billions of parameters. E stands for effective, meaning “effective parameters.” In the smaller models, some parameters are in embedding layers used as lookup tables, so fewer parameters are used during computation than are stored in the full model. 26B A4B uses a mixture of experts (MoE) architecture: it has 25.2B in total, but each token (the smallest unit a model splits text into) activates only about 4B, and A4B means active 4B.

All five sizes output text only. Audio is supported up to 30 seconds, and video is treated as images at 1 frame per second, up to 60 seconds. Google gives the training data cutoff as January 2025 and also warns that the model may produce wrong or outdated facts.

The family also includes specialized members such as CellGemma, released on December 1 (a non-chat model built on E4B to predict cell responses). This article focuses on the mainline Gemma 4.

What open weights means

“Open weights” means the trained model file is released so that people can download it, run it on their own machines or fine-tune it, but the training data and training code are not necessarily made public. You can download the Gemma 4 weights from Hugging Face (a model download platform) and Kaggle (Google’s data science platform). Earlier Gemma generations used Google’s own Gemma license (as reported by Engadget), while Gemma 4 switched to Apache 2.0, with the details in the license section below. For a longer explanation of open weights, see What is Amazon Ergo and What is Muse Spark Open.

Can your computer run it?

Start with Google’s memory table

Google’s table lists the approximate GPU (graphics card) or TPU (Google’s AI chip) memory needed to load the model, in GB, and it already includes 20% overhead. Quantization (shrinking a model) means storing each parameter in fewer bits: BF16 is the original precision, SFP8 uses 8 bits and Q4_0 uses 4 bits. In the loading estimates shown here, SFP8 uses about half as much memory as BF16, and Q4_0 about a quarter.

SizeBF16SFP8Q4_0Mobile load estimate
E2B11.45.72.91.1
E4B17.98.94.52.5
12B26.713.46.7-
26B A4B57.728.814.4-
31B69.934.917.5-

The “Mobile load estimate” column lists only the estimates Google provides for E2B and E4B.

Google also states that the table counts only the model weights themselves. It does not include the VRAM (graphics card memory) needed for runtime software and context, and the longer the context, the more memory it takes. Although 26B A4B activates only 3.8B at a time, all 25.2B must be loaded into memory, so its requirement stays close to that of a dense 26B model. For 4-bit use, Google recommends its own QAT versions (quantization-aware training) first, and an ordinary Q4 after that.

Laptops and Macs: 12B

12B is the size Google made for laptops. Google says its benchmark results are close to 26B’s while it uses less than half the memory.

The 12B laptop configuration Google lists is 16 GB of VRAM or unified memory, though the documents word it differently. The 12B announcement post has two phrasings: one says 16 GB of VRAM or unified memory (memory that the CPU and GPU share on a Mac), and the other says a consumer laptop with 16 GB of RAM. The developer guide is more specific, naming a laptop with a discrete GPU and 16 GB of VRAM or unified memory.

Ollama is a free tool for running models locally, and a single command downloads and runs one. For 12B, Google estimates that Q4_0 needs about 6.7 GB of memory to load. Google’s Ollama documentation lists the gemma4:12b download at 7.6 GB, while Ollama’s own page lists 7.7 to 8.0 GB.

Before you start, Google’s Ollama documentation has two cautions. First, Ollama sets the context length by the VRAM available, and when VRAM is below 24 GiB the default is only 4K, far below the model’s 256K, so you have to change the settings yourself to read long documents. Second, Gemma 4 on Ollama accepts only text and images, and to use audio you need Transformers (Hugging Face’s model library) or llama.cpp (an open-source local inference engine).

Mac users also have the gemma4:12b-mlx tag, which runs on Apple’s machine learning framework MLX. Google’s developer guide also says Google AI Edge Gallery has a macOS version that can run 12B offline.

Phones: E2B and E4B

Google says E2B and E4B can run fully offline on phones, Raspberry Pi (a single-board computer) and NVIDIA Jetson Orin Nano (a small AI developer board). To use them on a phone, install the Google AI Edge Gallery app; Google Play requires Android 12 or later, and the App Store requires iOS 17 or later. Google’s page says all inference happens on the device, with no network or account needed.

The LiteRT-LM (Google’s on-device runtime) file sizes are 2.58 GB for E2B and 3.65 GB for E4B, and Google’s table estimates that loading the mobile versions requires 1.1 GB and 2.5 GB of memory, respectively.

Desktops: 26B A4B and 31B

Google says the BF16 weights of these two sizes fit on a single 80 GB NVIDIA H100 (a data center GPU), and the quantized versions can run on consumer graphics cards. The Q4_0 load estimates for 26B A4B and 31B are about 14.4 and 17.5 GB, with context and software usage added on top. Google’s Ollama documentation lists gemma4:26b at an 18 GB download and gemma4:31b at 20 GB.

On April 22, InfoWorld (a tech outlet) tested with LM Studio (a local model app with a graphical interface) 0.4.10, on a machine with a Ryzen 5 3600, 32 GB of RAM and an RTX 5060 with 8 GB of VRAM. E4B ran at 72 tokens per second. 26B A4B ran at 5 to 13 tokens per second with LM Studio’s setting that offloads the MoE experts to the CPU turned on, and at 1.5 tokens per second with it off. This test did not include 12B.

How to use it and what it costs

Try it first: browser and phone app

  • Browser: Google AI Studio has 31B and 26B A4B ready to try with nothing to install. Under Gemma 4, Google’s Gemini API pricing page labels the free tier’s input and output as Free of charge and the paid tier as Not available. Taiwan and Japan are both in AI Studio’s list of available regions.
  • Phone: Install the Google AI Edge Gallery app to run E2B and E4B.
  • 12B and the smaller sizes: The Gemini API hosts only gemma-4-31b-it and gemma-4-26b-a4b-it, so the other sizes you have to run yourself.

Install it yourself

  • Ollama: Enter ollama run gemma4:12b to start. gemma4 without a tag runs E4B, and the other tags are e2b, e4b, 12b, 26b and 31b.
  • LM Studio: It supports macOS, Windows and Linux, and when you search for Gemma in it, it recommends the version that matches your hardware.
  • llama.cpp: It can read GGUF (a format that stores model weights and metadata, commonly used for local inference), and Google says images, audio (E2B, E4B, 12B) and video can all be input. For 4-bit use, Google recommends an official QAT file such as google/gemma-4-12B-it-qat-q4_0-gguf.

Hosted API pricing

The prices below are in US dollars per million tokens, as of December 2, 2026.

PlatformModelInputOutput
Google Gemini API free tier31B, 26B A4BFreeFree
OpenRouter31B0.200.40
OpenRouter26B A4B0.07650.255
AWS Bedrock31B0.140.40
AWS Bedrock26B A4B0.130.40
DeepInfra31B0.200.40

The AWS Bedrock figures in the table are the On-Demand standard rates in three regions: N. Virginia, Ohio and Oregon.

In addition, OpenRouter has :free versions priced at 0. AWS Bedrock’s On-Demand standard rate for E2B in the same three regions is US$0.04 for input and US$0.08 for output, and for 31B in the Frankfurt region it is US$0.17 and US$0.48. DeepInfra lists zero data retention.

By our calculation, a task with 100,000 input tokens and 20,000 output tokens on OpenRouter’s 31B costs US$0.02 plus US$0.008, US$0.028 in total.

How to read the benchmarks

The table below uses results from Google’s model card. All are numbers Google published itself for the instruction-tuned versions, and the technical report says thinking mode (reasoning before answering) was on unless noted otherwise. The Gemma 3 27B used for comparison was run with thinking off, a choice made by Google.

Test31B26B A4B12BE4BGemma 3 27B
MMLU Pro (knowledge Q&A)85.2%82.6%77.2%69.4%67.6%
AIME 2026, no tools (math competition)89.2%88.3%77.5%42.5%20.8%
LiveCodeBench v6 (coding problems)80.0%77.1%72.0%52.0%29.1%
Tau2, average of 3 (tool-use tasks)76.9%68.2%69.0%42.2%16.2%
HLE, no tools (hard multidisciplinary questions)19.5%8.7%5.2%n/an/a
MRCR v2, 8 needle, 128K (finding information in long text)66.4%44.1%43.4%25.4%13.5%

On every row that has a Gemma 3 27B score, 12B beats it. Against 26B A4B, though, 12B leads on only one row, Tau2 (69.0 against 68.2), and trails on the rest, so whether Google’s “close” holds depends on the metric. Against 31B, 12B’s biggest gaps are HLE (5.2 against 19.5) and long-text retrieval (43.4 against 66.4).

Artificial Analysis (an independent AI evaluation organization) lists the Intelligence Index v5.0.2 in thinking mode (Reasoning), queried December 2, 2026, where a higher score is better: 31B scores 4, 26B A4B scores 4 and E4B scores 5, while 12B and E2B show N/A, with no score yet. Artificial Analysis’s page places 31B and E4B toward the lower end of the rankings for comparable models, whose median score is 11. This index also tests different questions from the ones in Google’s table.

Chinese and Japanese

Google says pretraining covers more than 140 languages and that 35 or more are officially supported. The MMMLU (multilingual MMLU) in Google’s model card lists overall scores: 31B at 88.4%, 12B at 83.4% and Gemma 3 27B at 70.7%, but that table has no per-language results and no Traditional Chinese results.

For speech recognition, the technical report’s FLEURS (a multilingual speech test set) character error rate (CER, lower is better) lists E4B at 0.078 for Japanese and 0.136 for Chinese, and 12B at 0.080 for Japanese. The 12B table has no Chinese, and the model card’s 12B audio average also states that Chinese is excluded.

What to watch for in the license

Gemma 4 uses the Apache 2.0 license, which permits commercial use without a license fee.

  • Commercial use allowed: The grant is perpetual, worldwide, free of charge and royalty-free, and you may reproduce, modify, sublicense and distribute. The text sets no cap on users or revenue, has no clause on model outputs, and has no model-specific list of use restrictions.
  • What to do when you distribute: You must include a copy of the license, mark modified files as modified, and keep the original copyright, patent, trademark and attribution notices. If the original work comes with a NOTICE, then when you distribute a derivative work, you must keep the relevant attribution notices from it in the ways the license permits.
  • Patents: If you file patent litigation alleging that Gemma itself or a contribution to it infringes, the patent licenses you hold for that work end on the day you file.
  • Trademarks and warranty: No general trademark rights are granted, except for reasonable identification of the work’s origin and for reproducing the NOTICE. The model is provided as is, without warranty.
  • Older terms: The appendix of the Gemma Terms of Use lists only older models, so for Gemma 4 look at its own license. Google also has a Prohibited Use Policy (revised February 21, 2024) that lists uses where Gemma may not be used. The page does not exclude Gemma 4, and the Apache text does not reference the policy, so read both before commercial use.
  • The above is only a summary of the license terms, not legal advice. Before commercial use, rely on the full license text.

Penchan’s summary

Pick a size by Google’s documentation. For a phone, pick E4B or E2B. For a laptop, pick 12B, with a download of about 7.6 GB and the command ollama run gemma4:12b; the 12B laptop configuration Google lists is 16 GB of VRAM or unified memory. To see what the larger models can do, try 31B directly in Google AI Studio with nothing to install. The license is Apache 2.0, and the bar for commercial use is low.

On benchmarks, 12B beats the previous-generation 27B, but on long-text retrieval and hard questions it still trails 31B by a clear margin. As for Chinese, the model card has no Traditional Chinese results. Try 10 of your own real tasks and see whether it fits your use. If every task looks like the example above, with 100,000 input tokens and 20,000 output tokens, running it ten times on OpenRouter’s 31B costs about US$0.28 (by our calculation).

Further reading

Prices, the Google AI Studio region list and Artificial Analysis scores are as of December 2, 2026. Always check the latest announcements from Google and each platform. This article is consumer information about AI model and API pricing and does not constitute investment advice.