Gemma 4 31B
Gemma 4 31B loads in 20 GB at Q4_K_M, comfortably from 36 GB of memory, Macs included, starting at the MacBook Pro M5 Pro 48GB. Below is the memory math we ran for it, the smallest card that fits, and the fastest machine we track.
- Parameters
- 31B
- Format
- Q4_K_M
- Min memory
- 32 GB
- Best for
- Quality, Coding, Multimodal
How much memory does Gemma 4 31B need?
Gemma 4 31B is a 31B dense model built for quality, coding, multimodal. The weights alone take 20 GB at Q4_K_M; add context and the OS, and it belongs in the 36 GB memory class. Every number below comes from the ModelFit engine: speeds are estimates, labeled est., because we do not benchmark hardware ourselves.
KV = fp16 estimate (q8_0 cache roughly halves it). "Comfortable" = weights + KV within the engine's tiered budget (~70-85% of memory).
Which machines run Gemma 4 31B?
- Smallest GPU
- AMD Radeon RX 7900 XTXest. 36 tok/s · 24 GB VRAMtypical error 50%
- Fastest
- NVIDIA GeForce RTX 5090est. 73 tok/stypical error 5%
- Runs on a Mac?
- MacBook Pro M5 Pro 48GBest. 13 tok/stypical error 10%
Verdicts come from the same engine that powers our fit checker: memory capacity first, bandwidth for speed. How we compute these numbers · What typical error means · Hugging Face model card
Go deeper
- Every Gemma 4 31B quant by real GGUF file size
- Verdict: gemma4 31b q4 on rtx 3060
- Verdict: gemma4 31b q4 on rtx 4060
- Verdict: gemma4 31b q4 on rtx 4060 ti
- Verdict: gemma4 31b q4 on rtx 4070
- Verdict: gemma4 31b q4 on rtx 4070 ti super
- Verdict: gemma4 31b q4 on rtx 3090
- Verdict: gemma4 31b q4 on rtx 4090
- Verdict: gemma4 31b q4 on rtx 5070 ti
- Verdict: gemma4 31b q4 on rtx 5080
- Verdict: gemma4 31b q4 on rtx 5090
- Also tracked: Gemma 4 31B (Q8)(Q8_0, 30.9 GB, min 48 GB)
More Gemma models
11 pagesGet told when a better model fits your MacBook Air M5 16 GB
Get one email when a new open-weight model is a better fit for this machine.
For: MacBook Air M5 16 GB
You'll also get the weekly ModelFit email. By signing up you agree to our Privacy Policy. Unsubscribe from either email anytime, in one click.
Config reports
No speed test run for this model yet. Run the speed test: npx @modelfit/cli@latest bench
Share your config
Frequently asked questions
How much memory does Gemma 4 31B need?
20 GB for the Q4_K_M weights, plus ~4.0 GB of KV-cache at 16k context, about 24.0 GB total. Comfortable from 36 GB of VRAM or unified memory.
Does Gemma 4 31B run on a Mac?
Yes, from the MacBook Pro M5 Pro 48GB (est. 13 tok/s, typical error 10%). Unified memory means the RAM budget is the only limit.
What is the smallest GPU for Gemma 4 31B?
The AMD Radeon RX 7900 XTX (24 GB VRAM) is the smallest tracked card that runs Gemma 4 31B comfortably, est. 36 tok/s, typical error 50%.
Which Gemma 4 31B quant should I pick?
The tracked Q4_K_M build at 20 GB is the one we recommend for most machines. Every published build, ranked by real GGUF file size rather than a formula, is on the quant comparison page linked below.
Cite this page
ModelFit: Gemma 4 31B, specs, memory math and hardware verdicts. https://modelfit.io/models/gemma4-31b/ (dataset updated 2026-11-27, CC BY 4.0).