How to Download Gemma 4
A step-by-step guide: pick the right size, download it the way that suits you, check it worked, and fix it if it did not. Includes the new EmbeddingGemma 2.
Free · Apache 2.0 · no account needed for Ollama or LM Studio ·
The one-command way
If you have a computer with 16 GB of memory and just want it working, do this and skip the rest.
Install Ollama
Download it from ollama.com/download for Windows, macOS or Linux and run the installer.
Open a terminal and run one command
It downloads Gemma 4 12B (7.2 GB) and opens a chat when it finishes.
ollama run gemma4:12b-it-qat
Type a question
That is it. From now on it works with the network off.
Prefer no terminal at all? Use LM Studio, in step 2. On a phone? Go to mobile downloads.
1Choose a size
Pick by the memory you have. Downloading the biggest model your disk will hold is the most common mistake - it has to fit in memory to run.
| You have | Download | Ollama name | Download size |
|---|---|---|---|
| A phone | Gemma 4 E2B or E4B | In the AI Edge Gallery app | 2.58 - 3.66 GB |
| 8 GB of memory | Gemma 4 E4B | gemma4:e4b-it-qat | 6.1 GB |
| 16 GB of memory | Gemma 4 12B | gemma4:12b-it-qat | 7.2 GB |
| 24 GB graphics card, or a 32 GB Mac | Gemma 4 26B A4B | gemma4:26b-a4b-it-qat | 16 GB |
| 24 GB graphics card, best quality | Gemma 4 31B | gemma4:31b-it-qat | 19 GB |
Need audio input?
Choose the 12B, E4B or E2B. The 26B A4B and 31B do not take audio.
Not sure?
Start with the 12B. It reads text, images and audio and fits a 16 GB laptop. See the 12B guide.
Want search, not chat?
That is a different model: EmbeddingGemma 2, covered further down.
Sizes from Ollama's tag list, October 2026. Compare the models on the models page and in the model comparison; plan memory with the VRAM guide; scores are on the benchmarks page.
2Choose a download method
Every method below gets you Google's official weights. They differ in how much they do for you.
| Method | Best for | Terminal needed | Account needed |
|---|---|---|---|
| Ollama | The quickest start; also serves a local API | Yes, one command | No |
| LM Studio | People who prefer an app with buttons | No | No |
| Hugging Face | Getting the raw files; every official build | Yes | Sometimes |
| llama.cpp | Fine control over a local server | Yes | No |
| Python | Developers building with Transformers | Yes | Sometimes |
| Phone app | iPhone and Android | No | No |
Install Ollama
From ollama.com/download.
Pull the model
Swap the name for the size you chose in step 1.
Chat, or use the local API
Ollama serves every pulled model at
localhost:11434.
# Download only ollama pull gemma4:12b-it-qat # Download if needed, then chat ollama run gemma4:12b-it-qat # See what you have ollama list
Install LM Studio
From lmstudio.ai, for Windows, macOS or Linux.
Search for "Gemma"
Open the model search with Ctrl + Shift + M (Cmd on Mac).
Pick a size and click Download
The app shows each download's size. The 12B is 7.40 GB.
Load it and chat
Press Ctrl / Cmd + L and choose the model.
lms get google/gemma-4-12b-qat lms load google/gemma-4-12b-qat
Optional: LM Studio's command-line tool does the same thing. Models are listed on LM Studio's Gemma 4 page.
# 1. Install the command-line tool pip install -U "huggingface_hub[cli]" # 2. Download the official 4-bit GGUF - one file hf download google/gemma-4-12B-it-qat-q4_0-gguf \ --include "*.gguf" --local-dir ./gemma-gguf # Or the full-precision model, for serving and fine-tuning hf download google/gemma-4-12B-it --local-dir ./gemma-4-12B-it
Use hf download, not git clone, which can store a second copy of every file. If a repository asks you to accept terms, do that on its web page, then sign in with hf auth login.
All official repositories are in Google's Gemma 4 collection.
# llama.cpp downloads the file for you on first run ./build/bin/llama-server \ -hf google/gemma-4-12B-it-qat-q4_0-gguf \ --ctx-size 32768 --n-gpu-layers 99 --port 8080 # Ollama can run the same Hugging Face file ollama run hf.co/google/gemma-4-12B-it-qat-q4_0-gguf:Q4_0
Build llama.cpp first; the install guide covers it.
# pip install -U transformers torch accelerate from transformers import pipeline import torch # Downloads on first run, then reuses the copy 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": "Say hello in three languages."}], max_new_tokens=100) print(out[0]["generated_text"][-1]["content"])
This fetches the full-precision model: about 27 GB of memory for the 12B. For smaller hardware, use one of the 4-bit routes.
Install Google AI Edge Gallery
From the App Store (iOS 17 or later) or Google Play (Android 12 or later).
Download a model inside the app
Gemma 4 E2B is 2.58 GB and E4B is 3.66 GB. Use Wi-Fi.
Test in airplane mode
If it answers with the network off, it is running on your phone.
Full walkthroughs: mobile downloads and the Android page.
Other sources: Kaggle mirrors the weights and offers free notebooks, and Google Cloud's Model Garden deploys them without a download. All links are in the download hub. Not sure which runtime suits you? Try the runtime selector; Mac users see Mac setup.
3Read the file names
On Hugging Face each model has several repositories. The name tells you exactly what is inside, once you know how to read it.
-it
Instruction-tuned. This is the one that answers questions. Almost everyone wants it.
No suffix
The base model. It continues text instead of answering, and exists for people doing their own training.
-qat-q4_0-gguf
Google's official 4-bit build, a quarter of the size. The right choice for running locally.
-it-assistant
A small helper that speeds up the main model. Not a chat model; skip it unless you want that speed-up.
The two downloads most people need, for every size
| Model | To run locally - 4-bit GGUF | To serve or fine-tune - full precision | Ollama name |
|---|---|---|---|
| Gemma 4 31B | gemma-4-31B-it-qat-q4_0-gguf | gemma-4-31B-it | gemma4:31b-it-qat |
| Gemma 4 26B A4B | gemma-4-26B-A4B-it-qat-q4_0-gguf | gemma-4-26B-A4B-it | gemma4:26b-a4b-it-qat |
| Gemma 4 12B | gemma-4-12B-it-qat-q4_0-gguf | gemma-4-12B-it | gemma4:12b-it-qat |
| Gemma 4 E4B | gemma-4-E4B-it-qat-q4_0-gguf | gemma-4-E4B-it | gemma4:e4b-it-qat |
| Gemma 4 E2B | gemma-4-E2B-it-qat-q4_0-gguf | gemma-4-E2B-it | gemma4:e2b-it-qat |
All under google/ on Hugging Face. Mind the capital letters: 12B, E2B, 26B-A4B. Ollama uses its own lowercase names. Every other file type is explained on the models page
and under QAT builds; figures in technical specs.
4Check what you downloaded
Four quick checks before you rely on it.
Is the size about right?
The 12B at 4-bit should be around 7 GB. A much smaller file usually means an interrupted download.
Did it come from Google?
On Hugging Face, official files are under google/. Community re-uploads are usually fine but can be out of date or mislabelled.
Does it answer?
Ask a simple question. Gibberish or stray symbols point to an old or mismatched build.
Does it work offline?
Turn the network off and ask again. It should make no difference.
ollama list # is it there, and how big? ollama show gemma4:12b-it-qat # size, context and build details ollama run gemma4:12b-it-qat "Reply with the single word: ready"
5Run it and put it to work
What the model can do is on features and capabilities. Want to try before downloading anything? See the playground.
How to download EmbeddingGemma 2
EmbeddingGemma 2 is Google's open model for search and retrieval. It does not chat; it turns text, code, images, video and audio into vectors so you can find things by meaning. At 1.3 GB or less, it is a much smaller download than any Gemma 4 chat model.
Pick how much you need
The full model handles everything. If you only search text and code, the 270M version is a quarter of the size.
Download it
One command with Ollama or the Hugging Face tool.
Or let Python fetch it
The sentence-transformers library downloads it the first time you load it.
| Ollama name | Download | Handles |
|---|---|---|
embeddinggemma-2:270m | 378 MB | Text and code |
embeddinggemma-2:440m | 714 MB | Text and images |
embeddinggemma-2:570m | 990 MB | Text and audio |
embeddinggemma-2 | 1.3 GB | Everything |
# Ollama - the full model, 1.3 GB ollama pull embeddinggemma-2 # Ollama - text and code only, 378 MB ollama pull embeddinggemma-2:270m # Hugging Face hf download google/embeddinggemma-2
# pip install -U sentence-transformers transformers from sentence_transformers import SentenceTransformer # Downloads on first run model = SentenceTransformer("google/embeddinggemma-2") emb = model.encode("How do I download Gemma 4?", prompt_name="SearchQuery") print(emb.shape) # (768,)
Where it lives
google/embeddinggemma-2 on Hugging Face, Ollama and Kaggle. Apache 2.0.
One setting to avoid
Google warns the model does not work with float16. Use bfloat16 or float32.
Pair it with Gemma 4
EmbeddingGemma 2 finds the right material; a Gemma 4 model reads it and writes the answer.
Sizes from Ollama's tag list; steps follow Google's EmbeddingGemma 2 developer guide, which also lists LM Studio, LiteRT, MLX, vLLM and SGLang as supported. Specs, task prompts and more code are in this site's EmbeddingGemma 2 guide.
Troubleshooting downloads
| Problem | Likely cause | Fix |
|---|---|---|
| "Not found" on Hugging Face | The name is mistyped | Check the capitals: google/gemma-4-12B-it, E2B, 26B-A4B |
| "Unauthorized" or "gated" | The repository wants you signed in, or terms accepted | Accept on the model's web page, then run hf auth login |
| The download keeps stopping | An unstable connection | Run the same command again - Ollama and the Hugging Face tool resume where they stopped |
| The disk fills up | You fetched every file, or used git clone | Add --include "*.gguf", and remove models you do not use with ollama rm |
| It downloads but will not load | Not enough memory for that size | Use the 4-bit build, or the next size down |
| It loads but runs very slowly | It is running on the processor, not the graphics card | Choose a size that fits your graphics memory; see the VRAM guide |
| Odd symbols or broken tool calls | Weights from before the July 2026 refresh | Remove and download again: ollama rm, then ollama pull |
| The file does not open in my app | Wrong format for that app | GGUF for Ollama, LM Studio and llama.cpp; Safetensors for Transformers and vLLM |
The causes and fixes are this site's guidance, not an official list. More help in the install guide and the FAQ.
Download questions
Is Gemma 4 free to download?
Yes. The weights are free under Apache 2.0, including for commercial use. You pay only for the hardware you run them on - see pricing.
Do I need a Google account or an API key?
Not for Ollama, LM Studio or the phone app. Hugging Face may ask you to sign in with a free account. No payment or API key is needed to download.
How much disk space do I need?
For one 4-bit model, between about 4 GB and 19 GB depending on size. Full-precision files are several times larger: the 31B is 63 GB on Ollama.
Which file should I download?
To run it on your own machine, the official 4-bit build of the largest size that fits your memory. In Ollama that is the -it-qat name.
Can I use it offline after downloading?
Yes, completely. Once the files are on your device, no connection is needed.
Is it safe to download model files?
Stick to Google's official repositories, Ollama, LM Studio or Kaggle, and prefer the Safetensors and GGUF formats. See safety for responsible-use notes.
How do I download EmbeddingGemma 2?
Run ollama pull embeddinggemma-2, or hf download google/embeddinggemma-2. It is 1.3 GB, or 378 MB for the text-only version.
Should I still download Gemma 3?
Only for special cases, such as the tiny 270M model. For general use Gemma 4 is stronger at every size - see the Gemma 3 page and limitations.
Ready to download?
Every link, size and command in one place.