vincespeed/Qwen3.8-27B-No-MTP-GGUF-Dflash2
12.7k
https://www.aihublocal.com/llm-runner-aio
Qwen3.8-27B IQ3S GGUF (v8, MTP-Free, Q2K Minimum)
Quantized GGUF variant of Qwen3.8-27B-UD โ regenerated from the official BF16 checkpoints, optimized for speculative decoding with DFlash2 draft models.
๐ Model Overview
๐ฏ Design Goals
This quantization was specifically designed for speculative decoding with DFlash2 draft models. Key design decisions:
- Regenerated from Official BF16 Checkpoints โ instead of requantizing a pre-quantized UD build, the target, draft, and multimodal projector were all converted from the official Hugging Face BF16 checkpoints. This removes cumulative rounding error from intermediate quantizations.
- MTP Layer Removed โ blk.64 transformer block (15 tensors) stripped,
block_countset to 64,nextn_predict_layersset to 0. Verified byte-identical against the official MTP-free reference. - Minimum Q2_K Floor โ No tensors below Q2K (IQ2XS, IQ2S, IQ1S excluded). Ultra-low precision tensors cause inconsistent token acceptance rates and hallucinations in DFlash2 speculative decoding.
- Imatrix Calibration โ Importance matrix generated from the 54.6 GB BF16 GGUF using a 48K+ token corpus, ensuring accurate activation measurements for the IQ3_XXS assignments.
- V7 Protection Map Preserved โ the per-tensor type assignment replicates the v7 protection map exactly (851/851 tensor types verified identical), including the elevated full-attention
attn_klayers (3, 7, 11, 15, 19, 27 โ Q4_K). - Draft Distribution Replication โ the DFlash2 draft reproduces the Unsloth reference per-tensor distribution exactly (81/81 tensor types match, byte-for-byte identical file size).
๐ Tensor Distribution
Target Model (851 tensors, MTP-free)
353 f32 โ Full precision (norms, small projections, SSM constants)
228 iq3_s โ IQ3_S quantized (critical attention/FFN tensors)
171 iq3_xxs โ IQ3_XXS quantized (medium-risk tensors, imatrix-guided)
33 q4_K โ Q4_K quantized (residual critical tensors)
66 q2_K โ Q2_K quantized (safest, uniform tensors โ minimum floor)Full-Attention Layer (attn_k) Map โ 16 layers
Only 16 of the 64 blocks carry a separate attn_k weight (full-attention layers); the remaining blocks use fused attn_qkv.
Draft Model (Qwen3.8-27B-DFlash2-Q2K_L, 81 tensors)
32 f32 โ Full precision (norms, embeddings)
16 q4_K โ Critical draft weights
23 q2_K โ Standard floor
10 q3_K โ Mid-precisionPer-tensor mapping replicates the Unsloth reference build exactly (verified 81/81).
๐ง Quantization Pipeline
Sources
- Target:
Qwen/Qwen3.8-27Bofficial BF16 checkpoint (18 shards, 55.6 GB) - Protection Map: v7 per-tensor type assignments extracted from
Qwen3.8-27B-UD-IQ3_S-q2k-v7-noMTP-REVIEWED.gguf - Draft:
z-lab/Qwen3.8-27B-DFlash2-GGUFBF16 GGUF (3.6 GB) - MMProj:
Qwen/Qwen3.8-27Bvision tower, converted viaconvert_hf_to_gguf.py --mmproj
Steps
- BF16 GGUF Conversion โ
convert_hf_to_gguf.py --outtype bf16(54.6 GB, 866 tensors). - MTP Removal โ custom streaming binary surgery: strip blk.64 (15 tensors), patch
qwen35.block_count 65โ64,qwen35.nextn_predict_layers 1โ0; verify sha256 of all 851 data regions. - Imatrix Generation โ
llama-imatrixover the BF16 GGUF with a 48K+ token corpus โ importance matrix. - Hybrid K-mix Quantization โ
llama-quantize --allow-requantize --imatrix ... --tensor-type-file ...applying the v7 per-tensor protection map (Q2_K floor enforced, 851/851 types verified against v7). - Draft Replication โ per-tensor override extracted from the Unsloth reference GGUF (16รq4K, 23รq2K, 10รq3_K) applied to the z-lab BF16 GGUF.
Tools
llama.cpp(CUDA 13 + Vulkan build):llama-quantize,llama-imatrix,llama-gguf,llama-server- Custom Python scripts for GGUF binary surgery and tensor-override generation
๐ Usage
llama.cpp Server
llama-server \
-m Qwen3.8-27B-IQ3_S-noMTP-.gguf \
--mmproj Qwen3.8-27B-mmproj-BF16.gguf \
-ngl 99 \
-c 90000Speculative Decoding with DFlash2
llama-server \
-m Qwen3.8-27B-IQ3_S-noMTP-.gguf \
-md Qwen3.8-27B-DFlash2-Q2K_L.gguf \
--spec-type draft-dflash \
--mmproj Qwen3.8-27B-mmproj-BF16.gguf \
-c 90000 \
-fa on \
--cache-type-k q8_0 --cache-type-v q8_0 \
-ngl 99Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama(
model_path="Qwen3.8-27B-IQ3_S-noMTP-.gguf",
n_gpu_layers=99,
n_ctx=8192,
)
output = llm.create_chat_completion(
messages=[{"role": "user", "content": "Hello, world!"}]
)๐ Files
SHA256 Verification
5fff67319fbf26d06d0ecf51d383173f243e71d23cc3db0947290f29d1cd578b Qwen3.8-27B-IQ3_S-noMTP-.gguf
10f95d16bce27608041acfece1f1c3b52974a76be8abb6e4407b2b53ccfc75b9 Qwen3.8-27B-DFlash2-Q2K_L.gguf
1410233d4274e4e8bb78352f184d3dbfbbd5c5d01a448945a804d13d2cbee49a Qwen3.8-27B-mmproj-BF16.ggufโ ๏ธ Known Limitations
- No MTP Support โ MTP layer removed. Not compatible with MTP-based speculative decoding.
- CPU-Only Quantization โ
llama-quantizehas no GPU offload flags; quantization runs on CPU multithreading. - Q2_K Minimum โ tensors below Q2_K intentionally excluded due to DFlash2 instability.
- MMProj VRAM โ the BF16 projector adds ~1โ2 GB VRAM; drop
--mmprojif running text-only.
๐ License
Based on Qwen3.8-27B-UD. Quantization derivatives follow the original model license (Apache-2.0).
๐ Related
Generated: 2026-09-12 Pipeline: BF16 โ GGUF โ MTP-strip โ imatrix โ hybrid K-mix (Q2_K floor) Verified: SHA256 hashes above match the uploaded artifacts
