Instructions to use zenlm/zen6-coder 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/zen6-coder 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/zen6-coder:Q8_0 # Run inference directly in the terminal: llama cli -hf zenlm/zen6-coder:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf zenlm/zen6-coder:Q8_0 # Run inference directly in the terminal: llama cli -hf zenlm/zen6-coder:Q8_0
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 zenlm/zen6-coder:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf zenlm/zen6-coder:Q8_0
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 zenlm/zen6-coder:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf zenlm/zen6-coder:Q8_0
Use Docker
docker model run hf.co/zenlm/zen6-coder:Q8_0
- LM Studio
- Jan
- vLLM
How to use zenlm/zen6-coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "zenlm/zen6-coder" # 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/zen6-coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/zenlm/zen6-coder:Q8_0
- Ollama
How to use zenlm/zen6-coder with Ollama:
ollama run hf.co/zenlm/zen6-coder:Q8_0
- Unsloth Desktop
- Pi
How to use zenlm/zen6-coder with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zenlm/zen6-coder:Q8_0
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "zenlm/zen6-coder:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use zenlm/zen6-coder with Docker Model Runner:
docker model run hf.co/zenlm/zen6-coder:Q8_0
- Lemonade
How to use zenlm/zen6-coder with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zenlm/zen6-coder:Q8_0
Run and chat with the model
lemonade run user.zen6-coder-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use zenlm/zen6-coder 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/zen6-coder:Q8_0
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 zenlm/zen6-coder:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use zenlm/zen6-coder with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf zenlm/zen6-coder:Q8_0
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:8080/v1 \ --custom-model-id "zenlm/zen6-coder:Q8_0" \ --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"
Zen6 Coder: 180B Frontier Agentic MoE
125B Base (6B Active) | 51B N-Gram Embedding | 4B MTP Drafter | 62.5 SWE-bench Pro
Architectural Highlights
Zen6 Coder is built on the next-generation Qwen3.8-Flash-Next architecture, representing a fundamental redesign of modern agentic language models:
- 180 Billion Total Parameters:
- 125B Base Language Model with only 6B Activated Parameters per token (10 routed experts + 1 shared expert out of 512 total experts).
- 51B N-Gram Embedding Table (20,000,000 bigrams/trigrams injected at layer 2) enabling ultra-dense lexical memory without compute overhead.
- 4B Multi-Token Prediction (MTP) Head (1 dedicated layer trained with multi-step prediction) delivering 1.3x–1.7x speculative acceleration out of the box.
- Hybrid Attention with QSA (Qwen Sparse Attention):
- 48 Layers arranged as $12 \times [3 \times (\text{Gated DeltaNet} \to \text{MoE}) \to 1 \times (\text{QSA} \to \text{MoE})]$.
- Gated DeltaNet: 48 linear attention heads for V, 16 heads for QK (head dim 128) handling constant-memory linear sequence progression.
- QSA: 24 Query heads, 2 KV heads (head dim 256, RoPE dim 64) with an MQA Indexer (4 Query / 1 Shared Key, budget 512 micro-blocks / 2048 tokens).
- Gated Residuals: 4 residual branches modulated by data-dependent read and write gates with bottleneck rank 320.
- Context Length: 262,144 tokens native, extensible to 1,000,000 tokens via YaRN (
rope_theta: 10000000, factor: 4.0).
State-of-the-Art Coding & Agent Benchmarks
Zen6 Coder establishes new state-of-the-art benchmarks in real-world software engineering and agentic coding:
| Benchmark | Zen6 Coder (Qwen3.8-Flash-Next) | Claude-Opus-4.6 (Max) | DeepSeek-V4-Flash-0731 | Qwen3.8-27B |
|---|---|---|---|---|
| SWE-bench Pro | 62.5% | 53.4% | 56.0% | 61.7% |
| DeepSWE 1.1 | 58.7% | — | 54.4% | 42.2% |
| SWE-bench Multilingual | 81.0% | 77.5% | — | 73.8% |
| LiveCodeBench v6 | 91.9% | 88.8% | 90.6% | 90.3% |
| NL2Repo-Bench | 48.1% | 47.6% | 54.2% | 42.3% |
| GPQA Diamond | 91.7% | 91.3% | 90.8% | 89.2% |
| Toolathlon Verified (Pass@1) | 73.5% | — | 70.3% | 67.1% |
| CoWorkBench | 73.9% | 68.2% | 45.1% | 70.7% |
Model Weights & Formats
This repository distributes Zen6 Coder in two primary formats:
1. Unsloth Dynamic GGUF (UD-IQ4_XS) + MTP
UD-IQ4_XS/Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf(10.9 MB)UD-IQ4_XS/Qwen3.8-Flash-Next-UD-IQ4_XS-00002-of-00003.gguf(49.8 GB)UD-IQ4_XS/Qwen3.8-Flash-Next-UD-IQ4_XS-00003-of-00003.gguf(43.8 GB)MTP/mtp-Qwen3.8-Flash-Next-Q8_0.gguf(Dedicated 4B MTP draft head)
2. Halogen W4B Format (AMD Strix Halo Native)
Optimized for AMD Ryzen AI Max+ 395 / Radeon 8060S (gfx1151) with ROCm and Halogen resumable prompt-state caching.
Hardware Benchmarks
AMD Strix Halo (8060S / 128GB Unified Memory)
| Context Length | Cold Prefill | Halogen Warm Resume | Speedup |
|---|---|---|---|
| 512 tokens | 454.4 tok/s | 0.1 ms | 7.89x |
| 2,048 tokens | 959.1 tok/s | 0.1 ms | 14.08x |
| 8,192 tokens | 1,298.4 tok/s | 0.1 ms | 36.31x |
| 16,384 tokens | 1,373.4 tok/s | 0.1 ms | 60.47x |
| 32,768 tokens | 1,451.8 tok/s | 0.1 ms | 79.45x |
Serving Instructions
Option A: AMD Strix Halo (Halogen Engine)
sudo podman run -d --name halogen --device=/dev/kfd --device=/dev/dri \
-v /models:/models -p 8731:8731 halogen:latest \
--model /models/qwen38-flash-next-w4b.hgn \
--port 8731 --max-tokens-cap 65536
Option B: Cross-Platform Llama.cpp with MTP Speculative Decoding
llama-server \
-m UD-IQ4_XS/Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf \
--draft-model MTP/mtp-Qwen3.8-Flash-Next-Q8_0.gguf \
--draft-max 3 \
-c 262144 \
--port 8000
Option C: Pure-Rust hanzo-engine
hanzo-engine serve \
--model zenlm/zen6-coder \
--format gguf \
--mtp MTP/mtp-Qwen3.8-Flash-Next-Q8_0.gguf \
--context-window 262144 \
--port 8000
Citation
@techreport{zenlm2026zen6coder,
title={Zen6 Coder: 180B-Class Hybrid Gated DeltaNet Sparse Attention MoE for Frontier Agentic Software Engineering},
author={Hanzo AI and Zen LM Team},
year={2026},
publisher={Zen LM / Hanzo AI}
}
- Downloads last month
- -
4-bit
8-bit
Model tree for zenlm/zen6-coder
Base model
Qwen/Qwen3.8-Flash-Next