Every single ZeroDigest YMQ release is handcrafted and manually calibrated via intensive importance-matrix sweeps to protect critical logic pathways. This project is entirely independent research—no automation bots, no corporate backers, and no external funding. Running multi-hour compute arrays consumes massive local infrastructure overhead out-of-pocket. Consider checking out our compiler or supporting our compute costs!
👉 Developer Resources & Support Paths:
🛠️ View Compiler Source on GitHub (YMQ v2.0) 🚀 Deploy weights on RunPod Cloud Compute (Affiliate Link) ☕ Support the Lab on Ko-fi (One-Time / Monthly) 🧡 BTC:14Fmic9z3VA1ZU11bWoP6JtU7csTAApwZo
🔷 ETH/USDT: 0xbe4cdc3adc27c21ef1c27c6b403311db07b35ed2
Base Model: Qwen/Qwen3.8-Flash-Next REAP Manifest: AnonimousA/seleccion_mass_K320.json Inspired By: AnonimousA/Qwen3.8-Flash-Next-REAP-320-GGUF
This repository features a custom expert-pruned and architecture-aware quantized build of Qwen3.8-Flash-Next, processed through a two-stage pipeline:
seleccion_mass_K320.json) surgically selects the top 320 expert slots per MoE routing layer from the original dense expert pool, permanently pruning the least-activated pathways. This is not a uniform prune—selections are driven by per-token activation mass collected across calibration prompts.Q6_K / IQ4_NL shields while compressing low-activity background experts down to IQ2_XS.These builds natively support parallel multi-token prediction (MTP) speculation engines and utilize high-context optimization parameters tailored for demanding code development API execution environments (such as RooCode/Aider).
| Preset Tier | Total Size | Target Usage / Memory VRAM Profile | Cognitive Real-World Coding Quality |
|---|---|---|---|
XS-Pro |
~63 GB | 💎 48GB+ Workstation Driver | The REAP MoE High-Context. Q8_0 shared-expert armor and Q5_K attention shields protect every routing decision. The surviving expert pool is graded across four precision tiers — individually tuned per layer via importance-matrix log-space clustering. No uniform blanket compression. |
M-TI |
~63 GB | 💎 48GB+ Workstation Driver (Recommended) | The REAP MoE High-Context. Q8_0 shared-expert armor and Q5_K attention shields protect every routing decision. The surviving expert pool is graded across four precision tiers — Q6_K ➔ IQ4_NL ➔ IQ3_XXS ➔ IQ2_XS (floor) — individually tuned per layer via importance-matrix log-space clustering. No uniform blanket compression. |
The following metrics demonstrate the mathematical quality preservation of the REAP + YMQ-Compiler pipeline compared to standard linear quantization layouts. Tested natively via llama-perplexity over a 4096 context window using the official WikiText-2 test corpus.
| Model Variant | File Size | Perplexity | Mean KL-Divergence | Internal Bit Gradient (High ➔ Mid ➔ Low ➔ Floor) |
|---|---|---|---|---|
XS-Pro |
~63 GB | TBD |
TBD |
Expert Gradient: IQ4_XS ➔ IQ3_S ➔ IQ2_S ➔ IQ2_XS (floor) · Armor: Q8_0 / Q5_K |
M-TI |
~63 GB | TBD |
TBD |
Expert Gradient: Q6_K ➔ IQ4_NL ➔ IQ3_XXS ➔ IQ2_XS (floor) · Armor: Q8_0 / Q5_K |
ℹ️ Why so large? Qwen3.8-Flash-Next is a massive sparse Mixture-of-Experts architecture with hybrid Mamba SSM state-space tracking. Even after REAP expert pruning (K=320 per layer) and aggressive 2-bit expert floors, the surviving expert pool keeps the file at ~63 GB. The active parameter count per token remains small (~5B), so inference speed stays comparable to much smaller dense models once weights are resident in memory.
⚠️ REAP Pruning Trade-Off: REAP expert pruning is not free. Permanently removing ~40% of the least-activated expert slots means the knowledge those experts carried is gone forever—it cannot be recovered by quantization or fine-tuning. Expect noticeable degradation on broad general-knowledge tasks, rare factual recall, and domain-specific queries that relied on the pruned pathways. The K=320 selection threshold keeps the experts that fire most often across calibration prompts, but "rarely activated" is not the same as "useless." For coding, structured reasoning, and agent-loop workloads—where the surviving expert pathways carry the bulk of the signal—this build remains a strong and practical driver. If your primary use case is code generation, refactoring, or long-context agent execution, the pruned model handles those tasks reliably. For open-ended creative writing or encyclopedic recall, expect the full unpruned model to perform better.
Standard quantization pipelines treat every expert in a Mixture-of-Experts model as equally important, applying a uniform bit-depth across the entire network. This wastes valuable VRAM on dormant background experts that rarely activate, while starving the critical routing pathways that actually carry reasoning signal.
REAP (Router-based Expert Activation Pruning) solves this at the architectural level:
seleccion_mass_K320.json manifest captures the top-320 highest-mass expert indices per layer.Q6_K armor, mid-tier layers are elevated to IQ4_NL, lower-importance blocks drop to IQ3_XXS, and dormant background layers are safely compressed to the IQ2_XS floor.The result is a model that retains the reasoning capacity of the full 113B-parameter dense MoE within a ~63 GB footprint, with per-layer quantization budgets precisely matched to actual cognitive load.
Standard quantization pipelines apply a blunt, uniform bit-depth across every single layer in a model. This wastes valuable VRAM on silent background layers while starving critical logic anchors of necessary precision.
The YMQ-Compiler implements a philosophy similar to advanced weight-tuning frameworks like Intel's AutoRound:
The result is a custom mixed-precision portfolio that matches the low perplexity and high context stability of premium optimized quants (like AutoRound), while maintaining an ultra-lightweight, high-speed cache footprint.
Standard quantization pipelines treat network tensors like a flat dataset, applying destructive blanket low-bit compression to delicate tracking networks. The YMQ-Compiler solves high-context logic decay by parsing model files dynamically via an automated, multi-tiered protection matrix:
ffn_*_exps tensors, the YMQ-Compiler reads the importance manifest and assigns each of the 48 transformer blocks a unique expert precision tier across a four-grade gradient: HIGH (Q6_K) → MID (IQ4_NL) → LOW (IQ3_XXS) → FLOOR (IQ2_XS). High-mass layers like blk.0, blk.4, blk.6, and blk.47 receive full Q6_K armor, while dormant background blocks safely compress to the IQ2_XS floor.Q8_0/Q5_K, keeping context tracking perfectly noise-free across the hybrid architecture.ffn_gate_shexp, ffn_up_shexp, ffn_down_shexp) are locked at Q8_0—effectively lossless—to preserve the reasoning backbone that every token traverses regardless of expert routing decisions.This build was produced by a custom two-stage pipeline:
| Stage | Tool | Description |
|---|---|---|
| 1 — Expert Pruning | ymq_reap_gguf.py |
Reads the seleccion_mass_K320.json manifest and permanently prunes all non-selected expert slots from the base BF16 checkpoint. Reduces expert pool density while preserving activation-mass pathways. |
| 2 — Importance-Aware Quantization | ymq-compiler |
Applies per-layer precision tiers derived from importance-matrix log-space clustering. Shared experts and attention gates receive high-fidelity shields; background expert pool is compressed to dense 2-bit grids. |
REAP Manifest Source: The expert selection manifest (
seleccion_mass_K320.json) was authored by AnonimousA as part of the Qwen3.8-Flash-Next-REAP-320-GGUF project. Credit and thanks for the calibration methodology.
Need to scale up? Deploy this exact script on on-demand cloud GPUs via RunPod Cloud Compute.
$ ./llama-server -m Qwen3.8-Flash-Next-reap320-YMQ-M-TI.gguf \
--ctx-size 145000 \
--ctx-checkpoints 2 \
-ctk q8_0 -ctv q4_0 \
--spec-type draft-mtp --spec-draft-n-max 2 \
--md mtp-Qwen3.8-Flash-Next-shared-Q4_K_M.gguf \
--mmproj Qwen3.8-Flash-Next-mmproj-Q4_K_S.gguf \
--temp 0.6 --top-p 0.95 --top-k 20 --repeat-penalty 1.05 \
--jinja -fa \
--ubatch-size 512 \
--chat-template-kwargs '{"reasoning_effort": "low"}'
⚠️ VRAM Note: At ~63 GB, this model runs comfortably on 48GB of vram or x2 3090.
--mmproj)For multimodal vision support, pair this build with the native Flash-Next vision projection:
| Variant | File | Size | Notes |
|---|---|---|---|
| Q4_K_S | Qwen3.8-Flash-Next-mmproj-Q4_K_S.gguf |
~478 MB | Compact vision projection for VRAM-constrained setups. Retains strong image understanding at reduced footprint. |
Pass via --mmproj <path-to-file> in your llama-server invocation (see example above).
--md)This model ships with native multi-token prediction heads. Pair with the shared MTP draft head for speculative decoding:
| Variant | File | Size | Notes |
|---|---|---|---|
| Q4_K_M | mtp-Qwen3.8-Flash-Next-shared-Q4_K_M.gguf |
~2 GB | Shared MTP draft head for 2-token speculative decoding. Enable via --spec-type draft-mtp --spec-draft-n-max 2. |
If the YMQ-Compiler builds saved your context window from collapsing or optimized your active development cycle speeds, consider buying a coffee to fund further low-level optimization research. Your support keeps the server nodes baking future model scales!
👉 Support ZeroDigest Research on ko-fi
The compiler pipeline automation engine, REAP pruning scripts, setup thresholds, and structural mapping rules are open-source. To view the implementation details or compile your own custom models natively using this profile layout, visit the official development hub:
👉 GitHub: ZeroDigest / YMQ-Compiler
| Credit | Role |
|---|---|
| Qwen/Qwen3.8-Flash-Next | Base architecture and weights |
| AnonimousA | REAP expert selection manifest (seleccion_mass_K320.json) and calibration methodology inspiration |
| YMQ-Compiler | Architecture-aware importance-matrix quantization pipeline (this build) |
Qwen/Qwen3.8-Flash-Next