Guide

Gemma 4 on your own hardware: picking the right size for a phone, a laptop or one GPU

Gemma 4 on your own hardware: picking the right size for a phone, a laptop or one GPU
Gemma 4 on your own hardware: picking the right size for a phone, a laptop or one GPU
AI-generated illustration

8 min read · Facts checked 30 November 2026

Gemma 4 is Google DeepMind’s open-weight model family, built from the same research as Gemini and released under the Apache 2.0 licence. It spans five sizes, from an edge model designed to run offline on a phone to a 31-billion-parameter model for a single graphics card. The choice that matters is not “the biggest you can download” but the smallest size that does the job on the hardware you already own.

The five sizes, and what each is for

Google’s model cards list five Gemma 4 sizes: E2B, E4B, 12B Unified, 26B A4B and 31B. All five handle text and image input and generate text; E2B, E4B and 12B also accept audio. Context runs to 128,000 tokens for the two edge sizes and 256,000 tokens for the three larger sizes, and the family supports over 140 languages. The 26B A4B model is a mixture-of-experts design with about 4 billion active parameters per token; the others are dense models, with the 12B described as “unified” because it brings audio and vision understanding into the model without separate encoders.

Gemma 4 sizes (Hugging Face model cards)
SizeParametersContextBuilt for
E2B2.3B effective (5.1B with embeddings)128K tokensPhones, browsers, edge devices
E4B4.5B effective (8B with embeddings)128K tokensPhones, laptops, edge devices
12B Unified11.95B256K tokensLocal environments; audio + vision without separate encoders
26B A4B26B total, ~4B active256K tokensConsumer GPUs and workstations
31B30.7B256K tokensSingle GPU / workstation

Do not confuse Gemma with Gemini. Gemini 4 models — Carbon, Neon, Argon and Hydrogen — are hosted, closed-weight models reached through Google’s API and apps. Gemma 4 weights are downloadable and run locally. That difference is the whole point of Gemma: your prompts and documents can stay on the device, with no API bill and no network dependency once the weights are downloaded. It is also the whole cost: you supply the memory, the compute and the maintenance, and a small model on a phone will not match a frontier hosted model on hard reasoning tasks. AiTopMix has not benchmarked these sizes against each other; treat any quality ranking you read elsewhere as that source’s measurement, not a vendor fact.

On a phone: start with E2B

E2B is the phone-sized model. Google’s mobile builds, using its LiteRT-LM runtime, are reported to need roughly 1.1 GB of memory for E2B and 2.5 GB for E4B, and Google’s AI Edge Gallery app runs E2B and E4B on-device for Android and iOS, including offline chat. That makes E2B the right first download for private, offline use: drafting, summarising on-device documents, and question-answering where the text never leaves the phone. Expect short, practical answers rather than long-form reasoning, and keep prompts and expected outputs modest — a 2-billion-parameter model with a 128K context window can hold a long document, but holding it and reasoning over all of it well are different things.

E4B is the step up when the phone has the memory and the task needs more capability: roughly double the effective size, the same 128K context, and the same offline story. If E2B answers feel thin on your actual questions, move to E4B before reaching for a hosted model. Both sizes are available in quantised builds that shrink the download and memory further; check the exact variant’s memory requirement on its model card before downloading, because quantisation changes both size and behaviour.

On a laptop or one GPU: 12B, then 26B or 31B

The 12B Unified model is the practical local default for a capable laptop or a single consumer graphics card: full multimodal input including audio, 256K context, and no separate encoders to wire up. It suits local coding assistance, document question-answering over long files, and prototyping that later moves to a hosted model. The 26B A4B model adds mixture-of-experts efficiency — only about 4 billion parameters active per token — for workstations that can hold it, and the 31B dense model is the largest single-GPU option. For either, read the quantisation and memory figures on the model card first: published download sizes vary by precision, and a full-precision checkpoint can be several times larger than the quantised build that most local runners actually use.

Licence and practical checks

Gemma 4 is released under the Apache 2.0 licence, as listed on the Hugging Face model cards. That is a permissive licence that allows commercial use, which is one of the genuine differences from several other open-weight families whose custom licences add attribution or revenue conditions. It does not remove every obligation: read the model card and any accompanying use guidance for the exact checkpoint you download, keep the licence notice with redistributed weights, and remember that “open weights” does not mean “no responsibility” for what the model generates in your product.

  • Match the size to the device first: E2B for a phone, 12B for a laptop, 26B/31B only with a GPU that has the memory for the chosen precision.
  • Try the task offline in AI Edge Gallery (E2B/E4B) before building anything: if the small model handles it, you have saved an API dependency.
  • Check the variant: quantised builds are far smaller than full-precision checkpoints. The model card, not a roundup, is the source for the variant’s size.
  • Measure on your documents. A 256K context window is a capacity, not a guarantee of quality over the whole window.
  • Keep Gemini and Gemma separate in your planning: Gemini 4 is the hosted family with API pricing; Gemma 4 is the downloadable family with hardware costs instead.

The bottom line

Gemma 4’s range is its strength: a phone model, a laptop model and a workstation model under one permissive licence, all runnable without an API. Start at the smallest size that answers your real questions, and only move up when the output — measured on your own documents — says the larger model earns its memory.

Facts checked 30 November 2026
ClaimValueSource
Family and licenceGemma 4, Google DeepMind; Apache 2.0Hugging Face model cards (google/gemma-4-12B, gemma-4-E4B), via search-result text 30 Nov 2026
SizesE2B, E4B, 12B, 26B A4B, 31BHugging Face model cards, via search-result text 30 Nov 2026
Context128K (E2B/E4B); 256K (12B, 26B A4B, 31B)Hugging Face model cards, via search-result text 30 Nov 2026
ModalitiesText + image input, text output; audio also on E2B, E4B, 12BHugging Face model cards, via search-result text 30 Nov 2026
Mobile memory (LiteRT-LM builds)About 1.1 GB (E2B), 2.5 GB (E4B), as reportedSecondary reporting of Google’s figures, 30 Nov 2026 (not read firsthand)
LanguagesOver 140Hugging Face model cards, via search-result text 30 Nov 2026

Sources: Google DeepMind’s Gemma 4 model cards on Hugging Face, as returned in search-result text on 30 November 2026; the cards themselves were not text-fetched in this check, so figures are graded as secondary-verified. Gemma 4 was announced in April 2026 — this is a practical guide, not a launch report. Related: Run AI models locally: llama.cpp and LocalAI explained.

Back to all articles ↑ Back to the full directory ↑

The AiTopMix monthly roundup

One email a month, no spam

The tools and news that actually changed this month, plus the month’s new comparisons — in one short email. No subscriber count is claimed: the list is new, and it grows one reader at a time.

Advertise with AiTopMix