Text Generation
GGUF
English
Chinese
zen5
zen5-pro
zenlm
hanzo
imatrix
iq2_xxs
Mixture of Experts
1m-context
mtp
zen-5
conversational
Instructions to use zenlm/zen5-pro-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 zenlm/zen5-pro-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 zenlm/zen5-pro-gguf:F32 # Run inference directly in the terminal: llama cli -hf zenlm/zen5-pro-gguf:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf zenlm/zen5-pro-gguf:F32 # Run inference directly in the terminal: llama cli -hf zenlm/zen5-pro-gguf:F32
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 zenlm/zen5-pro-gguf:F32 # Run inference directly in the terminal: ./build/bin/llama cli -hf zenlm/zen5-pro-gguf:F32
Use Docker
docker model run hf.co/zenlm/zen5-pro-gguf:F32
- Llama new
- LM Studio
- Jan
- vLLM
How to use zenlm/zen5-pro-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zenlm/zen5-pro-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": "zenlm/zen5-pro-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zenlm/zen5-pro-gguf:F32
- Ollama
How to use zenlm/zen5-pro-gguf with Ollama:
ollama run hf.co/zenlm/zen5-pro-gguf:F32
- Unsloth Desktop
- Pi
How to use zenlm/zen5-pro-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zenlm/zen5-pro-gguf:F32
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": "zenlm/zen5-pro-gguf:F32" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use zenlm/zen5-pro-gguf with Docker Model Runner:
docker model run hf.co/zenlm/zen5-pro-gguf:F32
- Lemonade
How to use zenlm/zen5-pro-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zenlm/zen5-pro-gguf:F32
Run and chat with the model
lemonade run user.zen5-pro-gguf-F32
List all available models
lemonade list
- Hermes Agent
How to use zenlm/zen5-pro-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 zenlm/zen5-pro-gguf:F32
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 zenlm/zen5-pro-gguf:F32
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use zenlm/zen5-pro-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zenlm/zen5-pro-gguf:F32
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 "zenlm/zen5-pro-gguf:F32" \ --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"
readme: clean Zen5 branding
Browse files
README.md
CHANGED
|
@@ -2,63 +2,77 @@
|
|
| 2 |
license: mit
|
| 3 |
library_name: gguf
|
| 4 |
base_model: deepseek-ai/DeepSeek-V4-Flash
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
tags:
|
| 6 |
-
- gguf
|
| 7 |
-
- imatrix
|
| 8 |
-
- iq2_xxs
|
| 9 |
-
- deepseek
|
| 10 |
- zen5
|
|
|
|
| 11 |
- zenlm
|
| 12 |
- hanzo
|
| 13 |
-
-
|
|
|
|
|
|
|
| 14 |
- moe
|
| 15 |
- 1m-context
|
| 16 |
-
|
| 17 |
-
- en
|
| 18 |
-
- zh
|
| 19 |
-
pipeline_tag: text-generation
|
| 20 |
---
|
| 21 |
|
| 22 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
## Files
|
| 29 |
|
| 30 |
-
| File | Size |
|
| 31 |
|---|---|---|
|
| 32 |
-
| `DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix.gguf` | 81 GB |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## Run
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
|
| 38 |
```sh
|
| 39 |
git clone https://github.com/zenlm/zen5-engine
|
| 40 |
-
cd zen5-engine
|
| 41 |
-
make
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
./zen5 -p "
|
| 46 |
./zen5-server --ctx 100000 --kv-disk-dir /tmp/zen5-kv --kv-disk-space-mb 8192
|
| 47 |
```
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
## Performance (single-run Metal, `--ctx 32768 --nothink`)
|
| 52 |
|
| 53 |
| Machine | Prompt | Prefill | Generation |
|
| 54 |
|---|---|---:|---:|
|
| 55 |
| MacBook Pro M3 Max 128 GB | short | 58.5 t/s | 26.7 t/s |
|
| 56 |
| MacBook Pro M3 Max 128 GB | 11709 tok | 250.1 t/s | 21.5 t/s |
|
| 57 |
-
| Mac Studio M3 Ultra 512 GB |
|
|
|
|
| 58 |
| DGX Spark GB10 128 GB | 7047 tok | 343.8 t/s | 13.7 t/s |
|
| 59 |
|
| 60 |
## Acknowledgements
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
The base model is [`deepseek-ai/DeepSeek-V4-Flash`](https://huggingface.co/deepseek-ai) — thank you to the DeepSeek team for releasing it.
|
|
|
|
| 2 |
license: mit
|
| 3 |
library_name: gguf
|
| 4 |
base_model: deepseek-ai/DeepSeek-V4-Flash
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
- zh
|
| 9 |
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- zen5
|
| 11 |
+
- zen5-pro
|
| 12 |
- zenlm
|
| 13 |
- hanzo
|
| 14 |
+
- gguf
|
| 15 |
+
- imatrix
|
| 16 |
+
- iq2_xxs
|
| 17 |
- moe
|
| 18 |
- 1m-context
|
| 19 |
+
- mtp
|
|
|
|
|
|
|
|
|
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# Zen5 Pro
|
| 23 |
+
|
| 24 |
+
High-quality Zen5 tier that fits on a single 128 GB unified-memory machine. Sparse MoE with 284B total / 37B active parameters per token, 1M context, asymmetric routed-MoE quantization (routed `IQ2_XXS` up/gate, `Q2_K` down; shared experts, attention projections, routing logits and the LM head left at higher precision).
|
| 25 |
+
|
| 26 |
+
Runs on **a single 128 GB Apple Silicon (M3/M4 Max), DGX Spark (GB10), or H100 80 GB** with the [zen5-engine](https://github.com/zenlm/zen5-engine).
|
| 27 |
|
| 28 |
+
Part of the canonical Zen5 ladder:
|
| 29 |
|
| 30 |
+
| SKU | Hardware fit | This repo |
|
| 31 |
+
|---|---|---|
|
| 32 |
+
| `zen5-flash` | anything | [zen-5-flash-gguf](https://huggingface.co/zenlm/zen-5-flash-gguf) |
|
| 33 |
+
| `zen5-mini` | 32 GB | [zen-5-mini-gguf](https://huggingface.co/zenlm/zen-5-mini-gguf) |
|
| 34 |
+
| `zen5` (default) | 24 GB+ VRAM | [zen-5-gguf](https://huggingface.co/zenlm/zen-5-gguf) |
|
| 35 |
+
| **`zen5-pro`** | **128 GB single-machine** | **← you are here** |
|
| 36 |
+
| `zen5-max` | 512 GB / 8x H100 | [zen-5-max-gguf](https://huggingface.co/zenlm/zen-5-max-gguf) |
|
| 37 |
|
| 38 |
## Files
|
| 39 |
|
| 40 |
+
| File | Size | Notes |
|
| 41 |
|---|---|---|
|
| 42 |
+
| `DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix.gguf` | 81 GB | **Recommended** — IQ2_XXS routed-MoE with imatrix calibration |
|
| 43 |
+
| `DeepSeek-V4-Flash-Layers37-42Q4KExperts-OtherExpertLayersIQ2XXSGateUp-Q2KDown-AProjQ8-SExpQ8-OutQ8-chat-v2-imatrix-fixed.gguf` | 91 GB | Mixed-quant — higher quality at the boundary layers, fits 128 GB |
|
| 44 |
+
| `DeepSeek-V4-Flash-Q4KExperts-F16HC-F16Compressor-F16Indexer-Q8Attn-Q8Shared-Q8Out-chat-v2-imatrix.gguf` | 153 GB | Q4-imatrix — for 256 GB+ machines (Mac Studio M3 Ultra) |
|
| 45 |
+
| `DeepSeek-V4-Flash-MTP-Q4K-Q8_0-F32.gguf` | 3.5 GB | Optional speculative-decoding draft heads (use with `--mtp`) |
|
| 46 |
+
| `DeepSeek-V4-Flash-IQ2XXS-w2Q2K-AProjQ8-SExpQ8-OutQ8-chat-v2.gguf` | 81 GB | Legacy non-imatrix Q2 — prefer the `-imatrix` version above |
|
| 47 |
+
| `DeepSeek-V4-Flash-Q4KExperts-F16HC-F16Compressor-F16Indexer-Q8Attn-Q8Shared-Q8Out-chat-v2.gguf` | 153 GB | Legacy non-imatrix Q4 — prefer the `-imatrix` version above |
|
| 48 |
|
| 49 |
## Run
|
| 50 |
|
| 51 |
+
Hosted via the Hanzo gateway (`api.hanzo.ai`) as `zen5-pro`.
|
| 52 |
+
|
| 53 |
+
Local with the [zen5-engine](https://github.com/zenlm/zen5-engine):
|
| 54 |
|
| 55 |
```sh
|
| 56 |
git clone https://github.com/zenlm/zen5-engine
|
| 57 |
+
cd zen5-engine && make # macOS Metal
|
| 58 |
+
# or: make cuda-spark # DGX Spark GB10
|
| 59 |
+
# or: make cuda-generic # generic CUDA box
|
| 60 |
+
|
| 61 |
+
./download_model.sh q2-imatrix # pulls this repo's recommended GGUF
|
| 62 |
+
./zen5 -p "Hello"
|
| 63 |
./zen5-server --ctx 100000 --kv-disk-dir /tmp/zen5-kv --kv-disk-space-mb 8192
|
| 64 |
```
|
| 65 |
|
| 66 |
+
## Performance (Metal, `--ctx 32768 --nothink`)
|
|
|
|
|
|
|
| 67 |
|
| 68 |
| Machine | Prompt | Prefill | Generation |
|
| 69 |
|---|---|---:|---:|
|
| 70 |
| MacBook Pro M3 Max 128 GB | short | 58.5 t/s | 26.7 t/s |
|
| 71 |
| MacBook Pro M3 Max 128 GB | 11709 tok | 250.1 t/s | 21.5 t/s |
|
| 72 |
+
| Mac Studio M3 Ultra 512 GB | short | 84.4 t/s | 36.9 t/s |
|
| 73 |
+
| Mac Studio M3 Ultra 512 GB | 12018 tok (Q4) | 448.8 t/s | 26.6 t/s |
|
| 74 |
| DGX Spark GB10 128 GB | 7047 tok | 343.8 t/s | 13.7 t/s |
|
| 75 |
|
| 76 |
## Acknowledgements
|
| 77 |
|
| 78 |
+
Built on [`deepseek-ai/DeepSeek-V4-Flash`](https://huggingface.co/deepseek-ai). The asymmetric routed-MoE quantization scheme, GGUF layout, MTP draft-token support, imatrix calibration, and inference engine all come from Salvatore Sanfilippo's [`antirez/ds4`](https://github.com/antirez/ds4) project, on whose shoulders this distribution stands. MIT-licensed; both `antirez/ds4` and [`ggml-org/llama.cpp`](https://github.com/ggml-org/llama.cpp) copyrights are preserved in the `zen5-engine` LICENSE file.
|
|
|
|
|
|