Download
Gemma 4
Open Models

Every checkpoint, every format, every mirror - with the exact repository IDs and pull commands. Apache 2.0, so you can download the weights, fine-tune them, ship them in a product and redistribute the result.

Pulled weights before mid-July 2026? Re-pull them - the refresh fixed the chat template and tool calling.

fastest start
# One command, any platform
ollama pull gemma4:12b

# 7.6 GB · 256K context
# text + image + audio + video
ollama run gemma4:12b
Smallestgemma4:e2b-it-qat4.3 GB
Balancedgemma4:12b-it-qat7.2 GB
Strongestgemma4:31b-it-qat19 GB
Start here

Pick by the hardware you actually have

The single most common mistake is downloading the biggest model your disk will hold rather than the biggest one your memory will run. Match to VRAM or unified memory, not storage.

💡
Rule of thumb. Take the Q4_0 size below, add roughly 20–30% for the KV cache at moderate context lengths, and that's your real memory requirement. Long context costs more - though Gemma 4's pp-RoPE scheme cuts KV cache footprint by up to 37.5% compared to a standard configuration.
All downloads

Every Gemma 4 checkpoint

Repository IDs are exact and case-sensitive - note the capital B in gemma-4-12B-it, which trips up a lot of copy-paste. Instruction-tuned (-it) is what you want unless you're doing your own post-training.

Gemma 4 31B Flagship
Dense · 256K context · text + image · #3 open model on Arena text
Q4_017.5 GB
Gemma 4 26B A4B Mixture of Experts
~3.8B active per token · 256K context · text + image · best throughput
Q4_014.4 GB
# Ollama - note the tag is 26b, not 26b-a4b
ollama pull gemma4:26b

# Hugging Face CLI
hf download google/gemma-4-26B-A4B-it
Gemma 4 12B Unified · June 2026
Encoder-free · 256K context · text + image + audio + video · 11.95B params
Q4_06.7 GB
Gemma 4 E4B Edge
4.5B raw params · 128K context · text + image + audio + video
Q4_04.5 GB
# Ollama
ollama pull gemma4:e4b

# Smallest good-quality option - QAT 4-bit, ~6.1 GB
ollama pull gemma4:e4b-it-qat
Gemma 4 E2B On-device
2.3B raw params · 128K context · text + image + audio + video · mobile build 1.1 GB
Q4_02.9 GB

Every model above also ships an -it-assistant variant on Hugging Face - a chat-tuned build with an assistant persona baked in. Use the plain -it checkpoints unless you specifically want that.

Formats

Which file format do you need?

The same model in the wrong format is the most common reason a download doesn't run. Pick the row that matches your runtime.

FormatUse it withPrecisionNotes
Safetensors Transformers, vLLM, SGLang, TRL BF16 full The reference format. Largest download, best quality, needed for fine-tuning.
QAT GGUF Best 4-bit llama.cpp, Ollama, LM Studio, Jan Q4_0 Quantisation-aware training, so it loses far less quality than post-hoc 4-bit. Published by Google.
Community GGUF llama.cpp, Ollama, LM Studio Q2–Q8 Hundreds of quants from Unsloth, Bartowski and others. Q4_K_M is the usual default.
MLX Apple silicon (M-series) 4-bit / BF16 Substantially faster than GGUF on Mac. Available as gemma4:*-mlx Ollama tags.
NVFP4 NVIDIA Blackwell GPUs FP4 4-bit floating point. Better quality than integer 4-bit on supported hardware.
MXFP8 Modern NVIDIA GPUs FP8 Half the memory of BF16 with near-identical quality. A good middle ground.
LiteRT-LM Android, iOS, embedded INT4/INT8 On-device only, E2B and E4B. Distributed via MediaPipe and Android AICore.
⚠️
Don't go below 4-bit. Q2 and Q3 GGUF quants exist and will load, but quality degradation on reasoning and code is severe - often worse than simply using the next model size down at Q4. If 31B at Q4 won't fit, run 26B A4B at Q4 rather than 31B at Q3.
Ollama

Complete tag reference

Sizes are the actual download, as reported by the Ollama registry. gemma4:latest currently resolves to E4B.

TagDownloadContextNotes
gemma4:e2b7.2 GB128KOn-device class
gemma4:e2b-it-qat4.3 GB128KSmallest recommended
gemma4:e4b9.6 GB128KSame as gemma4:latest
gemma4:e4b-it-qat6.1 GB128KGood laptop default
gemma4:12b7.6 GB256KUnified multimodal
gemma4:12b-it-qat7.2 GB256KBest quality-per-GB
gemma4:12b-mlx7.7 GB256KApple silicon
gemma4:26b18 GB256KMoE, fast inference
gemma4:26b-a4b-it-qat16 GB256KMoE at 4-bit
gemma4:31b20 GB256KFlagship
gemma4:31b-it-qat19 GB256KBest quality that fits 24 GB
gemma4:31b-it-bf1663 GB256KFull precision
gemma4:31b-nvfp419 GB256KBlackwell GPUs
gemma4:cloud-256KHosted, no local download

Every size also offers -q4_K_M, -q8_0, -bf16, -mlx, -mlx-bf16, -mxfp8 and -nvfp4 variants. See the full tag list.

Beyond the core models

Specialised Gemma models

If your workload is narrow, one of these will usually beat a general model of the same size.

DiffusionGemma 26B A4B

Released June 2026 · text diffusion
New

A genuinely different architecture: instead of generating one token at a time, it produces 256 tokens per forward pass in parallel, reaching over 1,000 tokens/second on a single H100 - up to 4× faster output. Bi-directional attention across generated tokens also makes it good at in-line editing and code infilling, which autoregressive models handle awkwardly. Fits 24 GB when quantised.

🤗 diffusiongemma-26B-A4B-itHugging Face · also on Kaggle and Vertex AI

TranslateGemma

Released January 15, 2026 · 4B / 12B / 27B

Purpose-built for machine translation across the Gemma language range. If translation is your primary workload rather than one capability among many, these beat a general Gemma 4 model of comparable size - and the 4B is small enough to run on-device.

🤗 TranslateGemma familyBrowse 4B, 12B and 27B on Hugging Face

MedGemma 1.5

Released January 13, 2026 · 4B

Tuned for medical imaging and clinical text. Intended as a research and development starting point, not a diagnostic tool - validate carefully before anything touching patient care, and check the model card's stated limitations.

🤗 MedGemma 1.5Hugging Face model card and weights

The wider family

Embeddings, function calling, safety

EmbeddingGemma for retrieval and RAG pipelines, FunctionGemma for tool-calling routers, ShieldGemma 2 for content safety classification, and T5Gemma v2 for encoder-decoder tasks. All Apache 2.0.

📚 Full release historyEvery Gemma model and variant, with dates
Before you download

Four things worth knowing

📜

The licence is genuinely permissive

Apache 2.0 - commercial use, modification, redistribution and proprietary derivatives are all permitted. No revenue thresholds, no user caps, no acceptable-use rider that changes later. Hugging Face still asks you to accept terms once before downloading; that's a formality, not a restriction.

🔄

Re-pull anything from before mid-July

The July 15, 2026 refresh changed the chat template to reduce role-tag leakage and substantially improved tool-calling reliability. Same version number, different weights. If your agent is producing malformed JSON, this is very likely why.

💾

Budget disk and bandwidth

A full BF16 31B download is roughly 70 GB and Hugging Face will resume but not deduplicate. Use hf download rather than git clone - git-lfs will silently store a second copy in .git and double your disk usage.

🔐

Verify what you downloaded

Safetensors is a safe format by design - it can't execute code on load, unlike pickle-based .bin checkpoints. Prefer official google/* repositories; community re-uploads are usually fine but occasionally stale, mislabelled, or quantised more aggressively than advertised.

📦
Fastest downloads. Install hf_transfer and set HF_HUB_ENABLE_HF_TRANSFER=1 - it parallelises chunks and will typically saturate a gigabit connection where the default client won't get close.
After downloading

Get it running

# Install and authenticate once
pip install -U "huggingface_hub[cli]" hf_transfer
hf auth login

# Faster parallel downloads
export HF_HUB_ENABLE_HF_TRANSFER=1

# Full precision checkpoint
hf download google/gemma-4-12B-it --local-dir ./gemma-4-12B-it

# Or just the official 4-bit GGUF - one file, much smaller
hf download google/gemma-4-12B-it-qat-q4_0-gguf \
  --include "*.gguf" --local-dir ./gemma-gguf
from transformers import pipeline
import torch

# Downloads on first run, then caches in ~/.cache/huggingface
pipe = pipeline(
    "text-generation",
    model="google/gemma-4-12B-it",
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

out = pipe(
    [{"role": "user", "content": "Explain diffusion decoding briefly."}],
    max_new_tokens=400,
)
print(out[0]["generated_text"][-1]["content"])
# llama.cpp can pull straight from Hugging Face - no manual download
./build/bin/llama-server \
  -hf google/gemma-4-12B-it-qat-q4_0-gguf \
  --ctx-size 32768 \
  --n-gpu-layers 99 \
  --port 8080

# Already have the .gguf file locally?
./build/bin/llama-cli -m ./gemma-4-12B-it-qat-q4_0.gguf -p "Hello"
# vLLM - OpenAI-compatible endpoint, production serving
pip install vllm

vllm serve google/gemma-4-26B-A4B-it \
  --max-model-len 262144 \
  --enable-auto-tool-choice \
  --tool-call-parser gemma

# Ollama already serves on :11434 after a pull
ollama serve

Model identifiers are case-sensitive. gemma-4-12b-it will 404 - it's gemma-4-12B-it.

Open weights. Yours to keep.

Apache 2.0 across the entire family. Download once, run it anywhere, fine-tune it, ship it.