Downloads · 30 days
279
8% of all-time downloads
quark75/Qwen3.8-27B-MXFP4-GGUF
Qwen3.8-27B-MXFP4-GGUF is a machine learning model from quark75. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
An MXFP4 quantization of Qwen/Qwen3.8-27B, converted directly from the original BF16 safetensors. Same architecture as the base model (dense, hybrid Mamba/attention — qwen35 arch with native SSM layers alongside stand…
Downloads · 30 days
279
8% of all-time downloads
All-time downloads
3.3K
Public
Repo size
16.9 GB
Likes
4
Public
Click a slice to open those files.
.gguf16.9 GB · 100%
From the Hugging Face model README
An MXFP4 quantization of Qwen/Qwen3.8-27B, converted directly from the original BF16 safetensors. Same architecture as the base model (dense, hybrid Mamba/attention — qwen35 arch with native SSM layers alongside standard attention blocks), same license (Apache-2.0).
MXFP4 support in llama.cpp is usually associated with MoE models (it was added for OpenAI's gpt-oss family), and the built-in MXFP4_MOE quantization preset only applies MXFP4 to mixture-of-experts tensors — on a dense model like this one, using that preset directly would silently fall back to plain Q8_0 with none of MXFP4's benefit.
This build instead uses llama-quantize --tensor-type <pattern>=mxfp4 overrides to force MXFP4 onto the dense linear weight tensors directly (attn_qkv, attn_gate, ffn_gate, ffn_up, ffn_down, ssm_out), while leaving norms, biases, and small SSM state parameters at their default (mostly Q8_0) precision.
The native MTP (multi-token prediction / speculative decoding) draft head bundled in the base model's weights (blk.N.nextn.* tensors) survives this conversion intact — confirmed via --spec-type draft-mtp in llama.cpp, ~82% draft acceptance observed in testing.
All benchmarks run on an AMD Radeon PRO V620 (RDNA2, ROCm/HIP backend), llama.cpp build ece963f (~August 2026 mainline), against the original Q4_K_M quantization of the same base model, same serving flags (-kvu, --ctx-size 65536, --spec-type draft-mtp, -np 4) unless noted.
Measured with llama-benchy, 3 runs per point, --pp 1024 --tg 128:
| Context depth | Q4_K_M (pp / tg, tok/s) | MXFP4 (pp / tg, tok/s) | Gain |
|---|---|---|---|
| 0 | 249.5 / 24.1 | 325.3 / 34.1 | +30% / +42% |
| 4096 | 283.7 / 23.0 | 385.8 / 29.2 | +36% / +27% |
| 16384 | 276.4 / 22.8 | 373.3 / 29.7 | +35% / +30% |
File size: 16.9GB (MXFP4) vs. 17.1GB (Q4_K_M) — the speed gain comes at essentially no size cost.
Serving tip: if you don't need real request concurrency, -np 1 measured 8–25% faster token generation than -np 4 in this build (prompt processing was unaffected) — likely per-step scheduler overhead that scales with configured slot count, not something specific to MXFP4.
Evaluated against a 39-prompt suite spanning logic/reasoning, coding, hallucination resistance, instruction-following, agentic tool-calling, multi-turn memory, and language-specific correctness (Rust, Yew/WASM, Python), graded twice by independent LLM judges:
| Judge | Scored | Average | Notable failures (< 7.0) |
|---|---|---|---|
| granite-8b | 38/39 | 9.09 | 2 |
| gemma4-31 (stricter) | 38/39 | 8.84 | 5 |
The stricter judge caught real, rubric-explicit failures the more lenient judge missed — worth knowing if you're comparing quantizations using a single judge model, results can look better than they are.
Reported honestly rather than omitted:
js_sys instead of web_sys) and wrong string type. Confirmed by both judges (4.0–4.5)..set() — a real compile-breaking error in the generated code. Caught only by the stricter judge; the lenient judge missed it and scored the response highly.llama-server \
--model Qwen3.8-27B-MXFP4.gguf \
--spec-type draft-mtp \
--reasoning auto \
-kvu \
--flash-attn on \
--ctx-size 65536 \
--cache-type-k f16 --cache-type-v f16 \
--batch-size 2048 --ubatch-size 1024 \
-np 4 # or -np 1 for a small serving-speed bump if you don't need concurrency
convert_hf_to_gguf.py (BF16) → llama-quantize with --tensor-type overridesllama.cpp commit: ece963f41b0b02d7a0d61436ae365762c073a4c8