Xylolabs

Gemma 4 31B IT GGUF

Base model Formats License Code

GGUF quants of google/gemma-4-31B-it for llama.cpp, on CUDA, Metal or CPU.

Files

File Size
gemma-4-31B-it-Q8_0.gguf 32.636 GB
gemma-4-31B-it-Q6_K.gguf 25.201 GB
gemma-4-31B-it-Q5_K_M.gguf 21.846 GB
gemma-4-31B-it-IQ4_XS-imat.gguf 16.736 GB
gemma-4-31B-it-Q3_K_M.gguf 15.287 GB
gemma-4-31B-it-IQ3_M.gguf 14.424 GB
gemma-4-31B-it-Q2_K.gguf 11.916 GB
mmproj-gemma-4-31B-it-F16.gguf 1.199 GB
mmproj-gemma-4-31B-it-Q8_0.gguf 0.810 GB

How to run

Use llama.cpp commit cd959bae99ff4bed22bef2604f45241c09bbb8c8 or later.

git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout cd959bae99ff4bed22bef2604f45241c09bbb8c8
cmake -B build -DCMAKE_BUILD_TYPE=Release        # add -DGGML_CUDA=ON for NVIDIA GPUs
cmake --build build -j --target llama-cli llama-server

./build/bin/llama-cli -m gemma-4-31B-it-Q5_K_M.gguf --jinja -c 8192 -ngl 99

Add --chat-template-kwargs '{"enable_thinking":false}' to answer directly. llama-server takes the same flags.

Accuracy

Against BF16 on English and Korean text.

Quant Size Mean KL top-1
Q8_0 32.636 GB 0.0015 97.36%
Q6_K 25.201 GB 0.0048 95.78%
Unsloth Q6_K 25.200 GB 0.0054 95.47%
Q5_K_M 21.846 GB 0.0116 94.02%
Unsloth Q5_K_M 21.660 GB 0.0118 93.68%
IQ4_XS-imat 16.736 GB 0.0493 88.24%
Q3_K_M 15.287 GB 0.1086 83.72%
IQ3_M 14.424 GB 0.1230 83.13%
Q2_K 11.916 GB 0.4023 71.12%
Mean KL divergence by quant file size Top-1 accuracy by quant file size

Which file for your hardware

Hardware Memory File Context
RTX 4090 / RTX 3090 24 GB gemma-4-31B-it-Q3_K_M.gguf (15.3 GB) 32K
RTX 5090 32 GB gemma-4-31B-it-Q5_K_M.gguf (21.8 GB) 32K
RTX 6000 Ada, or 2 x 24 GB 48 GB gemma-4-31B-it-Q8_0.gguf (32.6 GB) 64K
One H100 80 GB gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
RTX PRO 6000 Blackwell (GDDR7) 96 GB gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
DGX Spark 128 GB unified gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
Mac Studio M5 Max 128 GB unified gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
One H200 (HBM3e) 141 GB gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
One B200 192 GB gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
Mac Studio M5 Ultra 256 GB unified gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
Mac Studio M5 Ultra 512 GB unified gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K
One B300 (HBM3e) 288 GB gemma-4-31B-it-Q8_0.gguf (32.6 GB) 256K

License and notices

Apache License 2.0, copied in LICENSE. We converted the weights to GGUF and quantized them.

Updates

  • 2026-11-22: Added the accuracy table and charts, comparing this file with Unsloth's files.
  • 2026-11-19: Added more quants and the vision projectors.
  • 2026-11-15: First release of gemma-4-31B-it-Q8_0.gguf. Checked with llama.cpp cd959bae.
Downloads last month
2,739
GGUF
Model size
31B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Xylolabs/gemma-4-31B-it-GGUF

Quantized
(375)
this model

Collections including Xylolabs/gemma-4-31B-it-GGUF