Gemma 4 31B on 2× RTX 5090: VRAM, speed and fit
Gemma 4 31B at 8-bit runs on the 2× RTX 5090 with 256K of context at about 35 tokens a second.
Text generation · Chat · Ollama / LM Studio
Runs comfortably · on 2× RTX 5090 · 8-bit (Q8_0) · Ollama / LM Studio · Chat
- GPU memory
- 43.6 GB
- of 64.0 GB
- Context
- 256K
- auto
- Speed
- 35 tok/s
- 27 when full
- First reply
- 0.4 s
- 2K prompt
Where the memory goes
- Model
- 30.9 GB
- Context
- 10.8 GB
- Overhead
- 1.9 GB
- OS
- 0.0 GB
- Free
- 20.4 GB
- Memory
- 43.6 GB of 64.0 GB
- Context
- 256K tokens · auto
- Speed
- 35 tok/s · 27 when full
- First reply
- 0.4 s for a 2K prompt
- Running cost
- $17/mo at home · $66/mo on a cloud 2× RTX A5000
Validation: Validated
| Check | Target | Result | Status |
|---|---|---|---|
| Fits in GPU memory | 64.0 GB usable | 43.6 GB needed | Pass |
| Headroom | 5% free | 20.4 GB free (32%) | Pass |
| Context for chat | 16K or more | 256K | Pass |
| Writing speed | 15 tok/s or more | 35 tok/s | Pass |
| First reply | under 3 s, 2K prompt | 0.4 s | Pass |
Targets: a reply you can read along with, a first reply the use case tolerates, and 5% of memory left free. Calculated from published specs, not benchmarked.
The setup
- Model
- Gemma 4 31B
- Parameters
- 31.3B
- Precision
- 8-bit (Q8_0)
- Context
- 256K, auto
- Chats at once
- 1
- Use
- Chat
- Runs in
- Ollama / LM Studio
- Hardware
- 2× RTX 5090
- GPU can use
- 64.0 GB of 64.0 GB
Running cost
- At home
- $17/mo
- 770 W at the wall
- Renting instead
- $66/mo
- 2× RTX A5000 at $0.54/h
4 h a day, power at $0.18 per kWh, cloud at RunPod on-demand prices as of Nov 21, 2026.
How to run it
- Ollama
ollama run gemma4:31b- llama.cpp
llama-server -hf unsloth/gemma-4-31B-it-GGUF- vLLM
vllm serve google/gemma-4-31B-it- MLX (Mac)
mlx_lm.chat --model mlx-community/gemma-4-31b-it-4bit- Model card
- huggingface.co/google/gemma-4-31B-it
Gemma 4 31B on similar machines
- 2× RTX 4090Runs
- RTX PRO 5000 Blackwell 48 GBRuns
- RTX 6000 AdaRuns
- L40SRuns
- 4× RTX 3090Runs
- RTX PRO 6000 BlackwellRuns
- Mac mini M4 16 GBToo big
- Mac mini M4 24 GBJust misses
All machines: Gemma 4 31B VRAM requirements. Everything that runs here: what can the 2× RTX 5090 run?
Other models that run on 2× RTX 5090
Questions
Can Gemma 4 31B run on 2× RTX 5090?
Gemma 4 31B at 8-bit runs on the 2× RTX 5090 with 256K of context at about 35 tokens a second.
Report VR-09TRJLU, calculated Nov 22, 2026 from published specs, not benchmarked.