Gemma 4 31B

Google DeepMind · open-weight model

31.27BCommercial use OK24 GB GPU / 32 GB Mac

Google's largest Gemma 4 model. It is strong at writing, coding and reasoning, and it reads documents, charts, screenshots and handwriting. A thinking mode can be switched on for harder problems.

What computer do you need?

At 4-bit (Q4_K_M, the usual choice for home use), Gemma 4 31B needs about 22 GB of memory: 24 GB GPU (e.g. RTX 4090) or Mac, 32 GB.

FormatWeightsMemory needed*Fits on
BF16 / FP16
Full precision, as published. Best quality, biggest.
about 63 GBabout 70 GB1x 80 GB data-center GPU (H100) or Mac, 128 GB; CPU only: PC/server, 128 GB RAM (slow)
Q8_0
8-bit. Practically the same quality as full precision.
about 33 GBabout 38 GB1x 80 GB data-center GPU (H100) or Mac, 64 GB; CPU only: PC, 64 GB RAM (slow)
Q6_K
6-bit. Very close to full quality.
about 26 GBabout 29 GB32 GB GPU (e.g. RTX 5090) or Mac, 64 GB; CPU only: PC, 64 GB RAM (slow)
Q5_K_M
5-bit. Small quality loss, good balance.
about 22 GBabout 26 GB32 GB GPU (e.g. RTX 5090) or Mac, 64 GB; CPU only: PC, 64 GB RAM (slow)
Q4_K_M
4-bit. The usual default for running at home; noticeable but small loss.
about 19 GBabout 22 GB24 GB GPU (e.g. RTX 4090) or Mac, 32 GB; CPU only: PC, 32 GB RAM (slow)

* Estimate = parameters × bits ÷ 8, plus about 10% overhead and about 1.0 GB for an 8K-token conversation. Longer contexts need more. CPU-only means it runs from normal RAM without a graphics card, which works but is much slower. How we calculate this.

Audio input exists only in the smaller Gemma 4 E2B, E4B and 12B models.

Key facts

Made byGoogle DeepMind
Hugging Facegoogle/gemma-4-31B-it
GitHubNot linked from the model card
Hugging Face repo createdMarch 11, 2026
LicenseApache 2.0: Free for personal and commercial use, including modifying and redistributing it. Keep the license and copyright notices.
Parameters31.27B total
ArchitectureDense (all parameters used for every token)
Context length262,144 tokens
InputText, Images, Video → text output
Languages35+ languages supported, pre-trained on 140+
Reasoning / thinking modeOptional (can be switched on/off)
Popularity5,431,138 downloads in the last month, 4,459 likes (Hugging Face, November 25, 2026)
Works withOllama, Transformers, vLLM

Compare

Which hardware runs Gemma 4 31B?

How to run Gemma 4 31B

With Ollama (easiest)

  1. Install Ollama from ollama.com/download (Windows, Mac, Linux).
  2. Open a terminal and download + start the model:
ollama run gemma4:31b

Ollama picks a ready-made quantized version (usually 4-bit). Library page: ollama.com/library/gemma4.

With LM Studio (no terminal)

  1. Install LM Studio.
  2. Open the search (Discover) tab and search for Gemma 4 31B; pick a GGUF or MLX version that fits your memory (see the table above).
  3. Click Download, then Load and start chatting.

On a GPU server with vLLM

pip install -U vllm
vllm serve google/gemma-4-31B-it

This gives you an OpenAI-compatible API on port 8000. Big models need several GPUs (add --tensor-parallel-size N) and the exact flags from the model card.

Can I run Gemma 4 31B?

Can I run Gemma 4 31B on laptop or PC with 16 GB RAM?

Not fully. It needs about 22 GB even at 4-bit, more than the roughly 11 GB a Laptop or PC with 16 GB RAM can use.

Can I run Gemma 4 31B on an RTX 3060 12 GB?

Not fully. It needs about 22 GB even at 4-bit, more than the roughly 11.5 GB an RTX 3060 12 GB can use.

Can I run Gemma 4 31B on an RTX 4090?

Yes. By our estimate it fits at Q4_K_M (about 22 GB) in the roughly 23.5 GB an RTX 4090 can use.

Can I run Gemma 4 31B on a Mac with 32 GB?

Yes. By our estimate it fits at Q4_K_M (about 22 GB) in the roughly 23 GB a Mac with 32 GB can use.

What is the minimum hardware for Gemma 4 31B?

At 4-bit it needs about 22 GB of memory: 24 GB GPU (e.g. RTX 4090) or Mac, 32 GB. These are estimates; longer conversations need more.

Sources

Similar-size models

← All open-source models