Instructions to use uncrayon/zs-abyss-code-flash-320 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 uncrayon/zs-abyss-code-flash-320 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 uncrayon/zs-abyss-code-flash-320:Q4_K_M # Run inference directly in the terminal: llama cli -hf uncrayon/zs-abyss-code-flash-320:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf uncrayon/zs-abyss-code-flash-320:Q4_K_M # Run inference directly in the terminal: llama cli -hf uncrayon/zs-abyss-code-flash-320: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 uncrayon/zs-abyss-code-flash-320:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf uncrayon/zs-abyss-code-flash-320:Q4_K_M
Use Docker
docker model run hf.co/uncrayon/zs-abyss-code-flash-320:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use uncrayon/zs-abyss-code-flash-320 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "uncrayon/zs-abyss-code-flash-320" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "uncrayon/zs-abyss-code-flash-320", "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/uncrayon/zs-abyss-code-flash-320:Q4_K_M
- Ollama
How to use uncrayon/zs-abyss-code-flash-320 with Ollama:
ollama run hf.co/uncrayon/zs-abyss-code-flash-320:Q4_K_M
- Unsloth Desktop
- Pi
How to use uncrayon/zs-abyss-code-flash-320 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf uncrayon/zs-abyss-code-flash-320: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": "uncrayon/zs-abyss-code-flash-320:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use uncrayon/zs-abyss-code-flash-320 with Docker Model Runner:
docker model run hf.co/uncrayon/zs-abyss-code-flash-320:Q4_K_M
- Lemonade
How to use uncrayon/zs-abyss-code-flash-320 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull uncrayon/zs-abyss-code-flash-320:Q4_K_M
Run and chat with the model
lemonade run user.zs-abyss-code-flash-320-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use uncrayon/zs-abyss-code-flash-320 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf uncrayon/zs-abyss-code-flash-320: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 uncrayon/zs-abyss-code-flash-320:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use uncrayon/zs-abyss-code-flash-320 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf uncrayon/zs-abyss-code-flash-320: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 "uncrayon/zs-abyss-code-flash-320: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"
ZS-MoE-75.5B (uncrayon/small-qwen-3.8-flash-next-reap320)
ZS-MoE-75.5B is a coding-, vision-, compaction-, and long-context-calibrated REAP-320 expert-pruned variant of Qwen/Qwen3.8-Flash-Next-FP8, reducing routed experts from 512 → 320 per layer (-37.5%, removing 45.30B routed parameters) while preserving 100% of the dense backbone, Vision tower, 51.2B N-gram PLE table, and verbatim 512-expert MTP draft head — with zero fine-tuning drift.
- Parameter Breakdown:
75.50Brouted MoE (48 × 320) ·80.45Bnon-PLE (vs.125Bparent) ·131.65Btext incl.51.20BPLE (vs.177Bparent) ·~6.67Bactive per token. - All-Resident on 120 GiB Unified Memory (Strix Halo / EVO-X2 / Mac Studio):
Q4_K_M(82.74 GiB) + Visionmmproj-BF16(0.85 GiB) + verbatimmtp-Q8_0(3.85 GiB) +262K Q8_0 KV(~3.9 GiB) =~91.3 GiBtotal (~28 GiBfree OS headroom!). - Matches unpruned
512EBF16Flash-Nexton official DockerSWE-bench Multilingual(xhigh):40 / 50 (80.00%)officially resolved across41repos and8languages (90.91%among submitted patches;100%in C, C++, and Java — within1.0 ppof unpruned512EBF1681.0%!),125 / 175 (71.43%)raw (85.03%non-truncated,95.4%of unpruned64KFlash-Next,0loops,0empty stops) onLiveCodeBench v6,40 / 89 (44.94%)onTerminal-Bench 2.0(medium),24 / 24 (100%)on held-out 6-language multi-file repos,8 / 8 (100%)onWebGen-Bench:test, and192.0 tok/s(81.0%accept) with lossless MTP on a single 96 GB GPU!
Full Engineering Deep-Dive Series on
uncrayon.xyz:
- Part 1: Pruning Dense & MoE Coding LLMs from First Principles (SwiGLU Ridge-LS & REAP-320)
- Part 2: Building a 10,000-Trace Decontaminated, Multimodal Coding & Compaction Dataset
- Part 3: Post-Pruning Recovery on 1× 96 GB GPU (Logit-KL, 250K Offloading, 130B MoE LoRA, DPO vs. GRPO)
- Part 4: Unfiltered Dual-Track Scorecard, Engineering War Stories & Exact Cost Ledger
Pruning Method & Why Zero Fine-Tuning Won
| Component | Qwen/Qwen3.8-Flash-Next (Parent) |
ZS-MoE-75.5B (REAP-320) |
|---|---|---|
Routed Experts / Layer (48 layers) |
512 (Top-10 active) |
320 (Top-10 active, -37.5%) |
| Routed MoE Parameters | 120.80B |
75.50B (-45.30B) |
Non-PLE / Total Text (incl. 51.20B PLE) |
125.75B / 176.95B |
80.45B / 131.65B |
| Active Parameters / Token | ~6.67B |
~6.67B |
DeltaNet (36L), QSA (12L), Shared Experts, Hyper-Connections, PLE, Vision, 512E MTP |
Native | 100% Bit-Exact Verbatim |
- Multi-Domain Streaming REAP Calibration (
1.365Mtokens, 48/48 layers in15.4 GiBVRAM): Scored every routed expert by router-weighted output-norm saliency $\sum_t g_{l,e}(t),|\text{FFN}_{l,e}(x_t)|_2$ across 255 decontaminated multi-turn coding repos (6 languages), mid-episode compaction traces, Playwright UI vision screenshots (32multimodal samples),32Klong-context sequences, and math — retaining90.57%mean (85.18%worst-layer) saliency mass at320experts. - Bit-Exact FP8 Slicing →
Q4_K_MGGUF: Sliced routed expert tensors and router gates cleanly to320experts without re-quantizing intermediate FP8 weights, then quantized toQ4_K_M(82.74 GiBacross 2 HF-safe shards) while exporting verbatimmmproj-BF16.gguf(0.85 GiB) and verbatim 512-expertmtp-Q8_0.gguf(3.85 GiB). - Why We Shipped Zero-SFT Stage B1 Over Fine-Tuned Stage B2 (Honest Ablation): We also trained a lossless BF16-only LoRA Stage B2 variant (
348non-expert modules,0FP8 experts touched) on off-policy SFT + purethinking=OFFDPO. Despite slashing held-out Val NLL by-36.1%(-45.7%compaction) and lifting MTP acceptance to83.83%, live native-G4 execution regressed across Agentic fixtures (18/20 → 11/20), 6-lang Contest (13/24 → 9/24), and multi-file repos — proving that pure coding-calibrated REAP-320 (ZS-MoE-75.5B) is stronger without off-policy SFT drift. (Full ablation in Part 3 & Part 4.)
Unfiltered Benchmark Scorecard
1. Official Model-Card Coding & Docker Benchmarks (1:1 Matched)
| Benchmark | Setting / Harness | ZS-MoE-75.5B (320E Q4_K_M + mtp-Q8_0) |
ZS-Dense-22 (Sibling Dense) |
Unpruned Flash-Next (512E Q4, 64K¹ / BF16 Card) |
|---|---|---|---|---|
LiveCodeBench v6 (175/175) |
64K cap, T=1.0, top_p=0.95, top_k=20, Kaggle CPU exec |
125 / 175 (71.43%) |
119 / 175 (68.00%) |
74.86% (64K Q4¹) · 91.9% (BF16 Card) |
— Non-Truncated pass@1 |
0 repetition loops, 0 empty stops |
125 / 147 (85.03%) |
119 / 174 (68.39%) |
94.24% (64K Q4¹) |
| — Easy / Medium / Hard | 43 / 52 / 80 problems |
43/43 (100%) · 46/52 (88.5%) · 36/80 (45.0%) |
100% · 80.8% · 42.5% |
100% · 96.2% (non-trunc) |
| — LeetCode / AtCoder | 63 / 112 problems |
53/63 (84.13%) · 72/112 (64.29%) |
76.19% · 63.39% |
— |
Terminal-Bench 2.0 (89/89 Docker) |
harbor 0.27.0 + terminus-2, medium, max_tokens=8192 |
**40 / 89 (44.94%)**² |
29 / 89 (32.58%) |
— (27B Card TB 2.1: 73.0%) |
SWE-bench Multilingual (50/50 Docker, Official xhigh) |
mini-swe-agent 2.4.6 + swebench 5.0.2, xhigh, 250 steps, 1800s, 262K/slot |
40 / 50 (80.00%) (40/44 = 90.9% sub)² |
9 / 20 (45.00%) (20-repo slice) |
81.0% (full 300, mini-swe-agent xhigh) |
— Throttled medium Docker Ablation (50/50) |
Same 50 repos, medium, 50 steps, 600s, 64K/slot |
12 / 50 (24.00%) (12/18 = 66.7% sub) |
8 / 50 (16.00%) (57.1% sub) |
— |
¹ Unpruned 512E
Flash-Next(64Kcap,Q4) baseline from Scaling My Zero-Dependency Rust ROCm Engine to 177B Qwen3.8-Flash-Next.
² *Under officialmini-swe-agentxhighbudgets (250steps,1800s,max_tokens=32768,262K/slot),ZS-MoE-75.5Bresolved40 / 50 (80.00%)with0infra failures (C5/5, C++3/3, Java7/7, JS/TS7/8, Go5/7, Rust5/7, Ruby4/6, PHP4/7—40/42 = 95.2%among cleanly applied patches!). On the matched 20-repo subset,ZS-MoE-75.5Bscored16/20 (80.0%)vs.ZS-Dense-229/20 (45.0%).Terminal-Bench 2.0used tightermedium/8192-tok turn caps (27/89timeouts).*
2. Core Coding, Agentic, Long-Context, Vision & Frontend Eval Triad
| Benchmark | Community REAP-288 (58.9 GiB, No MTP) |
ZS-MoE-75.5B (82.74 GiB + Vision + MTP) |
|---|---|---|
Real Held-Out Multi-File 6-Lang Repos (24, Node 22) |
— | 24 / 24 (100.0%) (0% trunc, 6.0 avg turns) |
Live Mid-Episode Compaction Recovery (8, 6 langs) |
— | 8 / 8 (100.0%) (100% protocol valid, 0% trunc) |
Frontend Triad (8,192 tok, Playwright + VLM Judge) |
— | 8/8 (100%) WebGen · 2/8 (4.03/10) Artifacts · 8/8 (0 trunc) SWE-MM |
Agentic Tool-Use Fixtures (med, 20) |
— | 18 / 20 (90.0%) (7/8 tool-feasible, 7/7 honest stops, 0 unnec. calls) |
HumanEval (stride=5, med / OFF) |
33/33 / — |
33/33 (100.0%) / 32/33 (97.0%) |
Authored Multi-File Java + Rust (med) |
2 / 2 |
2 / 2 (100.0%) |
6-Lang Contest (24 tasks, med 6k cap / OFF) |
13/24 / — |
13/24 (54.2%) (Rust 3/4, TS 3/4) / 9/24 (37.5%) |
Vision Code-Feedback (10 PNGs) / Math (16) |
10/10 · 15/16 |
10/10 (100%) · 16/16 (100%) |
Long-Context (32K / 128K / 250K, 262K Q8_0 KV) |
9 / 9 |
9 / 9 (100.0%) (59.1–59.9 tok/s @ 250K on RTX PRO 6000) |
Speed & VRAM Telemetry (1K → 250K Unique-Nonce)
Measured via llama-server with mmproj-BF16.gguf loaded and unique prefix nonces (no KV-cache prefix reuse):
- NVIDIA A100-SXM4-80GB (
55.80 GiBplain /60.33 GiBMTP peak VRAM):- Plain
Q4_K_M:1K:67.1(823 msTTFT) ·8K:64.1·32K:56.1·128K:36.3·250K:25.1 tok/s - Lossless
mtp-Q8_0.gguf:1K:96.4 tok/s(79.6%,1.43×) ·8K:94.3(1.48×) ·32K:91.5(1.63×) ·128K:74.8(2.07×) ·250K:58.7 tok/s(2.33×!)
- Plain
- NVIDIA RTX PRO 6000 (96 GB): Plain
122.6 tok/s→192.0 tok/s(+56.6%,81.0%acceptance) with verbatimmtp-Q8_0.gguf!
Files & Quick-Start Serving (llama-server)
| File | Size | Notes |
|---|---|---|
gguf/Qwen3.8-Flash-Next-REAP-320-Q4_K_M-00001-of-00002.gguf |
41.91 GiB |
Shard 1 of 2 (Q4_K_M, 320 routed experts) |
gguf/Qwen3.8-Flash-Next-REAP-320-Q4_K_M-00002-of-00002.gguf |
40.82 GiB |
Shard 2 of 2 (82.74 GiB combined) |
gguf/mmproj-BF16.gguf |
0.85 GiB |
Verbatim Qwen3.8 Vision projector |
gguf/mtp-Q8_0.gguf |
3.85 GiB |
Verbatim 512-expert MTP speculative draft sidecar |
llama-server \
-m Qwen3.8-Flash-Next-REAP-320-Q4_K_M-00001-of-00002.gguf \
--mmproj mmproj-BF16.gguf \
-md mtp-Q8_0.gguf --spec-type draft-mtp --spec-draft-n-max 2 \
-ngl 99 -c 262144 -np 1 -fa on -ctk q8_0 -ctv q8_0 \
--jinja --reasoning-format deepseek
(Total desktop UMA footprint: 82.74 + 0.85 + 3.85 + ~3.9 KV ≈ 91.3 GiB / 120 GiB usable UMA on a 128 GB Strix Halo / EVO-X2.)
Recommended Sampling:
- Thinking Mode (
mediumorxhigh):temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0. - Non-Thinking (
enable_thinking=False):temperature=0.7, top_p=0.80, top_k=20, presence_penalty=1.5.
License & Attribution
- Derived from
Qwen/Qwen3.8-Flash-Next-FP8under the Qwen Community License 1.0. All downstream use must comply with the base model's Qwen Community License 1.0 terms and attribution requirements. - Calibration data was strictly decontaminated against
127held-out SWE-bench / SWE-bench_Multimodal repositories, all190frozen EVAL-04 tasks, and Terminal-Bench.
- Downloads last month
- 88
4-bit
8-bit