Qwen3.8-27B — NVFP4 GGUF (llama.cpp, Blackwell-optimized)
GGUF conversion of the NVFP4 checkpoint unsloth/Qwen3.8-27B-NVFP4 to the GGUF format (NVFP4 tensor type), built and verified on 2× NVIDIA RTX 5060 Ti 16 GB (Blackwell, sm_120) with llama.cpp tensor parallelism. Model details, benchmark scores and hardware fit are also listed on Open LLM Radar — Qwen3.8-27B.
- Architecture:
qwen35(27.32 B parameters, MoE), size_label27B - File:
Qwen3.8-27B-NVFP4.gguf— 23.17 GB (21.57 GiB), 1202 tensors - GGUF file_type: NVFP4, quantization_version 2
- Source license: Apache-2.0 (inherited)
Converted on 2026-11-08 from the local HF cache snapshot of unsloth/Qwen3.8-27B-NVFP4 (compressed-tensors, mixed-precision config, including model_mtp.safetensors).
Why NVFP4 GGUF?
NVFP4 is NVIDIA's 4-bit block-scaled floating-point quantization (E2M1 values in 16-element blocks with FP8-E4M3 scales). llama.cpp supports the GGUF NVFP4 tensor type natively with Blackwell FP4 tensor-core MMQ (sm_120) since build b8967 — on RTX 50xx cards the model therefore runs 1:1 in GPU-native 4-bit without dequantization overhead.
The Unsloth checkpoint (HF, compressed-tensors) mixes two quantization config groups:
| Group | Format | Tensors |
|---|---|---|
| 0 | FP8 (float-quantized, per-channel weights, dynamic activations) | Attention (q/k/v/o), linear attention (GDN) in/out, LM head, MLP of the last 8 layers (56–63) |
| 1 | NVFP4 (nvfp4-pack-quantized) | MLP gate/up/down of layers 0–55 |
The MTP tensors (re:^mtp.*) are unquantized in the checkpoint and were integrated as-is — the built-in MTP draft head works out of the box.
Conversion (reproducible)
# llama.cpp master 31424b7cf (2026-11-06, "opencl: add arange #31829")
python3 convert_hf_to_gguf.py <hf-snapshot-dir> \
--outfile Qwen3.8-27B-NVFP4.gguf \
--outtype auto --fp8-as-q8
--outtype auto: NVFP4 packed tensors are repacked bit-exactly (no requantization)--fp8-as-q8: the FP8 group is converted to Q8_0 (sensitive tensors stay highly quantized)- The pattern (mixed FP8+NVFP4 multi-group compressed-tensors) is robustly covered since llama.cpp master via the
any()predicate +dequant_fp8()path; runtime: ~2 min on NVMe
Result (tensor type distribution in the GGUF): 696×F32 (small/unquantized tensors & scales), 233×Q8_0, 168×NVFP4, 105×FP8 scales — mixed quantization as in the source checkpoint.
Benchmarks — 2× RTX 5060 Ti 16 GB (32 GB VRAM)
Two measurement series, both on the same compose stack (ghcr.io/ggml-org/llama.cpp:server-cuda, build 372dc5ca1, FlashAttention, KV q8_0/q8_0, threads 12):
Server bench (llama-server, MTP draft active, n_max 2, tensor-parallel across both GPUs):
| Prompt (tokens) | pp (t/s) | tg (t/s, n=128) |
|---|---|---|
| ~12.8k | 1731 | 66.7 |
| ~25.5k | 1731 | 62.6 |
| ~50.9k | 1545 | 55.3 |
| ~102k | 1265 | 46.2 |
| ~127.5k | 1161 | 41.0 |
llama-bench (MTP inactive, ubatch 256, tg128 @ depth):
| Depth | tg128 t/s |
|---|---|
| 0 | 19.78 |
| 16k | 18.44 |
| 32k | 17.30 |
| 64k | 15.36 |
| 128k | 12.58 |
| 160k | 11.53 |
Recommended llama.cpp settings
LLAMA_ARG_SPLIT_MODE=tensor+GGML_CUDA_ALLREDUCE=internal→ NCCL-free P2P all-reduce on the 5060 Tis (layer split also works, but is slower)- Core params:
np=1,ctx 131072, KVq8_0/q8_0+ FlashAttention → measured in practice up to ~160k context - pp:
ubatch 512, threads 12 - MTP:
LLAMA_ARG_SPEC_TYPE=draft-mtp,LLAMA_ARG_SPEC_DRAFT_N_MAX=2 - Sampling (Unsloth recommendation): thinking mode
temp 1.0 / top_p 0.95 / top_k 20, instructtemp 0.7 / top_p 0.8 - OOM note: weights ≈ 21.6 GiB with 32 GB total VRAM — in case of kernel OOM / KV pressure, reduce context (81920) or switch KV to
q4_0; if the log showsresolve_fused_ops … CPU, too much was moved to the CPU. - Vision: the GGUF contains no vision-tower tensors — for vision, load the
mmproj-F16.gguffromunsloth/Qwen3.8-27B-GGUF.
Complete example including Docker setup: docker-compose-nvfp4.example.yml (port 8091→8080, healthcheck, metrics endpoint, MTP enabled).
Provenance
- Source: unsloth/Qwen3.8-27B-NVFP4 (compressed-tensors; Apache-2.0 license)
- Converted locally from the HF cache — no weight changes except repack (NVFP4 bit-exact) and FP8→Q8_0 requantization
- SHA-256 (
Qwen3.8-27B-NVFP4.gguf):555fbda4170e936f600bdbaee17f1ead08854cf942da0be819254af41a5af41d(also insha256.txt) - Measured/runtime environment: 2× RTX 5060 Ti 16 GB (sm_120), CUDA 12.x, llama.cpp
:server-cudabuild372dc5ca1
Links
- Open LLM Radar — Qwen3.8-27B — model details, benchmark scores and GPU hardware fit
- Open LLM Radar — open-source LLM guide: models, benchmarks, trends and deployment