Image-Text-to-Text
GGUF
llama.cpp
glm5_next
Mixture of Experts
reap
expert-pruning
imatrix
mtp
jetson-thor
conversational
Instructions to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with 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 patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Use Docker
docker model run hf.co/patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
- Ollama
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with Ollama:
ollama run hf.co/patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with Docker Model Runner:
docker model run hf.co/patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
- Lemonade
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.GLM-5.3-Flash-REAP50-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -9,13 +9,80 @@ tags:
|
|
| 9 |
- moe
|
| 10 |
- pruned
|
| 11 |
---
|
| 12 |
-
|
| 13 |
# GLM-5.3-Flash REAP-50 — GGUF
|
| 14 |
|
| 15 |
4-bit GGUF quantisations of a **50%-expert-pruned** GLM-5.3-Flash (321B → ~165B), built with
|
| 16 |
[REAP](https://github.com/CerebrasResearch/reap) saliency pruning and a measured output-scale
|
| 17 |
correction.
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
## ⚠️ Requires a patched llama.cpp — stock builds cannot load these files
|
| 20 |
|
| 21 |
GLM-5.3-Flash uses **mHC hyper-connections**: four parallel residual streams per layer, mixed by
|
|
|
|
| 9 |
- moe
|
| 10 |
- pruned
|
| 11 |
---
|
|
|
|
| 12 |
# GLM-5.3-Flash REAP-50 — GGUF
|
| 13 |
|
| 14 |
4-bit GGUF quantisations of a **50%-expert-pruned** GLM-5.3-Flash (321B → ~165B), built with
|
| 15 |
[REAP](https://github.com/CerebrasResearch/reap) saliency pruning and a measured output-scale
|
| 16 |
correction.
|
| 17 |
|
| 18 |
+
|
| 19 |
+
## Versions — which weights are which
|
| 20 |
+
|
| 21 |
+
Three selection passes have shipped. Each is a **different mask**, not a re-run of the same one,
|
| 22 |
+
and all keep **144 of 288 routed experts** (REAP50). What differs is *which* 144.
|
| 23 |
+
|
| 24 |
+
**Older weights are never overwritten.** The subdirectory tells you the version.
|
| 25 |
+
|
| 26 |
+
| version | method | healing | location in this repo |
|
| 27 |
+
|---|---|---|---|
|
| 28 |
+
| **v2** | refined REAP scalar mask | per-expert | **repo root** (the files beside this card) |
|
| 29 |
+
| **v3** | **HOPE** — interaction-aware, `protect_frac=0.04` | per-expert | subdirectory **`pass3-hope/`** |
|
| 30 |
+
|
| 31 |
+
> The repo name's `-v2` suffix is from the pass-2 release and is now just a name. Read the
|
| 32 |
+
> **path**, not the repo title: root = v2, `pass3-hope/` = v3.
|
| 33 |
+
|
| 34 |
+
v1 (the first published REAP mask) is superseded and not carried here.
|
| 35 |
+
|
| 36 |
+
### What v3 changed, and why
|
| 37 |
+
|
| 38 |
+
v2 ranked each expert alone and took the top-k. [arXiv 2609.18916] shows that is exactly HOPE with
|
| 39 |
+
the off-diagonal of `F` zeroed — two experts that duplicate each other are cheap to drop together,
|
| 40 |
+
two that complement each other are not, and a per-expert ranking cannot tell the difference. v3
|
| 41 |
+
minimises `pᵀFp`, the output error a prune set actually causes, over the same accumulators.
|
| 42 |
+
|
| 43 |
+
v2 also ran with **no domain floor** and lost ballast capability as a result. v3 sets
|
| 44 |
+
`protect_frac = 0.04`, measured off this run's own accumulators at the knee of worst-domain
|
| 45 |
+
retention against interaction cost — not guessed, and not inherited from MiMo's 0.08, which sits
|
| 46 |
+
where marginal efficiency is 0.43.
|
| 47 |
+
|
| 48 |
+
v3 is calibrated on **866,678,064 routed slots** (42 layers x 10 chunks) and heals to a median gain
|
| 49 |
+
of 0.766 across 42 layers with none skipped.
|
| 50 |
+
|
| 51 |
+
### Honest comparison
|
| 52 |
+
|
| 53 |
+
v1 -> v2 improved reconstruction residual by 2.5% but was **zero to within noise** end to end
|
| 54 |
+
(top-1 agreement 0.8370 -> 0.8369, SE 0.00075 on 241,516 held-out tokens). Per domain it was a
|
| 55 |
+
redistribution rather than a lift. **v3 has not yet been evaluated end to end** — when it has, the
|
| 56 |
+
numbers will be published here. Until then, treat v3 as "better-motivated selection, unproven
|
| 57 |
+
head-to-head", not as a measured improvement.
|
| 58 |
+
|
| 59 |
+
### Two caveats that apply to v3
|
| 60 |
+
|
| 61 |
+
- **No bio coverage.** The bio domain saw **0** of 866,678,064 routed slots, because every bio
|
| 62 |
+
source is excluded by licence or clinical scope (`camel-ai/biology`, `tattabio/OG`, `PubMedQA`).
|
| 63 |
+
Selection scored the 7 live domains. This is a property of the calibration corpus, not a bug, and
|
| 64 |
+
no amount of recomputation changes it. **Do not rely on this model for biomedical work.**
|
| 65 |
+
- **Long-context assurance is at 8192 tokens**, not the intended 16384. A single 16384-token
|
| 66 |
+
forward needs >93 GiB — attention is quadratic and one forward is indivisible, so no amount of
|
| 67 |
+
blocking helps on the build host. 8192 is still 4x the 2048 tokens the mask was calibrated at.
|
| 68 |
+
|
| 69 |
+
Full method write-up: **[glm-5.3-reap/wiki/31-pass3-hope-method.md](https://github.com/patrickbdevaney/glm-5.3-reap/blob/main/wiki/31-pass3-hope-method.md)**
|
| 70 |
+
|
| 71 |
+
### Download a specific version
|
| 72 |
+
|
| 73 |
+
```bash
|
| 74 |
+
# v3 (HOPE) Q4_K_M
|
| 75 |
+
hf download patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF \
|
| 76 |
+
--include "pass3-hope/*" --local-dir ./glm53-reap50-gguf-v3
|
| 77 |
+
|
| 78 |
+
# v2 quants - repo root (IQ3_M, IQ4_XS, Q3_K_M, Q4_K_M, Q4_K_S)
|
| 79 |
+
hf download patrickbdevaney/GLM-5.3-Flash-REAP50-GGUF \
|
| 80 |
+
GLM-5.3-Flash-REAP50-Q4_K_M.gguf
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
The v2 quants at root span IQ3_M through Q4_K_S. **v3 ships Q4_K_M only** for now. The `mmproj`,
|
| 84 |
+
`imatrix` and llama.cpp patch at root apply to both versions.
|
| 85 |
+
|
| 86 |
## ⚠️ Requires a patched llama.cpp — stock builds cannot load these files
|
| 87 |
|
| 88 |
GLM-5.3-Flash uses **mHC hyper-connections**: four parallel residual streams per layer, mixed by
|