Text Generation
GGUF
llama-cpp
broken
deprecated
expert-pruning
glm
Mixture of Experts
pruning
reap
conversational
Instructions to use 0xSero/GLM-5.1-444B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use 0xSero/GLM-5.1-444B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="0xSero/GLM-5.1-444B-GGUF", filename="glm51-444b-reap-Q4_K_M-protected-00001-of-00019.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use 0xSero/GLM-5.1-444B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf 0xSero/GLM-5.1-444B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf 0xSero/GLM-5.1-444B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf 0xSero/GLM-5.1-444B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf 0xSero/GLM-5.1-444B-GGUF:Q4_K_M
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 0xSero/GLM-5.1-444B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf 0xSero/GLM-5.1-444B-GGUF:Q4_K_M
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 0xSero/GLM-5.1-444B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf 0xSero/GLM-5.1-444B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/0xSero/GLM-5.1-444B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use 0xSero/GLM-5.1-444B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "0xSero/GLM-5.1-444B-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": "0xSero/GLM-5.1-444B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/0xSero/GLM-5.1-444B-GGUF:Q4_K_M
- Ollama
How to use 0xSero/GLM-5.1-444B-GGUF with Ollama:
ollama run hf.co/0xSero/GLM-5.1-444B-GGUF:Q4_K_M
- Unsloth Studio
How to use 0xSero/GLM-5.1-444B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for 0xSero/GLM-5.1-444B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for 0xSero/GLM-5.1-444B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for 0xSero/GLM-5.1-444B-GGUF to start chatting
- Pi
How to use 0xSero/GLM-5.1-444B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf 0xSero/GLM-5.1-444B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "0xSero/GLM-5.1-444B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use 0xSero/GLM-5.1-444B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf 0xSero/GLM-5.1-444B-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:8080/v1 hermes config set model.default 0xSero/GLM-5.1-444B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use 0xSero/GLM-5.1-444B-GGUF with Docker Model Runner:
docker model run hf.co/0xSero/GLM-5.1-444B-GGUF:Q4_K_M
- Lemonade
How to use 0xSero/GLM-5.1-444B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull 0xSero/GLM-5.1-444B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.GLM-5.1-444B-GGUF-Q4_K_M
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -21,52 +21,52 @@ pipeline_tag: text-generation
|
|
| 21 |
|
| 22 |
# CRITICAL WARNING: EXPERIMENTAL GGUF EXPORT
|
| 23 |
|
| 24 |
-
This repository is an
|
| 25 |
-
It is
|
| 26 |
|
| 27 |
## What this repo is for
|
| 28 |
|
| 29 |
This repo is intended to host GGUF artifacts derived from the 40% REAP checkpoint:
|
| 30 |
|
| 31 |
-
-
|
| 32 |
-
-
|
| 33 |
|
| 34 |
## Source checkpoint
|
| 35 |
|
| 36 |
-
- Base model: [](https://huggingface.co/zai-org/GLM-5.1)
|
| 37 |
-
- Pruned checkpoint family: [](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP)
|
| 38 |
-
- Architecture:
|
| 39 |
-
- Routed experts per layer:
|
| 40 |
-
- Active params
|
| 41 |
|
| 42 |
## Quantization / protection strategy
|
| 43 |
|
| 44 |
-
The protected Q4 export is
|
| 45 |
|
| 46 |
### Kept higher precision
|
| 47 |
|
| 48 |
-
- Router gate / router bias:
|
| 49 |
-
- DSA indexer tensors:
|
| 50 |
-
- Attention tensors:
|
| 51 |
-
- Shared expert tensors:
|
| 52 |
-
- Dense-layer MLP tensors:
|
| 53 |
|
| 54 |
### Quantized lower precision
|
| 55 |
|
| 56 |
-
- Routed MoE expert projection tensors:
|
| 57 |
|
| 58 |
## Chat / reasoning notes
|
| 59 |
|
| 60 |
- The original GLM-5.1 chat template is preserved and embedded in GGUF metadata.
|
| 61 |
- This is a reasoning/chat model; serving stacks must handle GLM-style thinking correctly.
|
| 62 |
-
- Early serving probes suggest that
|
| 63 |
|
| 64 |
## Current status
|
| 65 |
|
| 66 |
- GGUF conversion: complete
|
| 67 |
- Protected Q4 export: complete
|
| 68 |
-
- Full benchmark suite:
|
| 69 |
-
- Public quality verdict:
|
| 70 |
|
| 71 |
## Intended usage
|
| 72 |
|
|
@@ -79,15 +79,21 @@ Research / experimentation only:
|
|
| 79 |
|
| 80 |
## Example llama.cpp serving
|
| 81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
-
|
| 84 |
-
If you need direct outputs rather than -heavy traces, disable thinking at request time in the client payload.
|
| 85 |
|
| 86 |
## Related repos
|
| 87 |
|
| 88 |
-
- BF16 pruned checkpoint: [](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP)
|
| 89 |
-
- 25% sibling: [](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP)
|
| 90 |
-
- 50% sibling: [](https://huggingface.co/0xSero/GLM-5.1-367B-A14B-REAP)
|
| 91 |
|
| 92 |
## Citation
|
| 93 |
|
|
|
|
| 21 |
|
| 22 |
# CRITICAL WARNING: EXPERIMENTAL GGUF EXPORT
|
| 23 |
|
| 24 |
+
This repository is an experimental GGUF export of a 40% REAP-pruned `zai-org/GLM-5.1` checkpoint.
|
| 25 |
+
It is not fully benchmarked or validated. Do not use it for production or make quality claims from it yet.
|
| 26 |
|
| 27 |
## What this repo is for
|
| 28 |
|
| 29 |
This repo is intended to host GGUF artifacts derived from the 40% REAP checkpoint:
|
| 30 |
|
| 31 |
+
- BF16 GGUF export
|
| 32 |
+
- Protected Q4_K_M GGUF export for `llama.cpp`-style serving
|
| 33 |
|
| 34 |
## Source checkpoint
|
| 35 |
|
| 36 |
+
- Base model: [`zai-org/GLM-5.1`](https://huggingface.co/zai-org/GLM-5.1)
|
| 37 |
+
- Pruned checkpoint family: [`0xSero/GLM-5.1-444B-A14B-REAP`](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP)
|
| 38 |
+
- Architecture: `GlmMoeDsaForCausalLM`
|
| 39 |
+
- Routed experts per layer: `256 -> 154`
|
| 40 |
+
- Active params per token: `~14B`
|
| 41 |
|
| 42 |
## Quantization / protection strategy
|
| 43 |
|
| 44 |
+
The protected Q4 export is not a blanket low-bit quantization. Sensitive tensors are kept at higher precision where possible.
|
| 45 |
|
| 46 |
### Kept higher precision
|
| 47 |
|
| 48 |
+
- Router gate / router bias: F32
|
| 49 |
+
- DSA indexer tensors: Q8_0
|
| 50 |
+
- Attention tensors: Q8_0
|
| 51 |
+
- Shared expert tensors: Q8_0
|
| 52 |
+
- Dense-layer MLP tensors: Q8_0
|
| 53 |
|
| 54 |
### Quantized lower precision
|
| 55 |
|
| 56 |
+
- Routed MoE expert projection tensors: Q4_K / Q6_K family
|
| 57 |
|
| 58 |
## Chat / reasoning notes
|
| 59 |
|
| 60 |
- The original GLM-5.1 chat template is preserved and embedded in GGUF metadata.
|
| 61 |
- This is a reasoning/chat model; serving stacks must handle GLM-style thinking correctly.
|
| 62 |
+
- Early serving probes suggest that unrestricted thinking can consume the entire generation budget before a final answer is emitted. Size `max_tokens` accordingly, or disable thinking per request if you need direct outputs.
|
| 63 |
|
| 64 |
## Current status
|
| 65 |
|
| 66 |
- GGUF conversion: complete
|
| 67 |
- Protected Q4 export: complete
|
| 68 |
+
- Full benchmark suite: still in progress
|
| 69 |
+
- Public quality verdict: not ready
|
| 70 |
|
| 71 |
## Intended usage
|
| 72 |
|
|
|
|
| 79 |
|
| 80 |
## Example llama.cpp serving
|
| 81 |
|
| 82 |
+
```bash
|
| 83 |
+
llama-server \
|
| 84 |
+
-m glm51-444b-reap-Q4_K_M-protected-00001-of-00019.gguf \
|
| 85 |
+
--jinja \
|
| 86 |
+
--reasoning on \
|
| 87 |
+
--reasoning-format deepseek
|
| 88 |
+
```
|
| 89 |
|
| 90 |
+
If you need direct outputs rather than reasoning-heavy traces, disable thinking at request time in the client payload.
|
|
|
|
| 91 |
|
| 92 |
## Related repos
|
| 93 |
|
| 94 |
+
- BF16 pruned checkpoint: [`0xSero/GLM-5.1-444B-A14B-REAP`](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP)
|
| 95 |
+
- 25% sibling: [`0xSero/GLM-5.1-555B-A14B-REAP`](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP)
|
| 96 |
+
- 50% sibling: [`0xSero/GLM-5.1-367B-A14B-REAP`](https://huggingface.co/0xSero/GLM-5.1-367B-A14B-REAP)
|
| 97 |
|
| 98 |
## Citation
|
| 99 |
|