Model · Z.ai
GLM-4.7-Flash
- Parameters
- 31.2B total · 3B active
- Context
- 202,752tokens at most
- Smallest download
- 16.9 GBof 3 downloads
- Licence
- MITCommercial use allowed
01Downloads
Exact files, exact bytes.
GGUF Q4_K_M
18.3 GB| File | Bytes |
|---|---|
| GLM-4.7-Flash-Q4_K_M.gguf | 18,312,339,808 |
GGUF Q8_0
31.8 GB| File | Bytes |
|---|---|
| GLM-4.7-Flash-Q8_0.gguf | 31,842,799,968 |
MLX 4-bit
16.9 GB| File | Bytes |
|---|---|
| model-00001-of-00004.safetensors | 5,357,453,035 |
| model-00002-of-00004.safetensors | 5,363,462,379 |
| model-00003-of-00004.safetensors | 5,363,462,333 |
| model-00004-of-00004.safetensors | 768,064,072 |
| Total | 16,852,441,819 |
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/GLM-4.7-Flash-GGUF:Q4_K_MLM Studio Q4_K_M docs (opens in a new tab)
Open in LM Studio and search for unsloth/GLM-4.7-Flash-GGUF. Select Q4_K_M.
llama.cpp Q8_0 docs (opens in a new tab)
llama cli -hf unsloth/GLM-4.7-Flash-GGUF:Q8_0LM Studio Q8_0 docs (opens in a new tab)
Open in LM Studio and search for unsloth/GLM-4.7-Flash-GGUF. Select Q8_0.
MLX 4-bit docs (opens in a new tab)
mlx_lm.generate --model mlx-community/GLM-4.7-Flash-4bit --prompt "Hello"LM Studio 4-bit docs (opens in a new tab)
Open in LM Studio and search for mlx-community/GLM-4.7-Flash-4bit.
Ollama Q4_K_M docs (opens in a new tab)
ollama run glm-4.7-flash:q4_K_M
03Facts
Licence, layout and sources.
- Licence
- MIT (opens in a new tab)Commercial use allowed.
- Weights repo
- zai-org/GLM-4.7-Flash @ 7dd20894a642a0aa287e9827cb1a1f7f91386b67
- Layout
- 47 layers47 × latent attention (MLA), 512 latent + 64 rope dim
- Notes
- GLM-4.7-Flash is a 31.2B-parameter mixture-of-experts model for chat and coding, using 3B of them per token. It can read up to 202,752 tokens at once.Multi-head latent attention: each layer caches one compressed row of 512 + 64 values per token and no separate V. The pinned GGUF has key_length 576 and one KV head, and llama.cpp allocates only the K cache for it. mlx-lm caches the same latent. The next-token-prediction layer (num_nextn_predict_layers) is not in the cache estimate: llama.cpp leaves it out of a normal context. Ollama downloads its own build of this quantisation. The listed artifact sizes are for the pinned Hugging Face files.
- Sources
- huggingface.co/api/models/zai-org/GLM-4.7-Flash/revision/7dd20894a642a0aa287e9827cb1a1f7f91386b67 (opens in a new tab) retrieved huggingface.co/zai-org/GLM-4.7-Flash/raw/7dd20894a642a0aa287e9827cb1a1f7f91386b67/config.json (opens in a new tab) retrieved github.com/ggml-org/llama.cpp/blob/7b74cb92d67384373e87512f4ffd2dbef756b944/src/llama-kv-cache.cpp (opens in a new tab) retrieved github.com/ggml-org/llama.cpp/blob/7b74cb92d67384373e87512f4ffd2dbef756b944/src/models/deepseek2.cpp (opens in a new tab) retrieved huggingface.co/unsloth/GLM-4.7-Flash-GGUF/resolve/0d32489ecb9db6d2a4fc93bd27ef01519f95474d/GLM-4.7-Flash-Q4_K_M.gguf (opens in a new tab) retrieved huggingface.co/api/models/unsloth/GLM-4.7-Flash-GGUF/tree/0d32489ecb9db6d2a4fc93bd27ef01519f95474d?recursive=true (opens in a new tab) retrieved huggingface.co/api/models/mlx-community/GLM-4.7-Flash-4bit/tree/1454cffb1a21737e162f508e5bc70be9def89276?recursive=true (opens in a new tab) retrieved huggingface.co/mlx-community/GLM-4.7-Flash-4bit/blob/1454cffb1a21737e162f508e5bc70be9def89276/README.md (opens in a new tab) retrieved huggingface.co/zai-org/GLM-4.7-Flash/blob/7dd20894a642a0aa287e9827cb1a1f7f91386b67/README.md (opens in a new tab) retrieved ollama.com/library/glm-4.7-flash:q4_K_M (opens in a new tab) retrieved
- Verified on