Google: Gemma 4 31B
Google (United States) · Multimodal
Hugging Face | GitHub | Launch Blog | Documentation | Technical Report License : Apache 2.0 | Authors : Google DeepMind
Which way is for me?
🌐 Online, right now
- Open the model's page on OpenRouter: openrouter.ai/google/gemma-4-31b-it
- Sign in (with Google or email) and press Chat; you can talk to the model right there.
- This model has a free version on OpenRouter.
- Or try the free demo: huggingface-projects/gemma-4-31b-it
💻 On my own computer
- Download and install LM Studio (free): lmstudio.ai
- In LM Studio open Search (the magnifier) and type exactly:
ggml-org/gemma-4-31B-it-GGUF - From the list of files pick the version the check above suggested; if unsure, take Q4_K_M (compressed, slightly lower quality, less memory).
- Press Download, then Load, and start talking in Chat.
Or, if you use Ollama, this one command is enough:
ollama run hf.co/ggml-org/gemma-4-31B-it-GGUF🧑💻 For developers
vLLM
vllm serve google/gemma-4-31B-itTransformers (Python)
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="google/gemma-4-31B-it")llama.cpp
llama-server -hf ggml-org/gemma-4-31B-it-GGUFWords 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 31B | Gemma 4 26B A4B | Gemma 4 12B Unified | Gemma 4 E4B | Gemma 4 E2B | Gemma 3 27B (no think) | |
|---|---|---|---|---|---|---|
| MMLU Pro | 85.2% | 82.6% | 77.2% | 69.4% | 60.0% | 67.6% |
| AIME 2026 no tools | 89.2% | 88.3% | 77.5% | 42.5% | 37.5% | 20.8% |
| LiveCodeBench v6 | 80.0% | 77.1% | 72.0% | 52.0% | 44.0% | 29.1% |
| Codeforces ELO | 2150 | 1718 | 1659 | 940 | 633 | 110 |
| GPQA Diamond | 84.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 tools | 19.5% | 8.7% | 5.2% | - | - | - |
| HLE with search | 26.5% | 17.2% | - | - | - | - |
Source: Hugging Face · google/gemma-4-31B-it · License: apache-2.0
Hardware and running it
Cloud and local Available through an API, and its weights are published to run on your own hardware.
- Minimum Q4
- 21 GB
- Recommended Q8
- 37.5 GB
- Full quality FP16
- 75 GB
On common hardware
| RTX 4060 · 8 GB | Won't run | |
|---|---|---|
| RTX 4090 · 24 GB | Usable | Q4 · ≈ 21–35 tokens/s |
| RTX 5090 · 32 GB | Usable | Q4 · ≈ 37–61 tokens/s |
| Mac M4 Max · 128 GB | Slow | FP16 · ≈ 3–5 tokens/s |
| H100 · 80 GB | Great | FP16 · ≈ 19–32 tokens/s |
| 8× H100 · 640 GB | Great | FP16 · ≈ 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: