Qwen3.8-27B-Heretic-Abliterated-Uncensored — NVFP4 imatrix GGUF
NVFP4 quantization of 0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF.
Source
| Source GGUF | RVN-F16.gguf (53.8 GB, F16) |
| Architecture | qwen35 (Gated DeltaNet hybrid), 27B, 64 layers |
| Context | 262144 |
| MTP | No |
general.file_type |
39 (LLAMA_FTYPE_MOSTLY_NVFP4) |
Quantization
| Format | NVFP4 (FP4 E2M1, group 16, FP8 E4M3 scales) |
| Effective BPW | 5.23 |
| Size | 16.78 GB |
| Quantizer | michaelw9999/advanced-gguf-quantizer |
| Imatrix | Bartowski v6, 601 chunks, computed on Q5_K_S |
| Method | --allow-requantize --mode fast |
Tensor protection policy
| Tensor | Type | Reason |
|---|---|---|
blk.*.attn_norm.weight |
F32 | 1D norm, loader compatibility |
blk.*.post_attention_norm.weight |
F32 | 1D norm |
blk.*.attn_q_norm.weight |
F32 | 1D norm |
blk.*.attn_k_norm.weight |
F32 | 1D norm |
blk.*.ssm_norm.weight |
F32 | 1D norm |
output_norm.weight |
F32 | 1D norm |
blk.*.ssm_conv1d.weight |
F32 | CUDA SSM kernel requires F32 |
blk.*.ssm_dt.bias |
F32 | SSM scalar |
blk.*.ssm_a |
F32 | SSM scalar |
token_embd.weight |
F16 | Embedding lookup, imatrix weak effect |
blk.0.attn_gate.weight |
F16 | First block, error accumulation |
blk.0.attn_qkv.weight |
F16 | First block |
blk.0.ffn_down.weight |
F16 | First block |
blk.1.attn_gate.weight |
F16 | Second block |
blk.1.attn_qkv.weight |
F16 | Second block |
blk.1.ffn_down.weight |
F16 | Second block |
blk.13.ffn_down.weight |
F16 | Empirical (Luffy/jan1k policy) |
| Everything else | NVFP4 |
Quality
| Metric | NVFP4 (this) | Q5_K_S (reference) |
|---|---|---|
| PPL (calibration_v6) | 4.4455 ± 0.032 | 4.5303 ± 0.034 |
| Size | 16.78 GB | 18.68 GB |
| VRAM free (2×16 GB) | ~5 GB | ~2 GB |
NVFP4 is 0.085 PPL below Q5_K_S (2.5σ, outside noise).
Usage
llama-server \
-m RVN-NVFP4-imx.gguf \
--mmproj mmproj-BF16.gguf \
-ngl 99 --split-mode tensor \
-c 262144 -b 2048 -ub 512 \
--flash-attn on --jinja \
-ctk q4_0 -ctv q4_0
Hardware
- Blackwell (RTX 50xx): native FP4 path, fastest. Build with
BLACKWELL_NATIVE_FP4=1. - Ampere (RTX 30xx): works via fallback kernels.
- 2×16 GB: fits with ~5 GB headroom at 262K context.
- Tested: 2× RTX 5060 Ti 16 GB
VRAM budget (2×16 GB, measured)
| Component | Size |
|---|---|
RVN-NVFP4-imx.gguf (model) |
16,776 MiB |
mmproj-BF16.gguf (vision) |
888 MiB |
Qwen3.8-27B-DFlash2-Q2_K.gguf (draft) |
673 MiB |
| KV cache (262K, q4_0) + graphs + buffers | ~9,199 MiB |
| Total | ~27,536 MiB |
| Free | ~5,086 MiB |
Full configuration:
-fa on --jinja
--ctx-size 262144
--batch-size 2048
--ubatch-size 512
--no-context-shift
-lm none -np 1
-ctk q4_0 -ctv q4_0
-ngl 99 -ngld 99
--split-mode tensor
--ctx-checkpoints 8
--spec-draft-n-max 3 -md Qwen3.8-27B-DFlash2-Q2_K.gguf
Measured: GPU 0 = 14,401 MiB, GPU 1 = 13,135 MiB (auto tensor split).
Custom llama.cpp patches
This setup uses DFlash2 speculative decoding with --split-mode tensor and multimodal images.
Two patches are required (in patches/):
| Patch | Fixes | Status |
|---|---|---|
llama-cpp-dflash-tensor-split.patch |
DFlash2 in-graph vocab ranking breaks under tensor parallelism (lm_head split across GPUs). Replicates lm_head on all devices. | Custom |
llama-cpp-dflash-image-fix.patch |
mtmd image chunks leave positional holes in draft KV cache, breaking DFlash2 after image processing. Zero-fills the gaps. | Upstream: #27408 |
Without the tensor-split patch: DFlash2 produces 0% draft acceptance with --split-mode tensor.
Without the image patch: DFlash2 stops working after any image is processed.
DFlash2 base support: PR #27342 DFlash2 drafter: analogalok/Qwen3.8-27B-DFlash2-Q2_K-GGUF
Reproducibility
# Imatrix (on Q5_K_S, both GPUs):
llama-imatrix \
-m RVN-Q5_K_S-multilingual.gguf \
-f Qwen3.8-27B-calibration-v6.txt \
-o imatrix.dat --output-format dat \
-ngl 99 -b 2048 -ub 512 -t 28
# Quantize:
llama-quantize \
--allow-requantize --mode fast \
--tensor-type '.*=nvfp4' \
--tensor-type '^blk\..*\.attn_norm\.weight$=f32' \
--tensor-type '^blk\..*\.post_attention_norm\.weight$=f32' \
--tensor-type '^blk\..*\.attn_q_norm\.weight$=f32' \
--tensor-type '^blk\..*\.attn_k_norm\.weight$=f32' \
--tensor-type '^blk\..*\.ssm_norm\.weight$=f32' \
--tensor-type '^output_norm\.weight$=f32' \
--tensor-type '^blk\..*\.ssm_conv1d\.weight$=f32' \
--tensor-type '^blk\..*\.ssm_dt\.bias$=f32' \
--tensor-type '^blk\..*\.ssm_a$=f32' \
--tensor-type '^token_embd\.weight$=f16' \
--tensor-type '^blk\.0\.attn_gate\.weight$=f16' \
--tensor-type '^blk\.0\.attn_qkv\.weight$=f16' \
--tensor-type '^blk\.0\.ffn_down\.weight$=f16' \
--tensor-type '^blk\.1\.attn_gate\.weight$=f16' \
--tensor-type '^blk\.1\.attn_qkv\.weight$=f16' \
--tensor-type '^blk\.1\.ffn_down\.weight$=f16' \
--tensor-type '^blk\.13\.ffn_down\.weight$=f16' \
--imatrix imatrix.dat \
RVN-F16.gguf RVN-NVFP4-imx.gguf Q8_0 6
Credits
- Base model: Qwen/Qwen3.8-27B
- Abliteration (RVN): 0bserverx
- Imatrix dataset: bartowski v6
- Protection policy: jan1k
- Quantizer: michaelw9999/advanced-gguf-quantizer