unsloth

gemma 4 31B it

gemma 4 31B it is a 30.7B dense gemma4 model from unsloth. Configured context length is 262,144 tokens. License: apache-2.0. Quant sizes are the GGUF file bytes published on Hugging Face when a file exists.

Parameters30.7B
Context256K
Attentionhybrid
Licenseapache-2.0

60 layers · 16 KV heads · head dim 256 · 50 sliding layers · GGUF repo · config

Quant file sizes

QuantFile sizeSource
BF1657.2 GBHugging Face file bytes
UD-Q8_K_XL32.6 GBHugging Face file bytes
Q8_030.4 GBHugging Face file bytes
UD-Q6_K_XL25.6 GBHugging Face file bytes
Q6_K23.5 GBHugging Face file bytes
UD-Q5_K_XL20.4 GBHugging Face file bytes
Q5_K_M20.2 GBHugging Face file bytes
Q5_K_S19.7 GBHugging Face file bytes
UD-Q4_K_XL17.5 GBHugging Face file bytes
Q4_K_M17.1 GBHugging Face file bytes
Q4_K_S16.2 GBHugging Face file bytes
IQ4_NL16.1 GBHugging Face file bytes
IQ4_XS15.2 GBHugging Face file bytes
Q4_117.8 GBHugging Face file bytes
Q4_016.1 GBHugging Face file bytes
UD-Q3_K_XL14.3 GBHugging Face file bytes
Q3_K_M13.7 GBHugging Face file bytes
Q3_K_S12.3 GBHugging Face file bytes
UD-IQ3_XXS11.0 GBHugging Face file bytes
UD-Q2_K_XL11.0 GBHugging Face file bytes
UD-IQ2_XXS7.95 GBHugging Face file bytes

On common machines

DeviceVerdictQuantSpeed
GeForce RTX 4060 Ti 8GBPartial offloadQ4_K_M3.3–4.5
GeForce RTX 3060 12GBTight fitUD-IQ2_XXS12–16
GeForce RTX 4060 Ti 16GBTight fitQ3_K_S9.2–13
GeForce RTX 4090Tight fitQ5_K_S22–30
GeForce RTX 5090Tight fitUD-Q6_K_XL28–38
Apple M4 ProTight fitIQ4_XS7.4–10
Apple M5Tight fitUD-IQ2_XXS5.1–6.9
CPU only · DDR5-5600Runs on CPUUD-Q5_K_XL1.6–2.2

Smallest devices that fit it fully

Run it

Commands for the GeForce RTX 4060 Ti 16GB estimate (Q3_K_S).

llama.cpp
llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q3_K_S -c 4096 -ngl 60
Ollama
ollama run gemma
LM Studio
lms get unsloth/gemma-4-31B-it-GGUF
# Then load quant Q3_K_S