Model · Google
Gemma 4 31B IT
- 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| File | Bytes |
|---|---|
| gemma-4-31B-it-Q4_K_M.gguf | 18,323,733,440 |
GGUF Q8_0
32.6 GB| File | Bytes |
|---|---|
| gemma-4-31B-it-Q8_0.gguf | 32,635,677,632 |
MLX 4-bit
18.4 GB| File | Bytes |
|---|---|
| model-00001-of-00004.safetensors | 5,366,617,512 |
| model-00002-of-00004.safetensors | 5,361,642,573 |
| model-00003-of-00004.safetensors | 5,367,276,094 |
| model-00004-of-00004.safetensors | 2,316,480,497 |
| Total | 18,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.
llama.cpp Q4_K_M docs (opens in a new tab)
llama cli -hf unsloth/gemma-4-31B-it-GGUF:Q4_K_M --no-mmprojLM Studio Q4_K_M docs (opens in a new tab)
Open in LM Studio and search for unsloth/gemma-4-31B-it-GGUF. Select Q4_K_M.
llama.cpp Q8_0 docs (opens in a new tab)
llama cli -hf unsloth/gemma-4-31B-it-GGUF:Q8_0 --no-mmproj --hf-file gemma-4-31B-it-Q8_0.ggufLM Studio Q8_0 docs (opens in a new tab)
Open in LM Studio and search for unsloth/gemma-4-31B-it-GGUF. Select Q8_0.
LM Studio 4-bit docs (opens in a new tab)
Open in LM Studio and search for mlx-community/gemma-4-31B-it-4bit.
Ollama Q4_K_M docs (opens in a new tab)
ollama run gemma4:31b-it-q4_K_M
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.
- Sources
- huggingface.co/api/models/google/gemma-4-31B-it/revision/842da3794eaa0b77d5f08bae87a17459d91ff475 (opens in a new tab) retrieved huggingface.co/google/gemma-4-31B-it/raw/842da3794eaa0b77d5f08bae87a17459d91ff475/config.json (opens in a new tab) retrieved huggingface.co/api/models/unsloth/gemma-4-31B-it-GGUF/tree/c1ac76e99d5513b141e8adde7288b85c3f9c32ec?recursive=true (opens in a new tab) retrieved huggingface.co/api/models/mlx-community/gemma-4-31B-it-4bit/tree/696d436c404745a59f30e4939a658162b0a9e57f?recursive=true (opens in a new tab) retrieved huggingface.co/mlx-community/gemma-4-31B-it-4bit/blob/696d436c404745a59f30e4939a658162b0a9e57f/README.md (opens in a new tab) retrieved huggingface.co/google/gemma-4-31B-it/blob/842da3794eaa0b77d5f08bae87a17459d91ff475/README.md (opens in a new tab) retrieved ai.google.dev/gemma/docs/gemma_4_license (opens in a new tab) retrieved
- Verified on