CoolFace
Modelpublic

vincespeed/Qwen3.8-27B-No-MTP-GGUF-Dflash2

sourceHugging Faceapache-2.0updated 11d agoView on Hugging Face
1likes2.7kdownloads
Model Card

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

PropertyValue
Base ModelQwen3.8-27B-UD
Versionv8 (BF16-source regeneration)
QuantizationIQ3_S hybrid K-mix (per-tensor overrides)
MTP SupportโŒ Removed (MTP-free)
Minimum Quant TypeQ2_K (2.96 BPW)
Total Tensors851
Average Precision3.35 BPW
Architectureqwen35 (hybrid SSM + Attention), block_count=64
File Size11,282,637,536 B (~10.5 GB)

๐ŸŽฏ Design Goals

This quantization was specifically designed for speculative decoding with DFlash2 draft models. Key design decisions:

  1. 1.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.
  2. 2.MTP Layer Removed โ€” blk.64 transformer block (15 tensors) stripped, block_count set to 64, nextn_predict_layers set to 0. Verified byte-identical against the official MTP-free reference.
  3. 3.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.
  4. 4.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.
  5. 5.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_k layers (3, 7, 11, 15, 19, 27 โ†’ Q4_K).
  6. 6.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.

LayerTypeLayerType
3Q4_K35IQ3_S
7Q4_K39IQ3_S
11Q4_K43IQ3_S
15Q4_K47IQ3_S
19Q4_K51IQ3_S
23IQ3_S55IQ3_S
27Q4_K59IQ3_S
31IQ3_S63IQ3_S

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-precision

Per-tensor mapping replicates the Unsloth reference build exactly (verified 81/81).

๐Ÿ”ง Quantization Pipeline

Sources

  • โ€”Target: Qwen/Qwen3.8-27B official 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-GGUF BF16 GGUF (3.6 GB)
  • โ€”MMProj: Qwen/Qwen3.8-27B vision tower, converted via convert_hf_to_gguf.py --mmproj

Steps

  1. 1.BF16 GGUF Conversion โ€” convert_hf_to_gguf.py --outtype bf16 (54.6 GB, 866 tensors).
  2. 2.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.
  3. 3.Imatrix Generation โ€” llama-imatrix over the BF16 GGUF with a 48K+ token corpus โ†’ importance matrix.
  4. 4.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).
  5. 5.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

bash
llama-server \
  -m Qwen3.8-27B-IQ3_S-noMTP-.gguf \
  --mmproj Qwen3.8-27B-mmproj-BF16.gguf \
  -ngl 99 \
  -c 90000

Speculative Decoding with DFlash2

bash
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 99

Python (llama-cpp-python)

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

FileSize (bytes)Description
Qwen3.8-27B-IQ3_S-noMTP-.gguf11,282,637,536Target model โ€” IQ3S hybrid, MTP-free, Q2K floor, v7 protection map
Qwen3.8-27B-DFlash2-Q2K_L.gguf766,871,136DFlash2 draft model โ€” exact Unsloth reference distribution
Qwen3.8-27B-mmproj-BF16.gguf931,145,984Multimodal projector โ€” BF16 (334 tensors)

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

  1. 1.No MTP Support โ€” MTP layer removed. Not compatible with MTP-based speculative decoding.
  2. 2.CPU-Only Quantization โ€” llama-quantize has no GPU offload flags; quantization runs on CPU multithreading.
  3. 3.Q2_K Minimum โ€” tensors below Q2_K intentionally excluded due to DFlash2 instability.
  4. 4.MMProj VRAM โ€” the BF16 projector adds ~1โ€“2 GB VRAM; drop --mmproj if 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