Gemma Models: Google's Lightweight Local AI

Google DeepMind's Gemma family delivers impressive quality from compact models. The current Gemma 4 line starts with E4B, a 4.5B on-device model that runs on an 8GB Mac, then steps up to the 26B-A4B MoE (25.2B total, 3.8B active, 16GB load) and the dense 31B (20GB load, 32GB floor), all Apache 2.0, with the 31B taking text and images. If you want a well-tuned, safety-conscious model that fits modest hardware, Gemma is a strong choice.

developer
Google DeepMind
local models
19
size range
1B-31B
RAM range
2-48 GB
Table 1Local builds

All Gemma models

19 local models
ModelSizeQuantVRAMMin RAMBest ForQualityOllama
Gemma 3 1B Instruct1BQ4_K_M1 GB2 GBChat, Mobile52
Gemma 3 1B Instruct (Q8)1BQ8_01 GB4 GBChat, Mobile54
Gemma 2 2B Instruct2BQ4_K_M1.8 GB4 GBChat58
Gemma 4 E2B2.3BQ4_K_M2.3 GB4 GBIoT, Mobile, Edge68
Gemma 4 E2B (Q8)2.3BQ8_04.6 GB8 GBIoT, Mobile, Edge70
Gemma 3 4B Instruct4BQ4_K_M3.5 GB6 GBChat, Coding72
Gemma 3 4B Instruct (Q8)4BQ8_03.9 GB8 GBChat, Coding74
Gemma 4 E4B4.5BQ4_K_M4 GB6 GBOn-device, Mobile, Chat78
Gemma 4 E4B (Q8)4.5BQ8_07.5 GB16 GBOn-device, Mobile, Chat80
Gemma 2 9B Instruct9BQ4_K_M7 GB12 GBChat, Coding76
Gemma 3 12B Instruct12BQ4_K_M9.5 GB16 GBChat, Quality85
Gemma 4 12B12BQ4_K_M8 GB12 GBChat, Coding, Multimodal90
Gemma 4 12B (Q8)12BQ8_012.8 GB24 GBChat, Coding, Multimodal92
Gemma 4 26B-A4B26BQ4_K_M16 GB24 GBChat, Coding, Multimodal92
Gemma 4 26B-A4B (Q8)26BQ8_028.1 GB48 GBChat, Coding, Multimodal94
Gemma 2 27B Instruct27BQ4_K_M21 GB32 GBQuality, Coding80
Gemma 3 27B Instruct27BQ4_K_M21 GB32 GBQuality, Coding85
Gemma 4 31B31BQ4_K_M20 GB32 GBQuality, Coding, Multimodal93
Gemma 4 31B (Q8)31BQ8_030.9 GB48 GBQuality, Coding, Multimodal95

Key features

  • Gemma 4 E4B: 4.5B effective, runs on 8GB Macs
  • Gemma 4 26B-A4B MoE: 25.2B total, 3.8B active
  • Gemma 4 31B dense: 20GB load, 32GB RAM floor
  • Apache 2.0 across the Gemma 4 line
  • Previous Gemma 2 / 3 sizes still on Ollama
Table 2

Device compatibility

Which Gemma models can run on each device class, based on minimum RAM requirements.

ModeliPhoneAirProStudioMini
Gemma 3 1B Instruct (1B)ExcellentExcellentExcellentExcellentExcellentExcellent
Gemma 3 1B Instruct (Q8) (1B)ExcellentExcellentExcellentExcellentExcellentExcellent
Gemma 2 2B Instruct (2B)ExcellentExcellentExcellentExcellentExcellentExcellent
Gemma 4 E2B (2.3B)ExcellentExcellentExcellentExcellentExcellentExcellent
Gemma 4 E2B (Q8) (2.3B)PossiblePossibleExcellentExcellentExcellentPossible
Gemma 3 4B Instruct (4B)PossiblePossibleExcellentExcellentExcellentPossible
Gemma 3 4B Instruct (Q8) (4B)PossiblePossibleExcellentExcellentExcellentPossible
Gemma 4 E4B (4.5B)PossiblePossibleExcellentExcellentExcellentPossible
Gemma 4 E4B (Q8) (4.5B)NoPossiblePossibleExcellentPossiblePossible
Gemma 2 9B Instruct (9B)PossiblePossiblePossibleExcellentPossiblePossible
Gemma 3 12B Instruct (12B)NoPossiblePossibleExcellentPossiblePossible
Gemma 4 12B (12B)PossiblePossiblePossibleExcellentPossiblePossible
Gemma 4 12B (Q8) (12B)NoPossiblePossiblePossiblePossiblePossible
Gemma 4 26B-A4B (26B)NoPossiblePossiblePossiblePossiblePossible
Gemma 4 26B-A4B (Q8) (26B)NoNoPossiblePossiblePossibleNo
Gemma 2 27B Instruct (27B)NoPossiblePossiblePossiblePossiblePossible
Gemma 3 27B Instruct (27B)NoPossiblePossiblePossiblePossiblePossible
Gemma 4 31B (31B)NoPossiblePossiblePossiblePossiblePossible
Gemma 4 31B (Q8) (31B)NoNoPossiblePossiblePossibleNo

RAM requirements

Fig. 1Estimated load per model, with the minimum RAM
Gemma 3 1B Instruct1 GB · min 2 GB
Gemma 3 1B Instruct (Q8)1 GB · min 4 GB
Gemma 2 2B Instruct1.8 GB · min 4 GB
Gemma 4 E2B2.3 GB · min 4 GB
Gemma 4 E2B (Q8)4.6 GB · min 8 GB
Gemma 3 4B Instruct3.5 GB · min 6 GB
Gemma 3 4B Instruct (Q8)3.9 GB · min 8 GB
Gemma 4 E4B4 GB · min 6 GB
Gemma 4 E4B (Q8)7.5 GB · min 16 GB
Gemma 2 9B Instruct7 GB · min 12 GB
Gemma 3 12B Instruct9.5 GB · min 16 GB
Gemma 4 12B8 GB · min 12 GB
Gemma 4 12B (Q8)12.8 GB · min 24 GB
Gemma 4 26B-A4B16 GB · min 24 GB
Gemma 4 26B-A4B (Q8)28.1 GB · min 48 GB
Gemma 2 27B Instruct21 GB · min 32 GB
Gemma 3 27B Instruct21 GB · min 32 GB
Gemma 4 31B20 GB · min 32 GB
Gemma 4 31B (Q8)30.9 GB · min 48 GB

Config reports

Reported speeds for Gemma, by machine, quant and runtime
SourceMachinetok/sQuantRuntimeContextNote
Speed testApple M6 12-core GPU 32 GBGemma 4 26B-A4B59.3Q4_K_MOllama-1 run
Speed testApple M1 Max 64 GBGemma 4 26B-A4B36.0Q8_0Ollama-1 run

Speed test: runs submitted through the ModelFit speed test tool, one median per machine.

Share your config

Every report is reviewed before it appears. No email or account needed.

0/280

Frequently asked questions

What is the best Gemma model for a MacBook Air?

Gemma 4 E4B is the current pick for an 8GB Air: `ollama run gemma4:e4b` needs 6GB RAM minimum and loads about 4GB. On a 16GB machine you can move up to the larger Gemma 3 or Gemma 2 sizes, and 24GB+ opens the Gemma 4 26B-A4B MoE.

Can Gemma run on an iPhone?

Yes. Gemma 4 E4B is built for on-device use and runs on high-end iPhones and any 8GB Mac. Quality is basic but useful for simple chat and text tasks.

How does Gemma compare to Llama at similar sizes?

At small sizes they are close. Gemma tends to be more conservative and safety-tuned, while Llama is more flexible and has a larger fine-tune ecosystem. Pick based on whether you want guardrails or freedom.

Getting started

  1. 01How to Set Up Ollama →
  2. 02Best LLM for iPhone →
  3. 03Browse All Devices →
  4. 04ModelFit Wizard →