Gemma 4 / Download / How to

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 ·

gemma4:12b-it-qat7.2 GB 1Choose 2Method 3Download 4Check 5Run
Five steps from nothing to a model that runs offline.
In a hurry

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.

  1. Install Ollama

    Download it from ollama.com/download for Windows, macOS or Linux and run the installer.

  2. 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
  3. 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.

Step 1

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 haveDownloadOllama nameDownload size
A phoneGemma 4 E2B or E4BIn the AI Edge Gallery app2.58 - 3.66 GB
8 GB of memoryGemma 4 E4Bgemma4:e4b-it-qat6.1 GB
16 GB of memoryGemma 4 12Bgemma4:12b-it-qat7.2 GB
24 GB graphics card, or a 32 GB MacGemma 4 26B A4Bgemma4:26b-a4b-it-qat16 GB
24 GB graphics card, best qualityGemma 4 31Bgemma4:31b-it-qat19 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.

Step 2

2Choose a download method

Every method below gets you Google's official weights. They differ in how much they do for you.

MethodBest forTerminal neededAccount needed
OllamaThe quickest start; also serves a local APIYes, one commandNo
LM StudioPeople who prefer an app with buttonsNoNo
Hugging FaceGetting the raw files; every official buildYesSometimes
llama.cppFine control over a local serverYesNo
PythonDevelopers building with TransformersYesSometimes
Phone appiPhone and AndroidNoNo
  1. Install Ollama

    From ollama.com/download.

  2. Pull the model

    Swap the name for the size you chose in step 1.

  3. 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
  1. Install LM Studio

    From lmstudio.ai, for Windows, macOS or Linux.

  2. Search for "Gemma"

    Open the model search with Ctrl + Shift + M (Cmd on Mac).

  3. Pick a size and click Download

    The app shows each download's size. The 12B is 7.40 GB.

  4. 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.

  1. Install Google AI Edge Gallery

    From the App Store (iOS 17 or later) or Google Play (Android 12 or later).

  2. Download a model inside the app

    Gemma 4 E2B is 2.58 GB and E4B is 3.66 GB. Use Wi-Fi.

  3. 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.

Step 3

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.

google/gemma-4-12B-it-qat-q4_0-gguf google/Publisherofficial gemma-4-Familygeneration 4 12B-Sizenote the B it-Tunedfor chat qat-q4_0-ggufBuild4-bit, GGUF
One repository name, five pieces of information.

-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

ModelTo run locally - 4-bit GGUFTo serve or fine-tune - full precisionOllama name
Gemma 4 31Bgemma-4-31B-it-qat-q4_0-ggufgemma-4-31B-itgemma4:31b-it-qat
Gemma 4 26B A4Bgemma-4-26B-A4B-it-qat-q4_0-ggufgemma-4-26B-A4B-itgemma4:26b-a4b-it-qat
Gemma 4 12Bgemma-4-12B-it-qat-q4_0-ggufgemma-4-12B-itgemma4:12b-it-qat
Gemma 4 E4Bgemma-4-E4B-it-qat-q4_0-ggufgemma-4-E4B-itgemma4:e4b-it-qat
Gemma 4 E2Bgemma-4-E2B-it-qat-q4_0-ggufgemma-4-E2B-itgemma4: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.

Step 4

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"
Downloaded before July 2026? Download again. Google refreshed the weights that month, fixing the chat template and tool calling, without changing any model names.
Step 5

5Run it and put it to work

💬

Chat with it

Settings and tips on the chat page and in prompting.

💻

Code with it

Connect your editor - see Gemma 4 coding.

🔌

Call it from your app

Local and hosted options on the API page.

🏢

Share it with a team

One server for everyone - see self-hosting.

What the model can do is on features and capabilities. Want to try before downloading anything? See the playground.

New · October 6, 2026

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.

Text Image Audio Video Embedding Gemma 2 one shared vector space query
Different formats, same meaning, neighbouring points.
  1. 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.

  2. Download it

    One command with Ollama or the Hugging Face tool.

  3. Or let Python fetch it

    The sentence-transformers library downloads it the first time you load it.

Ollama nameDownloadHandles
embeddinggemma-2:270m378 MBText and code
embeddinggemma-2:440m714 MBText and images
embeddinggemma-2:570m990 MBText and audio
embeddinggemma-21.3 GBEverything
# 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.

When it goes wrong

Troubleshooting downloads

ProblemLikely causeFix
"Not found" on Hugging FaceThe name is mistypedCheck the capitals: google/gemma-4-12B-it, E2B, 26B-A4B
"Unauthorized" or "gated"The repository wants you signed in, or terms acceptedAccept on the model's web page, then run hf auth login
The download keeps stoppingAn unstable connectionRun the same command again - Ollama and the Hugging Face tool resume where they stopped
The disk fills upYou fetched every file, or used git cloneAdd --include "*.gguf", and remove models you do not use with ollama rm
It downloads but will not loadNot enough memory for that sizeUse the 4-bit build, or the next size down
It loads but runs very slowlyIt is running on the processor, not the graphics cardChoose a size that fits your graphics memory; see the VRAM guide
Odd symbols or broken tool callsWeights from before the July 2026 refreshRemove and download again: ollama rm, then ollama pull
The file does not open in my appWrong format for that appGGUF 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.

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.

Top '