Downloads · 30 days
422
10% of all-time downloads
lg4/Qwen3.8-27B-NVFP4-MTP-GGUF
Qwen3.8-27B-NVFP4-MTP-GGUF is a text generation model from lg4. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
A family of five GGUF files of Qwen3.8-27B (the native vision-language 27B dense model, Gated DeltaNet + Gated Attention hybrid layout, 262,144-token native context, MTP speculative head), converted from unsloth/Qwen3…
Downloads · 30 days
422
10% of all-time downloads
All-time downloads
4.2K
Public
Repo size
103 GB
Likes
1
Public
Click a slice to open those files.
.gguf103 GB · 100%
From the Hugging Face model README
A family of five GGUF files of Qwen3.8-27B (the native vision-language 27B dense model, Gated DeltaNet + Gated Attention hybrid layout, 262,144-token native context, MTP speculative head), converted from unsloth/Qwen3.8-27B-NVFP4. The MTP (multi-token prediction) speculative head is baked into every file — no separate drafter needed.
ORIG — the source-preserving conversion: native NVFP4 MLP backbone + BF16 attention/embeddings (the source's F8 attention is dequantized to BF16 because GGML has no F8 tensor type). This is the largest file and the one all tiers are derived from.LOW / MEDIUM / HIGH / VERY-HIGH — a compact family sharing a byte-identical 448-tensor NVFP4 backbone (all attention + MLP re-quantized to NVFP4), differing only in the 10 "extra" tensors (LM head, token embedding, MTP draft head).The goal: keep native NVFP4 density across the whole model for Blackwell, and offer a size/precision ladder for the tensors that most affect output quality and decode speed. On our dual 16 GB Blackwell setup every tier fits and runs (see notes before treating any numbers as meaningful).
Vision works. The model is a native VLM (images and video). Pair any of these GGUFs with the mmproj-BF16.gguf included in this repo (byte-identical to unsloth/Qwen3.8-27B-GGUF's projector) via --mmproj.
| File | Size | lm_head (output.weight) | token_embd | MTP head (blk.64) | Attention |
|---|---|---|---|---|---|
Qwen3.8-27B-NVFP4-MTP-ORIG.gguf | 33.13 GB | BF16 | BF16 | BF16 | BF16 (source F8 dequant) |
Qwen3.8-27B-NVFP4-MTP-LOW.gguf | 15.53 GB | Q5_0 | IQ4_XS | IQ4_XS | NVFP4 |
Qwen3.8-27B-NVFP4-MTP-MEDIUM.gguf | 16.38 GB | Q8_0 | Q6_K | IQ4_XS | NVFP4 |
Qwen3.8-27B-NVFP4-MTP-HIGH.gguf | 17.57 GB | BF16 | Q6_K | IQ4_XS | NVFP4 |
Qwen3.8-27B-NVFP4-MTP-VERY-HIGH.gguf | 19.69 GB | BF16 | BF16 | BF16 | NVFP4 |
mmproj-BF16.gguf | 931 MB | — (vision projector) |
ORIG (1,202 tensors): the direct --outtype auto conversion of the pre-processed source checkpoint.
| GGML type | Tensors | Size | Component |
|---|---|---|---|
NVFP4 | 168 | 8.42 GB | MLP gate/up/down of layers 0-55 (source NVFP4) |
BF16 | 338 | 24.69 GB | attention (self_attn + linear_attn, source F8 dequantized), MLP layers 56-63, LM head, embeddings, MTP head |
F32 | 696 | 0.01 GB | norms, scales |
LOW–VERY-HIGH (1,202 tensors): the 4 tiers share a byte-identical 448-tensor NVFP4 backbone (all 64 layers' attention + MLP, 13.69 GB) and differ only in the 10 extra tensors:
| GGML type | Tensors | Component |
|---|---|---|
NVFP4 | 448 | all 64 transformer blocks (attention QKV/output + FFN gate/up/down) — identical in all tiers |
F32 | 744 | norms, gates, scales |
| tier-dependent | 10 | output.weight, token_embd.weight, blk.64.* MTP draft block (incl. nextn.eh_proj) |
The MTP draft head is embedded in every GGUF (blk.64.nextn.*), so no separate drafter file is needed. Enable it in llama.cpp with --spec-type draft-mtp.
The source checkpoint, unsloth/Qwen3.8-27B-NVFP4, is a mixed-precision compressed-tensors model:
float-quantized, 8-bit): self_attn.q/k/v/o_proj, linear_attn.in_proj_qkv/in_proj_z/out_proj, lm_head, and the MLP of layers 56-63nvfp4-pack-quantized, 4-bit): the MLP of layers 0-55llama.cpp's converter does not yet accept a compressed-tensors checkpoint with more than one config group unless all are NVFP4 (it raises NotImplementedError). To convert this model we therefore:
weight × scale), removed their weight_scale tensors, kept the NVFP4-packed MLP tensors untouched, and pinned the config to a single nvfp4-pack-quantized group.convert_hf_to_gguf.py --outtype auto → ORIG (NVFP4 MLP preserved natively, F8 attention materialized as BF16).llama-quantize --tensor-type-file <overrides> from the ORIG parent: re-quantizing the BF16 attention to NVFP4 for a compact uniform backbone, and pinning the extra tensors per tier.Honest trade-off note: the tiers re-quantize attention from BF16 (which was F8 in the source) down to NVFP4. That is a second quantization step on those tensors (F8 → BF16 → NVFP4) and does lose some attention precision vs the source. The ORIG file preserves the source's attention quality at the cost of a 33 GB file. If you want the highest-fidelity version, use ORIG; if you need the compact footprint, the tiers are ~2× smaller.
This is a derivative work built entirely from existing Apache-2.0 artifacts. Nothing here was trained or fine-tuned. Credit belongs to:
mmproj-BF16.gguf).The NVFP4 tensors are native GGML type 40, preserved from the source checkpoint through GGUF conversion (for the MLP backbone) with no re-quantization round trip.
unsloth/Qwen3.8-27B-NVFP4 (safetensors, mixed F8+NVFP4) was pre-processed by dequantizing F8→BF16 and keeping the NVFP4-packed tensors (see above) — this is the only step that touches values beyond type conversion, and only on the 233 F8 tensors.convert_hf_to_gguf.py --outtype auto → ORIG (33.13 GB).llama-quantize --tensor-type-file <overrides> from the ORIG parent. The per-tier override maps are in this repo (overrides-low.txt, overrides-medium.txt, overrides-high.txt, overrides-very-high.txt, 1,202 entries each).The NVFP4 backbone of the four tiers is byte-identical (verified: same SHA-256 over all 448 NVFP4 tensors in every tier).
Qwen3.8-27B-NVFP4-MTP-ORIG.gguf (33.13 GB) — source-preserving conversionQwen3.8-27B-NVFP4-MTP-LOW.gguf (15.53 GB)Qwen3.8-27B-NVFP4-MTP-MEDIUM.gguf (16.38 GB)Qwen3.8-27B-NVFP4-MTP-HIGH.gguf (17.57 GB)Qwen3.8-27B-NVFP4-MTP-VERY-HIGH.gguf (19.69 GB)mmproj-BF16.gguf (931 MB) — vision projector (byte-identical to unsloth's)overrides-low.txt, overrides-medium.txt, overrides-high.txt, overrides-very-high.txt — per-tensor quantization maps (1,202 entries each) for reproductionf18098dfc32ca398f63093c113d48bd962684c78a3e93d4158f8f440699f7cae Qwen3.8-27B-NVFP4-MTP-ORIG.gguf
ce66a629d4a3516bba27ca91de29372f086f90f72ddb92fe298de67b8bb88bbc Qwen3.8-27B-NVFP4-MTP-LOW.gguf
f0b4c538c75037f026bde3b650f0ca639d382c128a4572769dce1183db86253a Qwen3.8-27B-NVFP4-MTP-MEDIUM.gguf
d57008707b0558bde05ce61d7402e4e668ffd45a4c97d03d2ad97db73f98d403 Qwen3.8-27B-NVFP4-MTP-HIGH.gguf
3e52d6280ee650520a2d901002121c11cf9d23ac75f23c52a362bf285d561d81 Qwen3.8-27B-NVFP4-MTP-VERY-HIGH.gguf
83ee4f4f205fa514161778c41df1ea14144faa0f713510893b63c2395f5c2d53 mmproj-BF16.gguf
We did not run a proper benchmark. What follows are informal first impressions from single-stream runs, included only so others know what to expect. Do not treat these as claims.
split-mode: tensor, llama.cpp via LocalAI, flash attention on, quantized KV cache.max_tokens 20,000 (repetition_analysis.py). This payload was highly repetitive (the same boilerplate unit ~2,000 times), which likely inflates MTP acceptance and speedups.--spec-type draft-mtp, spec_n_max 6, spec_p_min 0.75.| Tier | Prefill t/s | Decode t/s | n_dec | MTP acc | MTP len | req s |
|---|---|---|---|---|---|---|
| LOW (Q5_0 / IQ4_XS / IQ4_XS) | 645.6 | 18.44 | 1,151 | 0.726 | 2.88 | 361 |
| MEDIUM (Q8_0 / Q6_K / IQ4_XS) | 649.3 | 18.48 | 1,907 | 0.749 | 2.91 | 401 |
| HIGH (BF16 / Q6_K / IQ4_XS) | 647.6 | 15.54 | 1,795 | 0.751 | 2.65 | 416 |
| VERY-HIGH (BF16 / BF16 / BF16) | 650.4 | 15.42 | 2,007 | 0.729 | 2.77 | 429 |
Naive first impressions:
A community user benchmarked LOW / MEDIUM / VERY-HIGH on a single RTX 5090 32 GB (9 short prompts, seed 42, --spec-draft-n-max 4, 192K ctx, KV q8_0, temp 1.0). These are their numbers, not ours — see the full gist for the complete results (per-prompt breakdown, method, configs).
| Tier | MTP acc | Avg tok/s | Peak tok/s | VRAM @192K |
|---|---|---|---|---|
| LOW (Q5_0 / IQ4_XS / IQ4_XS) | 49.0% | 148.3 | 203 | 25.0 GiB |
| MEDIUM (Q8_0 / Q6_K / IQ4_XS) | 44.3% | 133.7 | 182 | 25.3 GiB |
| VERY-HIGH (BF16 / BF16 / BF16) | 49.5% | 111.9 | 139 | 26.9 GiB |
| Qwen3.6-27B NVFP4-MTP ref (michaelw9999) | 69.7% | 113.8 | 133 | — |
Their main points:
--spec-draft-n-max sweep (LOW): wall-time peak at n-max 4 (11.5 s / 9 prompts); n-max 2 is the most draft-efficient (68% accepted) but ~10% slower in wall time; n-max 6/8 collapse acceptance (38%/28%) and get slower. Our deployed config uses spec_n_max 6 — on their hardware 4 was fastest; try 1-6 and keep whatever is fastest on yours.ce66a629…, MEDIUM f0b4c538…, VERY-HIGH 3e52d628…) match this repo's current files.Benchmark tool: they published mtp-bench.py (9 prompts, seed 42, accept-rate / tok/s / wall, --long-context, --diff). A copy lives in our scripts/mtp-bench.py.
llama-server \
--model Qwen3.8-27B-NVFP4-MTP-MEDIUM.gguf \
--mmproj mmproj-BF16.gguf \
--ctx-size 262144 \
--flash-attn on \
--spec-type draft-mtp \
--spec-draft-n-max 6 \
--spec-draft-p-min 0.75 \
--temp 0.7 --top-p 0.95 --top-k 20
sm_120 support (Blackwell).draft-mtp spec path (merged upstream as LLAMA_CONTEXT_TYPE_MTP).--mmproj mmproj-BF16.gguf.temp 1.0 / top_p 0.95 / top_k 20; instruct mode temp 0.7 / top_p 0.80 / top_k 20. Pick per use case.--spec-draft-n-max values 1 through 6 and keep whatever is fastest on your system.ORIG file is 33 GB — it fits a single 16 GB GPU only with heavy context reduction or CPU offload. It is included for fidelity and as the tier-derivation source, not as the recommended serving file.Apache-2.0, identical to every upstream artifact. The base model license governs; GGUF conversion and quantization are transformations, not new training. When redistributing, please retain attribution to Qwen (Alibaba) and Unsloth as above.
"Qwen" is a trademark of Alibaba. Trademarks are used here only to identify upstream models; this repository is not affiliated with, sponsored by, or endorsed by Alibaba or Unsloth.
This model card was written by an AI assistant at the request of the repository author, who did the engineering. As with any AI-generated text, there may be errors; please verify anything important (hashes, sizes, commands) against the file itself before relying on it.