gemma-4-31B

Google (United States) · Multimodal

🧠 31.3B📄 256K context🔓 Open weights (downloadable)⚖️ apache-2.0

Which way is for me?

💻 On my own computer

No ready LM Studio version (GGUF) of this model has been published yet. Use the online way for now; this page is checked again every night and the steps will appear here when one comes out.

Similar models you can run on your computer right now:

🧑‍💻 For developers

vLLM

vllm serve google/gemma-4-31B

Transformers (Python)

from transformers import pipeline
pipe = pipeline("image-text-to-text", model="google/gemma-4-31B")
Words used here
GGUF
The file format LM Studio, Ollama and llama.cpp use to run a model.
Quantization (Q4, Q8)
Shrinking a model by storing numbers less precisely: Q4 smallest and slightly weaker, Q8 almost full, FP16 full.
VRAM
The graphics card's memory (or shared memory on a Mac); the model has to fit in it.
Context
The most text the model can see at once in a conversation (questions, answers and files).
Tokens per second
How fast the answer is written; 20 is about reading speed, 5 is slow.

From the Hugging Face model card

Hugging Face | GitHub | Launch Blog | Documentation | Technical Report License : Apache 2.0 | Authors : Google DeepMind

Limitations

Training Data; The quality and diversity of the training data significantly influence the model's capabilities. Biases or gaps in the training data can lead to limitations in the model's responses.; The scope of the training dataset determines the subject areas the model can handle effectively.; Context and Task Complexity; Models…

Benchmarks (from the model card)

Gemma 4 31BGemma 4 26B A4BGemma 4 12B UnifiedGemma 4 E4BGemma 4 E2BGemma 3 27B (no think)
MMLU Pro85.2%82.6%77.2%69.4%60.0%67.6%
AIME 2026 no tools89.2%88.3%77.5%42.5%37.5%20.8%
LiveCodeBench v680.0%77.1%72.0%52.0%44.0%29.1%
Codeforces ELO215017181659940633110
GPQA Diamond84.3%82.3%78.8%58.6%43.4%42.4%
Tau2 (average over 3)76.9%68.2%69.0%42.2%24.5%16.2%
HLE no tools19.5%8.7%5.2%---
HLE with search26.5%17.2%----

Source: Hugging Face · google/gemma-4-31B · License: apache-2.0

Hardware and running it

Local Weights are published and it runs on your own hardware.

Minimum Q4
21 GB
Recommended Q8
37.5 GB
Full quality FP16
75 GB

On common hardware

RTX 4060 · 8 GBWon't run
RTX 4090 · 24 GBUsableQ4 · ≈ 21–35 tokens/s
RTX 5090 · 32 GBUsableQ4 · ≈ 37–61 tokens/s
Mac M4 Max · 128 GBSlowFP16 · ≈ 3–5 tokens/s
H100 · 80 GBGreatFP16 · ≈ 19–32 tokens/s
8× H100 · 640 GBGreatFP16 · ≈ 150–260 tokens/s

Speeds are estimates. estimated speed for one user, from memory bandwidth

Links come from the vendor's official site and the model card the vendor published · Updated: