OnPrem World地端世界

Gemma 4 31B IT

Gemma 4 31B IT by Google DeepMind (30.7B parameters). At Q4_K_M with an 8K context it needs about 19.8 GiB of memory. Google's dense 30.7B with image input and a 256K context, under Apache-2.0 (Gemma 3 used Google's own terms); it fits a 20–24 GB card at 4-bit.

Last updated: 2026-10-13

Model facts

DeveloperGoogle DeepMind
Parameters30.7B[src]
Native context262,144 tokens[src]
LicenceApache-2.0[src]
Commercial useYes
KV cache10 global + 50 sliding-window layers (1024 tokens)[src]
Released2026-03

Good for: chat · reasoning · coding · agents · image understanding · 24–32 GB GPUs

Run it

ollama run gemma4:31b

Memory needed

Weights + KV cache + runtime overhead, in GiB. Lower quantization = less memory, slightly lower quality.

Quantization4K context8K context32K context
Q4_K_M19.6 GiB19.8 GiB20.7 GiB
Q5_K_M22.8 GiB22.9 GiB23.9 GiB
Q6_K26.2 GiB26.3 GiB27.3 GiB
Q8_033.3 GiB33.5 GiB34.4 GiB
FP1661.5 GiB61.6 GiB62.6 GiB

Which hardware runs it

Best quantization that fits each device with a 8K context. Estimates, not benchmarks. See the methodology.

HardwareMemoryBest quanttok/s (est.)
GeForce RTX 509032 GBQ6_K50
GeForce RTX 409024 GBQ5_K_M32
Radeon RX 7900 XTX24 GBQ5_K_M31
Radeon RX 7900 XT20 GBQ4_K_M30
GeForce RTX 309024 GBQ5_K_M30
RTX 6000 Ada Generation48 GBQ8_021
RTX PRO 6000 Blackwell Workstation Edition96 GBFP1620
Radeon AI PRO R970032 GBQ6_K18
Arc Pro B7032 GBQ6_K17
RTX A600048 GBQ8_016
RTX PRO 5000 72GB Blackwell72 GBFP1615
Arc Pro B6024 GBQ5_K_M15
M5 Ultra512 GBFP1613
M5 Max (18-core CPU / 32-core GPU)36 GBQ6_K12
M4 Max (14-core CPU / 32-core GPU)36 GBQ6_K11
M3 Ultra512 GBFP168.7
M5 Max (18-core CPU / 40-core GPU)128 GBFP166.5
M5 Pro64 GBQ8_06.1
M4 Max (16-core CPU / 40-core GPU)128 GBFP165.8
M4 Pro64 GBQ8_05.4
M6 (24GB/32GB configurations, 170 GB/s)32 GBQ5_K_M5.1
M532 GBQ5_K_M4.6
RTX Spark (N1X) laptops & compact desktops128 GBFP162.9
DGX Spark128 GBFP162.7
Ryzen AI Max+ PRO 495 (Gorgon Halo) systems192 GBFP162.7
Ryzen AI Max+ 395 (Strix Halo) systems128 GBFP162.5
GeForce RTX 3060 (12 GB)12 GBDoesn't fit–
GeForce RTX 4060 Ti 16GB16 GBDoesn't fit–
GeForce RTX 4080 SUPER16 GBDoesn't fit–
GeForce RTX 5060 Ti 16GB16 GBDoesn't fit–
GeForce RTX 507012 GBDoesn't fit–
GeForce RTX 5070 Ti16 GBDoesn't fit–
GeForce RTX 508016 GBDoesn't fit–
Radeon RX 9060 XT 16GB16 GBDoesn't fit–
Radeon RX 9070 XT16 GBDoesn't fit–
Arc B58012 GBDoesn't fit–
M6 (16GB configuration, 153 GB/s)16 GBDoesn't fit–

Frequently asked questions

How much VRAM does Gemma 4 31B IT need?

With an 8K context, about 19.8 GiB at Q4_K_M and 33.5 GiB at Q8_0 (weights + KV cache + runtime overhead). Longer contexts need more memory for the KV cache.

Can Gemma 4 31B IT run on an GeForce RTX 4090?

Yes. Gemma 4 31B IT fits on the GeForce RTX 4090 (24 GB) at Q5_K_M with an 8K context, using about 22.9 GiB, at an estimated 32 tokens/s.

Can I run Gemma 4 31B IT on a Mac?

Yes. Gemma 4 31B IT fits on the M3 Ultra (96 GB) at FP16 with an 8K context, using about 61.6 GiB, at an estimated 8.7 tokens/s.

Can Gemma 4 31B IT be used commercially?

Gemma 4 31B IT is released under Apache-2.0. The licence allows commercial use (read its conditions).

Sources