Google DeepMind · Apache 2.0

Gemma 4

Google’s 2026 family, from phone size to 31B. Reads images and works in 140+ languages.

How much memory it needs

The model file, plus memory for the conversation, plus about 1 GB for the app. Longer conversations need more.

SizeVersionFileAt 8KAt 32KAt 128K
5.1BQ4_K_M3.1 GB5.2 GB5.3 GB5.9 GB
Q8_05.0 GB7.1 GB7.3 GB7.9 GB
8BQ4_K_M5.0 GB7.1 GB7.5 GB9.2 GB
Q8_08.2 GB10.3 GB10.7 GB12.4 GB
12BQ4_K_M7.1 GB8.5 GB9.2 GB11.8 GB
Q8_012.7 GB14.1 GB14.7 GB17.3 GB
26B (3.8B active)Q4_K_M17.0 GB19.4 GB20.1 GB22.8 GB
Q8_026.9 GB29.3 GB29.9 GB32.6 GB
31BIQ4_XS16.4 GB19.4 GB22.1 GB32.7 GB
Q4_K_M18.3 GB21.4 GB24.0 GB34.6 GB
Q8_032.6 GB35.7 GB38.4 GB48.9 GB

Which computers run it

The best size for each machine at an 8K-token conversation. Speeds are estimates from memory bandwidth.

ComputerBest versionFitSpeed
Laptop or PC, no graphics card, 32 GB26B Q4_K_MRuns well12–25tok/sSmooth
RTX 4060 · 8 GB8B Q4_K_MRuns well30–50tok/sFast
RTX 3060 · 12 GB12B Q4_K_MRuns great30–45tok/sSmooth
RTX 5060 Ti · 16 GB12B Q8_0Runs well20–35tok/sSmooth
RTX 4090 · 24 GB31B Q4_K_MRuns well30–50tok/sFast
RTX 5090 · 32 GB31B Q4_K_MRuns great55–85tok/sFast
Mac with M4 · 16 GB12B Q4_K_MRuns well9.5–16tok/sReadable
Mac with M4 Pro · 48 GB31B Q8_0Runs well4.5–8tok/sReadable
Mac with M5 Max · 128 GB31B Q8_0Runs great11–18tok/sSmooth
Ryzen AI Max+ 395 · 128 GB31B Q4_K_MRuns great8–13tok/sReadable
DGX Spark · 128 GB31B Q4_K_MRuns great8.5–14tok/sReadable
RTX PRO 6000 · 96 GB31B Q8_0Runs great30–50tok/sFast
Mac Studio with M5 Ultra · 256 GB31B Q8_0Runs great16–25tok/sSmooth
Mac Studio with M3 Ultra · 512 GB31B Q8_0Runs great11–19tok/sSmooth

Measured speeds

Real runs, not estimates. All measurements.

ComputerVersionPromptSpeedSource
Intel Arc B580 Limited Edition 12 GB (Core Ultra 5 250K Plus, CachyOS 7.0.11, oneAPI 2026.0)Q4_K_M51241.34 tok/s2026-06-13
NVIDIA GeForce RTX 5090 32 GBQ4_K128K43.4 tok/s2026-03
NVIDIA GeForce RTX 3090 24 GB (used)Q4_K256K64.4 tok/s2026-03
NVIDIA GeForce RTX 3090 24 GB (used)Q4_K32K31.4 tok/s2026-03

What it is good and bad at

Good at

  • Many languages
  • Images in every size; audio in E2B, E4B and 12B
  • Very small conversation memory

Not good at

  • The 31B is a dense model, so it is slower per word than the 26B-A4B

Start it

Install Ollama, then run one of these in a terminal. LM Studio users can search the same name in the app.

ollama run gemma4:12b
ollama run gemma4:26b-a4b
ollama run gemma4:31b