Qwen4 Heretic Drops Refusals by 76% With Hardware-Tuned Local Builds
A community-built, decensored Qwen4-35B-A3B lands as GGUF with hardware-aware quantization and a 1.3 MiB LoRA that erases multilingual refusals.
Takeaways
- Abliterated GGUF build of Qwen4-35B-A3B MoE with over 1M downloads on Hugging Face
- Direct-prompt refusals dropped from 94% to 20%, with HumanEval and MMLU-Pro essentially unchanged
- Optional 1.30 MiB V2 LoRA cuts judge-assessed refusals to 0/288 across 10 languages
- Hardware-aware SMX quantization beats Q4_K_M on KL divergence while using 2.4 GB less RAM
- Ships 20 quant tiers from IQ1_M (20.7 GB) to BF16 (111 GB), plus vision and MTP heads
- Runs on 8 GB VRAM laptops via
--lazy-mode autoNVMe offload of per-layer embeddings
Independent maintainer synthetic0x has released refusal-ablated, importance-matrix-calibrated GGUF builds of Alibaba’s Qwen4-35B-A3B mixture-of-experts model. The model repository includes 20 quantization tiers, an optional multilingual refusal-suppression LoRA, a vision projector, and a speculative-decoding head. Its Hugging Face page reported more than one million downloads at publication time, though that counter tracks file requests rather than unique users.
Qwen4-35B-A3B contains roughly 35 billion total parameters while activating about 3 billion for each token. That sparse architecture reduces computation, but the full set of expert weights still requires storage and memory management. GGUF packages those weights for local runtimes such as llama.cpp, while quantization reduces their precision to fit consumer hardware.
Removing refusal directions
Directional ablation edits model weights to weaken activation patterns associated with refusals. The process requires no conventional fine-tuning dataset, but it changes the model’s safety behavior and can affect unrelated capabilities when the targeted directions overlap with useful representations.
The pipeline derives from the open source Heretic project, which automates layer selection and ablation strength. Its Tree-structured Parzen Estimator searches for settings that reduce refusals while limiting KL divergence, a measure of how far the edited model’s output distribution moves from the original.
Heretic supports dense, multimodal, mixture-of-experts, and hybrid architectures. Because the original repository was archived before Qwen4 appeared, synthetic0x added a dedicated qwen4_moe implementation and multi-objective Pareto optimization for the model’s sparse expert structure.
V1 cuts refusals with mixed benchmark effects
Repository evaluations used 50 held-out JailbreakBench prompts. The maintainer reports the following refusal rates for the stock model and the V1 BF16 ablation:
| Mode | Stock Qwen4 | Heretic V1 | Change |
|---|---|---|---|
| Direct response | 94% | 20% | 74 percentage points lower |
| Thinking mode | 80% | 4% | 76 percentage points lower |
Capability results remained close on several tests, although the evaluation sizes and small differences make broad conclusions premature.
| Benchmark | Stock | Heretic V1 |
|---|---|---|
| HumanEval | 92.07% | 92.68% |
| MMLU-Pro | 61.43% | 62.86% |
| WikiText-2 perplexity | 7.3929 | 7.3622 |
| GPQA-Diamond, 100-question subset | 59% | 50% |
A separate full GPQA-Diamond run produced 147 correct answers out of 198 for both Stock Q4_K_M and Heretic SMX4_L. Because that comparison uses different quantized builds, it does not isolate the effect of ablation alone.
V2 targets multilingual leaks
Later testing with a stricter automated judge found soft refusals that the original keyword checks had missed. These responses often remained polite and indirect, particularly in thinking mode and languages other than English.
Activation analysis attributed the leakage to multiple refusal directions. Thinking-off and thinking-on vectors had cosine similarity between 0.25 and 0.40, indicating limited alignment. Thinking-mode activations also separated languages into two reported clusters: English and Chinese in one, with Russian, Japanese, Arabic, Spanish, German, and French in another.
The optional V2 patch is a 1.30 MiB rank-3 LoRA applied with --lora-scaled. It modifies the shared dense trunk while excluding all 256 routed experts, keeping the adapter small and reducing the number of affected weights.
A held-out evaluation covered 288 prompts, four reasoning-effort settings, and ten languages, including previously unseen Polish and Korean:
| Metric | V1 | V2 LoRA |
|---|---|---|
| Full compliance | 41.0% | 88.2% |
| Judge-assessed refusals | 43.8% | 0 of 288 |
| Unfinished thinking blocks | 2.8% | 11.4% |
The maintainer also reports weaker Russian coherence at high reasoning effort and a four-point GPQA-Diamond decline. A lower LoRA scale, such as 1.25, may preserve more baseline behavior. Every base quant already contains the V1 ablation; omitting the V2 adapter leaves its residual refusal behavior in place rather than restoring the stock model.
Quantization follows the hardware
The smx-auto optimizer evaluates all 597 tensors across 21 GGML formats using importance-matrix calibration data. An importance matrix estimates how sensitive model quality is to quantizing each tensor, allowing important weights to retain more precision.
A mixed-integer linear program then selects formats across three storage tiers: VRAM, system RAM, and NVMe. Its cost model uses measured ggml_mul_mat_id latency profiles from Intel AVX-VNNI, AMD Zen 3, Intel AVX-512, and Nvidia RTX 40- and 50-series hardware. The resulting SMX4_L and SMX3_XL builds avoid lookup-table formats such as IQ3_S and IQ3_XXS when those formats benchmark poorly on the target processors.
Repository results put SMX4_L at 0.0864 KL divergence, compared with 0.0901 for Q4_K_M, while using 2.4 GB less resident RAM. Lower KL divergence indicates that the quantized model stayed closer to the higher-precision reference on the calibration workload.
One community test on a Ryzen 7 7840HS laptop with an RTX 4060 8 GB measured SMX3_XL at 29 tokens per second, compared with 24 tokens per second for a similarly sized third-party IQ3_S build. The same tester reported approximately 35 tokens per second after adding the MTP draft model for speculative decoding. These figures reflect one hardware and software configuration, so target-system profiling remains necessary.
Choose a tier and run it
The repository offers 20 quantization tiers ranging from IQ1_M at 20.7 GB to BF16 at 111 GB. File size alone does not determine runtime memory use; the context window, KV cache, backend buffers, vision components, and GPU offload settings add further overhead.
For systems with 24 to 32 GB of VRAM, the repository recommends this llama.cpp configuration:
llama-server -hf synthetic0x/Qwen4-35B-A3B-Heretic-GGUF:SMX4_L \
--lora-scaled Qwen4-35B-A3B-Heretic-V2-DenseOnly.gguf:1.5 \
--spec-type draft-mtp --spec-draft-n-max 3 --flash-attn on
The LoRA filename must resolve to a downloaded local file or an explicit path. The --spec-type draft-mtp option enables the included one-layer multi-token-prediction head, which proposes tokens for the main model to verify during speculative decoding.
An 8 GB VRAM configuration can offload most mixture-of-experts layers to a CPU with 24 to 32 GB of system RAM. The repository’s laptop recipe uses --lazy-mode auto to keep the large per-layer n-gram embedding table on NVMe and reduce resident memory.
Ollama, LM Studio, vLLM, and Docker Model Runner are listed as compatible loaders, but support for custom LoRA scaling, MTP speculation, lazy loading, and Qwen4 MoE offload varies by backend and version. Developers should confirm that their runtime recognizes the model architecture and each requested flag.
Deployment boundaries matter
Refusal-ablated models can support controlled red-team exercises, security research, safety-dataset generation, and creative or analytical work that stock alignment blocks too broadly. The same weight edits also remove safeguards indiscriminately, making the model more likely to produce harmful, illegal, private, or unreliable material when prompted.
Production deployments should account for several release-specific constraints:
- Re-run refusal, quality, latency, and memory tests on the intended hardware and prompt distribution.
- Treat the published benchmark results as maintainer-reported measurements rather than independent validation.
- Test V1 and several V2 LoRA scales because stronger suppression increases unfinished reasoning and may reduce capability in some languages.
- Place authentication, policy enforcement, logging, rate limits, and output review outside the model when the application requires them.
- Review the repository and base-model licenses before redistribution or commercial deployment.
The release’s main technical contribution is the combination of MoE-aware directional ablation, documented multilingual failure analysis, and hardware-profiled per-tensor quantization. Developers evaluating it should treat refusal behavior, quantization quality, and runtime compatibility as separate test dimensions, since each can change independently across adapters, tiers, and inference backends.