gemma-4-31B
Google (United States) · Multimodal
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:
- Gemma 4 31BQ4 21 GB
- medgemma-27b-itQ4 18.4 GB
- Gemma 3 27BQ4 18.4 GB
🧑💻 For developers
vLLM
vllm serve google/gemma-4-31BTransformers (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 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 · 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 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: