Skip to content

Gemma 4 31B on DGX Spark: VRAM, speed and fit

Gemma 4 31B at 8-bit runs on the DGX Spark 128 GB with 256K of context at about 5.7 tokens a second.

Text generation · Chat · Ollama / LM Studio

Runs comfortably · on DGX Spark 128 GB · 8-bit (Q8_0) · Ollama / LM Studio · Chat

GPU memory
50.3 GB
of 128 GB
Context
256K
auto
Speed
5.7 tok/s
4.2 when full
First reply
2.1 s
2K prompt

Where the memory goes

Model
30.9 GB
Context
10.8 GB
Overhead
936 MB
OS
7.7 GB
Free
77.7 GB
Memory
50.3 GB of 128 GB
Context
256K tokens · auto
Speed
5.7 tok/s · 4.2 when full
First reply
2.1 s for a 2K prompt
Running cost
$3.15/mo at home · $66/mo on a cloud 2× RTX A5000

Validation: Not validated

What Gemma 4 31B on DGX Spark was checked against
CheckTargetResultStatus
Fits in GPU memory120 GB usable42.6 GB neededPass
Headroom5% free77.7 GB free (65%)Pass
Context for chat16K or more256KPass
Writing speed15 tok/s or more5.7 tok/sFails
First replyunder 3 s, 2K prompt2.1 sPass

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
DGX Spark 128 GB
GPU can use
120 GB of 128 GB

Running cost

At home
$3.15/mo
144 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 22, 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

Gemma 4 31B on similar machines

  • M5 Ultra 512 GBRuns
  • Ryzen AI Max+ 395 64 GBRuns
  • Ryzen AI Max+ 395 128 GBRuns
  • RTX SparkRuns
  • Dual DGX SparkRuns
  • DGX Station GB300Runs
  • 2× RTX PRO 6000 BlackwellRuns
  • 4× RTX PRO 6000 BlackwellRuns

All machines: Gemma 4 31B VRAM requirements. Everything that runs here: what can the DGX Spark run?

Other models that run on DGX Spark

Questions

Can Gemma 4 31B run on DGX Spark?

Gemma 4 31B at 8-bit runs on the DGX Spark 128 GB with 256K of context at about 5.7 tokens a second.

Report VR-0N73JOM, calculated Nov 22, 2026 from published specs, not benchmarked.