license: apache-2.0
language:
- en
- ja
pipeline_tag: text-generation
library_name: llama.cpp
base_model: Qwen/Qwen4-35B-A3B
tags: - gguf
- qwen4
- moe
- heretic
- uncensored
- decensored
- abliterated
Qwen4-35B-A3B-Uncensored-Heretic-v2-GGUF
An uncensored version of Qwen4-35B-A3B, made with a custom fork of Heretic. The files keep unsloth's formats and sizes.
This is v2 (the files with -v2- in their names); it refuses far less than v1, which is kept in v1/. BF16 safetensors: Qwen4-35B-A3B-Uncensored-Heretic-v2.
| Format | Model file | n-gram table |
|---|---|---|
| UD-Q8_K_XL | 40.53 GB | 21.76 GB |
| UD-Q5_K_XL | 27.84 GB | 15.36 GB |
| UD-Q4_K_XL | 24.72 GB | 11.52 GB |
| UD-IQ4_XS | 20.52 GB | 11.52 GB |
| UD-Q3_K_XL | 19.36 GB | 11.52 GB |
| UD-Q2_K_XL | 16.16 GB | 11.52 GB |
Start llama.cpp with the -00001-of-00002.gguf file; it loads the second one (unsloth's n-gram table, unchanged).
UD-Q4_K_XL is the evaluated format; the others were not benchmarked.
The LoRA in lora/ (208 MB) is the same edit for unsloth's files (--lora); on UD-Q4_K_XL it gives KL 0.0557 / 0.0679.
The mmproj file is unsloth's vision projector, unchanged (vision has not been evaluated).
How it was made
- An OT-Ridge edit (Heretic fork) on the attention and linear-attention output projections of layers 18–39 and the shared expert's down projection of layers 27–39, fitted with Japanese and English prompts.
- A rank-1 edit on 12 linear-attention output projections (layers 18–33), fitted on the model's own answers.
- A rank-2 edit on the down projections of 128 of the 256 routed experts in layers 18–31.
All were computed on the original BF16 model and quantized at unsloth's types with its importance matrix. NOTICE.txt lists the 49 changed tensors.
Performance
| Original | v1 | v2 (this model) | |
|---|---|---|---|
| Refusals, 208 harmful prompts in the llama.cpp WebUI (with its tools) | 206/208 | 52/208 | 17/208 |
| Refusals, 50 of them with thinking on | 50/50 | 7/48 | 3/47 |
| Harmful answers with thinking on (50): loops / unfinished thinking | 0 / 0 | 0 / 2 | 0 / 3 |
| Harmless answers with thinking on (50): loops / unfinished thinking | 0 / 1 | 0 / 3 | 0 / 3 |
| KL divergence against the original UD-Q4_K_XL (JA / EN) | 0 | 0.0466 / 0.0553 | 0.0565 / 0.0704 |
| KL divergence against the original BF16 (JA / EN) | 0.106 / 0.194 | 0.135 / 0.233 | 0.132 / 0.221 |
| MMLU (14,042 questions) | 81.58% | 81.04% | 80.54% |
| HumanEval pass@1 | 90.04% | 93.09% | 93.90% |
- Measured on UD-Q4_K_XL with llama.cpp, at the recommended sampling, without a system prompt, thinking off unless noted. Refusals are judged by an LLM judge (Gemma 4); only finished answers are counted with thinking on.
- Prompts: mlabonne/harmful_behaviors, OS-Software/harmful_behaviors_ja. KL (first token, 200 + 200) and harmless answers: OS-Software/harmless_alpaca_ja, mlabonne/harmless_alpaca.
- Known issue: with thinking on, the thinking runs a little longer than the original's (14 of 400 MMLU answers did not finish within 4,096 tokens; the original: 6).
Usage
Needs llama.cpp with Qwen4 support (#33626 or later).
llama-server -m Qwen4-35B-A3B-Uncensored-Heretic-v2-UD-Q4_K_XL-00001-of-00002.gguf -ngl 99 -fa on -c 32768 --jinja \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --host 127.0.0.1 --port 8080
For thinking off, add --chat-template-kwargs '{"enable_thinking": false}' and use --temp 0.7 --top-p 0.8 --top-k 20 --min-p 0 --presence-penalty 1.5.
For image input, add --mmproj mmproj-Qwen4-35B-A3B-BF16.gguf. With less GPU memory, --n-cpu-moe N keeps the experts of N layers in system memory. To use the LoRA instead, start an unsloth file with --lora lora/Qwen4-35B-A3B-Uncensored-Heretic-v2-LoRA.gguf.
⚠️ Important Notice
This model has undergone substantial reduction of its safety alignment. As a result, it is more likely than standard models to generate harmful, inaccurate, biased, offensive, or otherwise inappropriate content.
Intended Use
For research and experimentation only, including safety research, alignment studies, and red-teaming. Please avoid deploying it in public or end-user-facing services.
User Responsibility
All outputs should be treated as untrusted and independently verified before use. Users are solely responsible for:
- Evaluating the accuracy and suitability of generated content
- Implementing appropriate safeguards and human oversight
- Complying with applicable laws, regulations, licenses, and ethical standards
Use of this model is entirely at your own risk.
Disclaimer
OS-Software provides this model without warranties of any kind and assumes no liability for any direct or indirect damages, losses, misuse, or legal consequences arising from its use.
Acknowledgements
Thanks to the Qwen team for Qwen4-35B-A3B, Unsloth AI for the quantized files these are made from, p-e-w for Heretic, and the wider open-source community.
This is a derivative work released under the base model's license (Apache 2.0). NOTICE.txt lists the source files and our changes. All rights to the base model and the quantized files remain with their respective owners.