base_model:
- Qwen/Qwen4-35B-A3B
base_model_relation: quantized
pipeline_tag: image-text-to-text
license: apache-2.0
tags: - gguf
- quantized
- imatrix
- qwen4
- qwen4_moe
- abliterated
- heretic
- uncensored
synthetic0x/Qwen4-35B-A3B-Heretic-GGUF
In memory of Philipp Emanuel Weidmann (p-e-w) — creator of Heretic, DRY, and XTC.
"In times like these, one should be proud to be labeled a heretic."Since the original
hereticrepository was archived before Qwen 4 launched, the base abliterated checkpoint was created with a dedicatedqwen4_moeimplementation of Heretic's multi-objective Pareto optimization (minimizing refusals and KL divergence simultaneously).
imatrix-calibrated GGUF quantizations of synthetic0x/Qwen4-35B-A3B-Heretic (surgical 3-pass biprojected abliteration of Qwen/Qwen4-35B-A3B).
Abliteration Quality (BF16 Source)
- Refusals (
<think>mode):0.0%(0/32) (down from31.2%stock) - Refusals (non-thinking):
4.7%(3/64) (down from100.0%stock) - True Token-level KL Divergence vs Stock:
0.1492(intelligence preserved)
Quick Start (llama.cpp)
llama-server -hf synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M
With optional MTP speculative decoding (faster generation):
llama-server -hf synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:Q4_K_M --spec-type draft-mtp --spec-draft-n-max 3
Note on RAM usage (
--lazy-mode auto): Qwen 4 includes a 20.5B per-layer n-gram embedding table (per_layer_token_embd). Underllama.cpp's default--lazy-mode auto, this table stays on disk and is read on demand, so Resident RAM is much smaller than the file size on disk.
Quantization Recipe & Files
All quantizations were calibrated with an in-house imatrix computed directly on the abliterated BF16 checkpoint (64 x 512 chunks) and keep sensitive Qwen 4 tensors (hc_*, ssm_beta, ssm_alpha, ple_conv1d) at BF16 (~25–29% lower quantization KL for <1% size overhead). Low-bit quants (IQ3_M, IQ2_M, IQ1_M) additionally keep the shared expert (ffn_*_shexp) at Q4_K.
| Quant | Disk Size | Resident RAM (--lazy-mode auto) |
Notes |
|---|---|---|---|
Q8_0 |
59.40 GB | ~37.6 GB | Near-lossless 8-bit (PLE=Q8_0, 64 GB RAM / dual-GPU) |
Q6_K |
51.01 GB | ~29.2 GB | Very high quality 6-bit (PLE=Q8_0, 48 GB RAM / 32 GB VRAM) |
Q5_K_M |
39.56 GB | ~25.0 GB | High quality sweet spot (PLE=Q5_0, 32 GB RAM / 24 GB+ VRAM) |
Q4_K_M |
36.01 GB | ~21.9 GB | Recommended default (PLE=Q5_0, 32 GB RAM / 24 GB VRAM) |
IQ4_XS |
33.58 GB | ~19.5 GB | Compact imatrix 4-bit (PLE=Q5_0, 24 GB VRAM / 32 GB RAM) |
IQ3_M |
27.74 GB | ~15.5 GB | High-efficiency imatrix 3-bit (PLE=Q4_0, shared expert Q4_K, 16–24 GB VRAM/RAM) |
IQ2_M |
24.06 GB | ~11.8 GB | imatrix 2-bit MoE (PLE=Q4_0, shared expert Q4_K, 16 GB PC / 12–16 GB VRAM) |
IQ1_M |
20.67 GB | ~9.5 GB | Ultra-compact imatrix 1-bit MoE (PLE=Q4_0, shared expert Q4_K, 12–16 GB PC / 8–12 GB VRAM) |
mmproj-BF16 |
0.90 GB | — | Vision encoder (100% untouched) |
mtp (Q8_0 / Q4_K_M) |
2.00 GB / 1.27 GB | — | Optional 1-layer MTP speculative decoding (--spec-type draft-mtp) |
imatrix |
0.39 GB | — | Calibration importance matrix |