Models × Hardware · Google

What it takes to run Gemma 4 31B.

Gemma 4 31B is a dense model from Google, released in April 2026. It stores 31B parameters, ships as a 63 GB checkpoint (BF16) and reads up to 256K tokens of context. Here is how much memory it needs, which chips hold it, how fast it streams and what that hardware costs.

The short answers

Gemma 4 31B, in four questions.

How much memory does Gemma 4 31B need?

As released (BF16), the weights take 63 GB. Quantized, they shrink to 31 GB at FP8 and 17 GB at 4-bit. On top of that, every user needs a KV cache: 1.1 GB at 32K tokens of context with an FP8 cache, 5.8 GB at the full 256K.

Can Gemma 4 31B run on one GPU?

Yes. As released, with one user at 32K tokens, it fits on a single Ryzen AI Max+ 395 (128 GB), H100 or MI300X, among 29 chips and machines on our list.

Can I run Gemma 4 31B at home?

Yes. The cheapest desk-side setup that holds it as released is Ryzen AI Max+ 395 (128 GB), about $3k, streaming roughly 2.6 tokens per second to one user.

How fast does Gemma 4 31B run, and what does it cost?

The fastest setup on our list, MI455X (Helios), streams about 128 tokens per second to one user. The cheapest one that holds it, Ryzen AI Max+ 395 (128 GB) at about $3k, manages roughly 2.6.

Worked out for one user at 32K tokens with an FP8 KV cache, using the estimate explained on the Models page. Change any of that in the calculator below.

The calculator

Every chip, ranked for Gemma 4 31B.

Start with a question

Or build your own Every control below updates the link in your address bar, so a setup can be shared.

Parameters
31B · dense
Released as
BF16 · 63 GB checkpoint
Context window
262k tokens
Attention
10 global + 50 sliding-window (1024) layers
KV cache
430 MB per 1k tokens at FP8
Quality index
49.8 benchleader ↗ weights ↗
Weights As released63 GB
The official checkpoint, in whatever mix of formats the lab shipped.
KV cache FP8
Fastest for each user128 tok/s1 × MI455X (Helios)
Cheapest hardware that runs it$3k1 × Ryzen AI Max+ 395 (128 GB) · 2.6 tok/s each
Memory to hold it64 GB63 GB weights + 1.1 GB KV for 1 user
datacenter desk-side best speed for the moneypriced hardware that fits · both axes log
25102050100200$5k$10k$20k$50k$100kHARDWARE COST · purchase price of the whole setup →TOK / S PER USERMI455X (Helios)MI355XMI300X3× GeForce RTX 4090 (used)Ryzen AI Max+ 395 (128 GB)
HardwareSetupMemory usedTok/s per userTotal tok/sMax usersHardware$ / M tokens
MI455X (Helios)432 GB · 23.3 TB/s1 ×64 GB of 389 GB128memory-bound128299$73k$6.02
Vera Rubin NVL72288 GB · 19.2 TB/s1 ×64 GB of 259 GB115memory-bound115180$97k$8.92
Jalapeño232 GB · 15.4 TB/s1 ×64 GB of 209 GB100memory-bound100134not sold—
MTIA 400288 GB · 9.2 TB/s1 ×64 GB of 259 GB70memory-bound70180not sold—
TPU 8i288 GB · 8.6 TB/s1 ×64 GB of 259 GB67memory-bound67180not priced yet—
B200180 GB · 8 TB/s1 ×64 GB of 162 GB63memory-bound6391$40k$7.35
B300270 GB · 8 TB/s1 ×64 GB of 243 GB63memory-bound63165$53k$9.58
GB200 NVL72186 GB · 8 TB/s1 ×64 GB of 167 GB63memory-bound6396$48k$8.82
GB300 NVL72278 GB · 8 TB/s1 ×64 GB of 250 GB63memory-bound63172$53k$9.79
MI355X288 GB · 8 TB/s1 ×64 GB of 259 GB63memory-bound63180$28k$5.52
TPU7x Ironwood192 GB · 7.37 TB/s1 ×64 GB of 173 GB59memory-bound59101$12.00/hrent only$56rented
DGX Station GB300252 GB · 7.1 TB/s1 ×64 GB of 227 GB58memory-bound58150$95k$19
Maia 200216 GB · 7 TB/s1 ×64 GB of 194 GB57memory-bound57120not sold—
TPU 8t216 GB · 6.53 TB/s1 ×64 GB of 194 GB54memory-bound54120not priced yet—
MI325X256 GB · 6 TB/s1 ×64 GB of 230 GB50memory-bound50153sold, price not public—
TPU v5e16 GB · 820 GB/s8 ×64 GB of 115 GB48memory-bound4848$9.60/hrent only$56rented
TPU v6e Trillium32 GB · 1.64 TB/s4 ×64 GB of 115 GB48memory-bound4848$10.80/hrent only$63rented
MI300X192 GB · 5.3 TB/s1 ×64 GB of 173 GB45memory-bound45101$13k$3.60
Trainium3144 GB · 4.9 TB/s1 ×64 GB of 130 GB42memory-bound4261cloud only—
H200141 GB · 4.8 TB/s1 ×64 GB of 127 GB42memory-bound4259$27k$7.54
GeForce RTX 509032 GB · 1.79 TB/s3 ×64 GB of 86 GB41memory-bound4121$19k$6.71
Gaudi 3128 GB · 3.7 TB/s1 ×64 GB of 115 GB33memory-bound3348$16k$6.09
H10080 GB · 3.35 TB/s1 ×64 GB of 72 GB30memory-bound308$33k$12
Inferentia232 GB · 820 GB/s4 ×64 GB of 115 GB28memory-bound2848$4.32/hrent only$43rented
Trainium296 GB · 2.9 TB/s1 ×64 GB of 86 GB27memory-bound2721$2.23/hrent only$23rented
GeForce RTX 4090 (used)24 GB · 1.01 TB/s3 ×64 GB of 65 GB26memory-bound262$10k$6.03
TPU v5p95 GB · 2.77 TB/s1 ×64 GB of 86 GB26memory-bound2621$4.20/hrent only$45rented
GeForce RTX 3090 (used)24 GB · 936 GB/s3 ×64 GB of 65 GB24memory-bound242$4k$3.59
Radeon AI PRO R970032 GB · 640 GB/s3 ×64 GB of 86 GB18memory-bound1821$7k$6.11
RTX PRO 6000 Blackwell96 GB · 1.79 TB/s1 ×64 GB of 86 GB17memory-bound1721$17k$12
Arc Pro B7032 GB · 608 GB/s3 ×64 GB of 86 GB17memory-bound1721$6k$5.19
Mac Studio M5 Ultra (512 GB)512 GB · 1.2 TB/s1 ×64 GB of 384 GB12memory-bound12294$22k$22
Mac Studio M3 Ultra (512 GB)512 GB · 819 GB/s1 ×64 GB of 384 GB8.1memory-bound8.1294$9k$15
MacBook Pro M5 Max (128 GB)128 GB · 614 GB/s1 ×64 GB of 96 GB6.1memory-bound6.130$7k$12
DGX Spark128 GB · 273 GB/s1 ×64 GB of 109 GB2.8memory-bound2.842$7k$29
Ryzen AI Max+ PRO 495 (192 GB)192 GB · 273 GB/s1 ×64 GB of 159 GB2.8memory-bound2.888$7k$28
Ryzen AI Max+ 395 (128 GB)128 GB · 256 GB/s1 ×64 GB of 109 GB2.6memory-bound2.642$3k$16
Doesn’t fit
Mac mini M5 Pro (64 GB)Needs 64 GB; one device holds 48 GB.

Estimates, not benchmarks: decode time per token = max(bytes read ÷ 65% of peak bandwidth, FLOPs ÷ 50% of peak compute) plus a fixed per-layer cost, with bandwidth pooled only across a fast scale-up link. Real engines usually land below these numbers, most of all at batch 1 on many GPUs. $ / M tokens = hardware amortized over 3 years running 24/7 plus power at $0.15/kWh, or the cheapest public hourly rental for chips you can only rent, at your number of users.

Figure 1Every chip on the site ranked for Gemma 4 31B: how many it takes to hold the weights and every user’s cache, how fast each answer streams, and what a million tokens costs. Change the precision, the context or the number of users and watch the ranking reorder.
Compare

Models of a similar size.

All 39 models, and how the estimate works, are on the Models page.

Sources & notes

Architecture, parameter counts and checkpoint size from the google/gemma-4-31B-it repository on Hugging Face; release date and quality index from benchleader.com. Speeds and costs are first-order estimates, not measurements: real engines differ by framework, batch shape and kernel support.