Xylolabs

GLM-4.7-Flash GGUF

Base model Formats License Code

GGUF quants of zai-org/GLM-4.7-Flash for llama.cpp, on CUDA, Metal or CPU.

Files

  • GLM-4.7-Flash-<QUANT>.gguf is one file per quant.
  • Contents: Each file holds the full language model plus the original tokenizer and chat template. It also carries the MTP module.

-imat in a file name marks a quant made with an importance matrix.

Quant Size Mean KL vs BF16 Same top-1 vs BF16
IQ4_XS 16.88 GB 0.0868 87.80%
IQ4_XS-imat 16.71 GB 0.0845 88.34%

The reference is our BF16 pass in transformers. KL and top-1 cover 16,288 positions of English and Korean text.

Mean KL and same top-1 against BF16 by file size

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 GLM-4.7-Flash-IQ4_XS.gguf --jinja -c 8192 -ngl 99

llama-server takes the same flags.

Which file for your hardware

File size, plus the KV cache at the stated context (f16), plus about 2 GB of runtime overhead, must fit in 90% of the memory. All 47 layers keep a compressed attention cache of 576 values per token.

Hardware Memory Recommended file Context that fits Notes
RTX 4090 / RTX 3090 24 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 32K
RTX 5090 32 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
RTX 6000 Ada, or 2 x 24 GB 48 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K Two 24 GB cards need the layers split across them.
One H100 80 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
RTX PRO 6000 Blackwell (GDDR7) 96 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
DGX Spark 128 GB unified GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
Mac Studio M5 Max 128 GB unified GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
One H200 (HBM3e) 141 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
One B200 (about 180 GB usable in a DGX B200) 192 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
Mac Studio M5 Ultra 256 GB unified GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
Mac Studio M5 Ultra 512 GB unified GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K
One B300 (HBM3e; usable a little less) 288 GB GLM-4.7-Flash-IQ4_XS.gguf (16.9 GB) 128K

License and notices

MIT License, copied in LICENSE. We converted the weights to GGUF and quantized them. NOTICE names the source model and its copyright holder. Xylolabs is not affiliated with or endorsed by the original model's authors.

Citation

Cite the original GLM-4.7-Flash model card and its linked GLM technical report.

Updates

  • 2026-11-23: Added a hardware recommendation table.
  • 2026-11-15: First release of GLM-4.7-Flash-IQ4_XS-imat.gguf, GLM-4.7-Flash-IQ4_XS.gguf. Checked with llama.cpp cd959bae.
Downloads last month
2,233
GGUF
Model size
31B params
Architecture
deepseek2
Hardware compatibility
Log In to add your hardware

4-bit

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

Model tree for Xylolabs/GLM-4.7-Flash-GGUF

Quantized
(116)
this model

Collection including Xylolabs/GLM-4.7-Flash-GGUF