How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
# Run inference directly in the terminal:
llama cli -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
# Run inference directly in the terminal:
llama cli -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
# Run inference directly in the terminal:
./llama-cli -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
# Run inference directly in the terminal:
./build/bin/llama-cli -hf pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
Use Docker
docker model run hf.co/pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF:Q2_K
Quick Links

GLM-5.2-REAP50-Q2_K-GGUF

GGUF of GLM-5.2, REAP expert-pruned (50%) + Q2_K (~129 GB) โ€” the maximum-context option for 2ร— 96 GB GPUs (192 GB), leaving ~60 GB for KV cache (โ‰ˆ2.5ร— the context room of the Q3_K build).

โš ๏ธ Quality: fragile โ€” most-degraded variant

This stacks REAP-50 (~+37.5% perplexity vs full GLM-5.2) with 2-bit Q2_K. It works but is delicate:

  • โœ… Coherent with sampling: "The capital city of France โ€ฆ is Paris."
  • โŒ Collapses into repetition (* * * *) with greedy / temp 0 decoding.

Use these sampler settings (or it may loop):

--temp 0.6 --repeat-penalty 1.1 --top-p 0.95

If you can spare the VRAM, the Q3_K_M build (~169 GB) is noticeably more robust. For real quality, use the MLX REAP-25 (+2.3% PPL) or full GLM-5.2.

Requires a patched llama.cpp

Stock llama.cpp can't load GLM-5.2 GGUFs yet (DSA indexer required on every layer; GLM-5.2 ships it on only some). Apply the included llama.cpp-glm-dsa-indexer-optional.patch (or wait for ggml-org/llama.cpp#24770), rebuild, then:

./build/bin/llama-cli -m GLM-5.2-REAP50-Q2_K-00001-of-00004.gguf --jinja -ngl 99 \
  --temp 0.6 --repeat-penalty 1.1 -p "..."

REAP-50 = top-128 of 256 experts/layer by saliency; runs as full MLA attention. Smoke-tested on Metal (~20 tok/s).

Downloads last month
1,973
GGUF
Model size
381B params
Architecture
glm-dsa
Hardware compatibility
Log In to add your hardware

2-bit

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

Model tree for pipenetwork/GLM-5.2-REAP50-Q2_K-GGUF

Base model

zai-org/GLM-5.2
Quantized
(124)
this model