Model · Google

Gemma 4 31B IT

chatcoding
Parameters
31.3B
Context
262,144tokens at most
Smallest download
18.3 GBof 3 downloads
Licence
Apache-2.0Commercial use allowed

01Downloads

Exact files, exact bytes.

GGUF Q4_K_M

18.3 GB

unsloth/gemma-4-31B-it-GGUF @ c1ac76e99d5513b141e8adde7288b85c3f9c32ec

FileBytes
gemma-4-31B-it-Q4_K_M.gguf18,323,733,440

GGUF Q8_0

32.6 GB

unsloth/gemma-4-31B-it-GGUF @ c1ac76e99d5513b141e8adde7288b85c3f9c32ec

FileBytes
gemma-4-31B-it-Q8_0.gguf32,635,677,632

MLX 4-bit

18.4 GB

mlx-community/gemma-4-31B-it-4bit @ 696d436c404745a59f30e4939a658162b0a9e57f

FileBytes
model-00001-of-00004.safetensors5,366,617,512
model-00002-of-00004.safetensors5,361,642,573
model-00003-of-00004.safetensors5,367,276,094
model-00004-of-00004.safetensors2,316,480,497
Total18,412,016,676

02Runtimes

How to run it.

Commands as the catalogue records them. The results page adds a context length that matches your estimate.

03Facts

Licence, layout and sources.

Licence
Apache-2.0 (opens in a new tab)Commercial use allowed.
Weights repo
google/gemma-4-31B-it @ 842da3794eaa0b77d5f08bae87a17459d91ff475
Layout
60 layers10 × full attention, 4 KV heads × 512 dim · 50 × sliding window (1,024 tokens), 16 KV heads × 256 dim
Notes
Gemma 4 31B IT is a 31.3B-parameter model for chat and coding. It can read up to 262,144 tokens at once.Full-attention layers use their own KV-head count and a 512-wide head. Sliding layers use a 1,024-token window. Ollama downloads its own build of this quantisation. The listed artifact sizes are for the pinned Hugging Face files. GGUF sizes and llama.cpp commands cover text use. The optional vision projector is excluded. The listed MLX conversion documents mlx-vlm, so no MLX LM command is listed.
Verified on