Model · Z.ai

GLM-4.7-Flash

chatcoding
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

unsloth/GLM-4.7-Flash-GGUF @ 0d32489ecb9db6d2a4fc93bd27ef01519f95474d

FileBytes
GLM-4.7-Flash-Q4_K_M.gguf18,312,339,808

GGUF Q8_0

31.8 GB

unsloth/GLM-4.7-Flash-GGUF @ 0d32489ecb9db6d2a4fc93bd27ef01519f95474d

FileBytes
GLM-4.7-Flash-Q8_0.gguf31,842,799,968

MLX 4-bit

16.9 GB

mlx-community/GLM-4.7-Flash-4bit @ 1454cffb1a21737e162f508e5bc70be9def89276

FileBytes
model-00001-of-00004.safetensors5,357,453,035
model-00002-of-00004.safetensors5,363,462,379
model-00003-of-00004.safetensors5,363,462,333
model-00004-of-00004.safetensors768,064,072
Total16,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.

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.
Verified on