Qwen3.8 27B Heretic Abliterated Uncensored GGUF
Qwen3.8 27B Heretic Abliterated Uncensored GGUF by 0bserverx, a text-generation model with multimodal capabilities. Understand and compare multimodal features, benchmarks, and capabilities.
Comparison
| Feature | Qwen3.8 27B Heretic Abliterated Uncensored GGUF | Interfaze |
|---|---|---|
| Input Modalities | text, image, video | image, text, audio, video, document |
| Native OCR | No | Yes |
| Long Document Processing | No | Yes |
| Language Support | unknown | 162+ |
| Native Speech-to-Text | No | Yes |
| Native Object Detection | No | Yes |
| Guardrail Controls | Yes | Yes |
| Context Input Size | 262.1K | 1M |
| Tool Calling | Yes | Tool calling supported + built in browser, code execution and web search |
Scaling
| Feature | Qwen3.8 27B Heretic Abliterated Uncensored GGUF | Interfaze |
|---|---|---|
| Scaling | Self-hosted/Provider-hosted with quantization | Unlimited |
View model card on Hugging Face
RVN is a double-refined abliterated variant of Qwen3.8-27B, built on top of
trohrbaugh/Qwen3.8-27B-heretic-ara
(an ARA abliteration by Tim Rohrbaugh) and further refined with two additional
full-weight ARA passes targeting residual refusals. It retains very low behavioral
damage (KL ≈ 0.0085) while reducing harmful-prompt refusals from 3/100 (source) to
0–1/100 in independent measurements.
Note on this repository's history. This repo previously hosted the original
Qwen3.8-27B-Heretic-Q4_K_M.gguf(single-quant release from the earliertrohrbaugh/Qwen3.8-27B-hereticsource). That file is kept as legacy for download-count continuity and backward compatibility — it is the older abliteration variant and is superseded by the RVN files below. Prefer the RVN quants for new deployments.
Not for all audiences. This model has reduced safety guardrails by design. It is intended for adult audiences (18+) doing research, creative writing, roleplay, and uncensored generation. Certain guardrails are intentionally left in place; use responsibly and in accordance with your local laws.
Compatibility notice (2026-08-19): the currently published RVN GGUFs are missing the embedded
tokenizer.chat_templatemetadata. Plain chat may appear to work through llama.cpp's generic ChatML fallback, but Qwen-native tool/function calling andchat_template_kwargs.enable_thinkingcontrol are not reliable through that fallback. Until the same-name GGUF replacements are uploaded, download the officialchat_template.jinjafrom this repository and launch llama.cpp with--chat-template-file chat_template.jinja. The file is copied byte-for-byte fromQwen/Qwen3.8-27B(8,952 bytes; SHA-256c3cf9e34abf4f9e36c2d72165aa9c132d3e2a725b6c2586aaa3a8af9d7a81041).
llama-server -m RVN-Q5_K_M.gguf --chat-template-file chat_template.jinja \
-c 32768 -ngl 99What is ARA?
ARA (Arbitrary-Rank Ablation) is the abliteration technique implemented in p-e-w/heretic. Traditional directional abliteration finds a single "refusal direction" in activation space and subtracts it — a one-shot, low-rank surgery that is simple but can leave residual refusals or damage unrelated behavior.
ARA instead treats abliteration as a matrix optimization problem. For every target module (attention out-projection and MLP down-projection), it collects activations on "good" prompts (harmless requests) and "bad" prompts (harmful requests), then uses an LBFGS optimizer to rewrite the module's weight matrix so that:
- Preserve: outputs on good prompts change as little as possible (KL is kept low)
- Steer: outputs on bad prompts are pulled toward the good-prompt output manifold (via k-nearest-neighbor distances), so harmful requests stop triggering the refusal circuitry
- Overcorrect: outputs on bad prompts are additionally pushed away from the original bad-prompt outputs, which helps overcome complex, multi-stage refusal mechanisms
Because the weight matrix is optimized directly (rather than subtracting a single direction), ARA is "arbitrary rank" — it can carve out a much richer refusal-removal subspace while keeping behavioral damage minimal.
Why "Heretic" and "Abliterated"?
These two words describe two layers of the same process:
- Heretic is the tool: the open-source implementation of ARA (and related abliteration methods) used to modify the model. Models produced with it are commonly labeled "heretic" in the community.
- Abliterated is the result: the model's refusal behavior has been surgically removed. An abliterated model still knows everything the base model knows, but it no longer refuses to answer the categories that were steered away during the process.
So "Heretic Abliterated" means: abliterated using the heretic toolset. RVN goes one
step further — it applies the ARA procedure three times total: once by the original
author (trohrbaugh) to get from base Qwen3.8-27B to -ara, and twice more by us to
get from -ara to RVN, squeezing out the last residual refusals.
Special Thanks
This work would not exist without Tim Rohrbaugh (trohrbaugh), whose
heretic-ara ARA
abliteration of Qwen3.8-27B (refusals 3/100, KL 0.0535) provided the foundation we
refined into RVN. His upstream contributions to the heretic codebase — including the
row-norm preservation feature and Qwen3.5 MoE/DeltaNet hybrid handling — are directly
responsible for making DeltaNet-layer abliteration work at all. Thank you, Tim.
Model Overview
| Property | Value |
|---|---|
| Base model | Qwen/Qwen3.8-27B |
| Abliteration source | trohrbaugh/Qwen3.8-27B-heretic-ara (ARA, KL 0.0535, refusals 3/100) |
| RVN refinement | 2-pass ARA on top of source → KL 0.0085, refusals 0–1/100 |
| Architecture | qwen3_5_text (Qwen3.8 family), Gated DeltaNet hybrid |
| Parameters | 27B total |
| Hidden size | 5120 |
| Layers | 64 (16 standard attention + 48 Gated DeltaNet linear attention) |
| Attention heads | 24 · KV heads 4 (GQA) · head_dim 256 |
| Vocab | 248,320 |
| Context length | 262,144 (262K) |
| License | Apache-2.0 (retained from Qwen3.8-27B) |
| Format | GGUF (llama.cpp). Base files: MTP/NextN excluded. *-mtp.gguf files ship the official Qwen3.8 MTP draft head embedded → see MTP Speculative Decoding |
Why RVN?
trohrbaugh/Qwen3.8-27B-heretic-ara is already a strong ARA abliteration, but three
harmful prompts still triggered refusals in our independent evaluation (racism website,
malware, government database hacking). RVN applies two additional full-weight ARA
passes using the same tight parameter set (start 26, end 56, preserve 0.9432,
steer 0.0009, overcorrect 0.5038, neighbor 10), which:
- Reduced refusals from 3/100 → 0–1/100 (the only remaining refusal is a chemical-weapon WMD prompt — one of the strongest safety-trained categories, and intentionally one of the guardrails we left in place)
- Reduced KL damage from 0.0535 (source) to 0.0085 vs base — a ~6× improvement in behavioral preservation
- Verified independently on two rented GPU machines with prefix-based (real-answer) refusal measurement
Refusal evaluation (100 harmful-behaviors prompts, prefix-forced real answers)
| Model | Refusals | KL vs base |
|---|---|---|
| Qwen3.8-27B (base) | ~99/100 | — |
| trohrbaugh -ara (source) | 3/100 | 0.0535 |
| RVN (this repo) | 0–1/100 | 0.0085 |
Files & Quantization Spectrum
| File | Size (GB / GiB) | Notes |
|---|---|---|
RVN-F16.gguf | 53.81 / 50.11 | F16 reference (no NextN/MTP) |
RVN-BF16.gguf | 53.81 / 50.11 | BF16 reference (no NextN/MTP) |
RVN-Q8_0.gguf | 28.60 / 26.63 | Max-quality 8-bit |
RVN-Q6_K.gguf | 22.08 / 20.57 | High-quality 6-bit |
RVN-Q5_K_M.gguf | 19.23 / 17.91 | Balanced 5-bit |
RVN-Q5_K_S.gguf | 18.68 / 17.40 | 5-bit small |
RVN-Q4_K_M.gguf | 16.55 / 15.41 | Recommended 4-bit (24 GB VRAM) |
Qwen3.8-27B-Heretic-Q4_K_M.gguf | 16.55 / 15.41 | Legacy (older abliteration variant, kept for download continuity) |
RVN-IQ4_NL.gguf | 15.89 / 14.80 | 4-bit non-linear — current file was produced without an imatrix; corrected replacement in progress |
RVN-Q4_K_S.gguf | 15.59 / 14.52 | Small 4-bit |
RVN-IQ4_XS.gguf | 15.19 / 14.15 | 4-bit extra-small — current file was produced without an imatrix; corrected replacement in progress |
RVN-Q3_K_L.gguf | 14.34 / 13.36 | Large 3-bit |
RVN-Q3_K_M.gguf | 13.30 / 12.39 | Compact 3-bit |
RVN-IQ3_M.gguf | 12.58 / 11.72 | imatrix 3-bit — re-uploaded 2026-08-17 (previous file had corrupted tensor data: NaN/Inf scales + zeroed tensors from a bad quantize run; re-quantized from F16 with a fresh imatrix and verified — see note below) |
RVN-IQ3_S.gguf | 12.42 / 11.57 | imatrix 3-bit small |
RVN-Q3_K_S.gguf | 12.07 / 11.24 | Compact 3-bit small |
RVN-IQ3_XS.gguf | 11.97 / 11.15 | imatrix 3-bit extra-small |
RVN-IQ3_XXS.gguf | 11.19 / 10.42 | imatrix 3-bit extra-extra-small |
RVN-Q2_K.gguf | 10.71 / 9.98 | 2-bit K-quant |
RVN-Q2_K_S.gguf | 10.25 / 9.54 | 2-bit K-quant small |
RVN-IQ2_M.gguf | 10.00 / 9.32 | imatrix 2-bit |
RVN-IQ2_S.gguf | 9.36 / 8.72 | imatrix 2-bit small |
RVN-IQ2_XS.gguf | 9.09 / 8.47 | imatrix 2-bit extreme small |
RVN-IQ2_XXS.gguf | 8.43 / 7.85 | imatrix 2-bit (minimum) |
RVN-IQ1_M.gguf | 7.63 / 7.11 | imatrix 1-bit (experimental) |
RVN-IQ1_S.gguf | 7.15 / 6.66 | imatrix 1-bit (experimental) |
👁️ Vision-Protected (UD-style) Variants
The standard quants above use uniform quantization across all layers. For vision-heavy
use (image understanding via the mmproj), the layers that first receive visual
embeddings matter disproportionately — the "vision-language bridge". These -vision
variants use Unsloth-style dynamic (UD) quantization: token_embd, output, and the
first 4 + last 4 transformer blocks stay at Q8_0, while the middle blocks are
compressed to the target K-quant. Built with
llama-quantize --token-embedding-type q8_0 --output-tensor-type q8_0 --tensor-type-file
(106 bridge tensors overridden by regex; verified via tensor audit — 0 NaN/Inf, correct
per-tensor types, 851 tensors).
| File | Size (GB / GiB) | Bridge / Middle |
|---|---|---|
RVN-Q5_K_M-vision.gguf | 21.02 / 19.57 | Q8_0 bridge · Q5_K_M middle |
RVN-Q4_K_M-vision.gguf | 18.75 / 17.46 | Q8_0 bridge · Q4_K_M middle |
RVN-Q3_K_M-vision.gguf | 16.19 / 15.08 | Q8_0 bridge · Q3_K_M middle |
Usage — identical to the standard quants, just point at the -vision file:
llama-server -m RVN-Q5_K_M-vision.gguf --mmproj mmproj-Qwen3.8-27B-Q8_0.gguf \
-c 32768 -ngl 99📊 Perplexity (vs F16 reference)
Measured on an RTX PRO 6000 Blackwell (full GPU offload, llama.cpp master):
llama-perplexity, tiny_shakespeare corpus, ctx 2048.
| Model | PPL | Δ vs F16 |
|---|---|---|
RVN-F16.gguf | 4.5477 | — |
RVN-Q5_K_M.gguf (standard) | 4.6493 | +2.23% |
RVN-Q5_K_M-vision.gguf | 4.6497 | +2.24% |
RVN-Q4_K_M-vision.gguf | 4.8751 | +7.20% |
RVN-Q3_K_M-vision.gguf | 5.6490 | +24.2% |
Text perplexity is at parity with the standard quant (no regression from the Q8_0
bridge), while the vision-critical bridge layers keep 8-bit precision. All -vision
variants and the standard Q5_K_M passed image-description tests with the mmproj
(accurate description, no hallucination on the test image).
imatrix-based quants are produced from the same F16 with an activation importance matrix computed over wikitext-2-raw (original spectrum, 580 chunks) or tiny_shakespeare (2026-08-17 re-quant additions:
IQ3_Mfix +IQ2_S/IQ3_XXS/IQ3_XS/IQ3_S, 159 chunks, llama-imatrix,-ngl 99). The currently publishedIQ4_XSandIQ4_NLfiles are exceptions: an independent GGUF-header audit and the retained production script confirm they were made without--imatrix. Their earlier imatrix labels were incorrect; corrected wikitext-imatrix replacements (including MTP twins) are being rebuilt. The-visionfiles are quantized with K-quant defaults (no imatrix) — the bridge protection is structural (Q8_0 overrides), not imatrix-dependent.
⚡ MTP Speculative Decoding
Every quant ships a *-mtp.gguf twin with the official Qwen3.8 MTP draft head
(q8_0, ~1.8 GB) embedded. The main-model weights are byte-identical to the base file —
the head is appended as an extra blk.64.nextn.* layer set (block_count 65, qwen35.nextn_predict_layers=1).
Abliteration never touched the draft head (it operates on main-model layers 26–56), so
draft quality is unchanged, and speculative decoding is output-equivalent: same
tokens, just faster.
Usage (llama.cpp ≥ b10440, PR #22673):
llama-server -m RVN-IQ3_M-mtp.gguf -c 32768 -ngl 99 \
--spec-type draft-mtp --spec-draft-n-max 2 --parallel 1Measured on 2× RTX PRO 6000 Blackwell (95 GB each, full GPU offload, llama.cpp b10472):
| Quant | Normal (t/s) | + MTP (t/s) | Δ |
|---|---|---|---|
Q6_K | 61.6 | 126.2 | +105% |
BF16 | 29.2 | 58.2 | +99% |
Q8_0 | 50.6 | 98.0 | +94% |
IQ3_S | 91.9 | 169.7 | +85% |
IQ4_XS | 83.4 | 152.0 | +82% |
Q3_K_S | 84.5 | 153.6 | +82% |
F16 | 29.4 | 52.9 | +80% |
IQ3_XS | 94.0 | 161.9 | +72% |
Q3_K_L | 78.7 | 131.3 | +67% |
IQ4_NL | 80.8 | 138.0 | +71% |
IQ2_M | 106.2 | 175.9 | +66% |
IQ2_XS | 112.8 | 183.4 | +63% |
Q4_K_M | 76.6 | 122.0 | +59% |
Q4_K_S | 80.5 | 127.1 | +58% |
IQ3_M | 91.3 | 144.0 | +58% |
Q3_K_M | 82.6 | 129.5 | +57% |
IQ2_XXS | 117.6 | 182.6 | +55% |
Q2_K | 98.2 | 150.2 | +53% |
IQ3_XXS | 98.5 | 138.5 | +41% |
IQ2_S | 111.5 | 155.3 | +39% |
Q5_K_M | 68.1 | 93.8 | +38% |
Q2_K_S | 105.5 | 145.1 | +38% |
Q5_K_S | 70.7 | 91.1 | +29% |
IQ1_S | 127.0 | 131.7 | +3.7% |
IQ1_M | 119.5 | 47.6 | −60% ⚠️ |
Average: +55% generation speed (128-token continuation, --spec-draft-n-max 2 --parallel 1).
⚠️ IQ1_M is the exception: MTP makes it ~60% slower — use the base file for IQ1_M.
IQ1_S gains almost nothing (+4%). All other quants gain +29% to +105%.
Community measurements on larger cards report +33–145% depending on GPU and
context. Tips: --spec-draft-n-max 2 is the sweet spot on 16–24 GB cards (3–4 on
bigger/faster cards); pair with --cache-type-k q4_0 --cache-type-v q4_0 for long
context; --spec-draft-p-min 0.60–0.75 helps on bandwidth-limited rigs.
👁️ Vision (image understanding)
Pair any *-mtp.gguf with the official vision projector for full image-text-to-text:
llama-server -m RVN-IQ3_M-mtp.gguf --mmproj mmproj-Qwen3.8-27B-Q8_0.gguf \
-c 32768 -ngl 99 --spec-type draft-mtp --spec-draft-n-max 2 --parallel 1mmproj-Qwen3.8-27B-Q8_0.gguf(0.63 GB, Q8_0) is the official Qwen3.8 vision projector fromggml-org/Qwen3.8-27B-GGUF(Apache-2.0). The vision tower is an image encoder only — ARA abliteration never touched it, so it pairs cleanly with every RVN quant.- Verified:
RVN-Q3_K_M-mtp+ this mmproj describes images correctly (MTP active). - Combo credit: cfigueiroa/Qwen3.8-27B-RVN-vision-MTP.
Quant → GPU / Memory Guide
| GPU / Memory | Best quant(s) (full GPU load) | Effective ctx @ Q8_0 KV |
|---|---|---|
| 8 GB (RTX 3050, 4060 Laptop) | IQ1_S, IQ1_M; IQ2_XXS partial offload only | ~2–4K |
| 12 GB (RTX 3060, 4070) | IQ2_M, IQ2_S, IQ2_XS, Q2_K_S; IQ3_XXS (tight) | ~8–16K |
| 16 GB (RTX 4080, 4090 Laptop, M3 Max) | IQ3_M, IQ3_S, Q3_K_M; IQ4_XS/Q4_K_S/IQ4_NL (tight ctx) | ~6–24K |
| 24 GB (RTX 3090, 4090, M4 Max) | Q5_K_M, Q5_K_S, Q6_K, Q4_K_M; Q8_0 partial | ~16–48K |
| 32 GB (RTX 5090, A6000) | Q8_0, Q6_K | ~24–64K |
| 64 GB+ (A100 80 GB, RTX PRO 6000, M3/M4 Ultra) | F16, BF16 | ~64–100K+ |
Sizes in the file table are the actual file sizes on the Hub (decimal GB / GiB), pulled from repository metadata. Full GPU load means the whole quant fits in VRAM; quants whose file size exceeds your VRAM need partial offloading.
2026-08-17 — RVN-IQ3_M incident & fix: the original
RVN-IQ3_M.ggufgenerated only/characters on every backend (confirmed by the community and reproduced locally). A tensor-level audit showed corrupted quantization data — NaN/Inf block scales and fully zeroed tensors (e.g.token_embdhad ~39.6M NaN values) — from a bad quantize run, not a llama.cpp regression (all other quants from the same F16 dequantize cleanly). The file was pulled, re-quantized from the F16 with a freshly computed imatrix, generation-tested ("The capital of France is" → Paris, 70+ t/s) and re-uploaded. New quants added the same day:IQ2_S,IQ3_XXS,IQ3_XS,IQ3_S,Q3_K_L,Q5_K_S.
KV cache math (GQA, 4 KV heads, head_dim 256):
2 × 64 layers × 4 KV heads × 256 head_dim × 2 bytes = 256 KiB/token FP16
→ 16K ctx ≈ 4.2 GB · 32K ctx ≈ 8.4 GB · 64K ctx ≈ 16.8 GB (Q8_0 KV halves this).
A 16 GB card running Q3_K_M (13.30 GB model) + 16K ctx Q8_0 KV fits comfortably;
Q4_K_M (16.55 GB) really needs a 24 GB card.
Rule of thumb: pick the largest quant that leaves ≥ 4 GB for KV cache + compute buffers. If you only need short replies, drop the quant one notch and get a bigger context; if you need long context, prioritize KV budget over quant size.
Limitations & Responsible Use
- Reduced safety guardrails by design. This model is not intended for use in applications requiring robust safety filtering, content moderation, or deployment to minors.
- Certain guardrails are intentionally left in place. Abliteration targets refusal behavior on general harmful-prompt categories; a small set of hard safety-trained categories is deliberately not fully removed. Behavior may vary across domains and languages.
- Not affiliated with or endorsed by Qwen/Alibaba or trohrbaugh.
License & Attribution
- Base model: Qwen/Qwen3.8-27B — Apache-2.0
- Abliteration source:
trohrbaugh/Qwen3.8-27B-heretic-ara— Apache-2.0 - This repo: Apache-2.0. See LICENSE.
Citation
@misc{rohrbaugh2026heretic,
title={Qwen3.8-27B-heretic-ara: ARA Abliteration of Qwen3.8-27B},
author={Rohrbaugh, Tim},
year={2026},
howpublished={\url{https://huggingface.co/trohrbaugh/Qwen3.8-27B-heretic-ara}}
}
@misc{rvn2026,
title={RVN: Qwen3.8-27B Heretic Abliterated Uncensored},
author={0bserverx},
year={2026},
howpublished={\url{https://huggingface.co/0bserverx/Qwen3.8-27B-Heretic-Abliterated-Uncensored-GGUF}}
}