license: apache-2.0
base_model: Qwen/Qwen4-35B-A3B
tags:
- qwen4
- gguf
- abliterated
- uncensored
- moe
language: - en
- zh
pipeline_tag: text-generation
Qwen4-35B-A3B Uncensored (GGUF Q8_0)
Abliterated GGUF of Qwen/Qwen4-35B-A3B (Apache-2.0). The starting GGUF is the Q8_0 quantization from unsloth/Qwen4-35B-A3B-GGUF. This is a mixed-precision Q8_0 GGUF (most weights Q8_0; some tensors remain F32/F16/BF16 as in the Unsloth file). It is not a ternary model.
This repo is intended for research into refusal circuits and subsequent measured-KL bit allocation (D3). Safety guardrails have been reduced.
Files
| File | Role |
|---|---|
Qwen4-35B-A3B-Q8_0-00001-of-00002.gguf |
Main model (edited). 38,232,743,776 bytes. |
Qwen4-35B-A3B-Q8_0-00002-of-00002.gguf |
n-gram embedding table (per_layer_token_embd) only. Unmodified copy of the Unsloth shard. 21,760,487,616 bytes. |
mmproj-BF16.gguf |
Vision projector from the Unsloth package. Unmodified. 902,822,144 bytes. |
abliteration_report.json |
Per-tensor edit statistics from the abliteration run. |
llama.cpp loads both GGUF shards automatically when they share a directory and the 0000N-of-00002 names.
Method
Single-direction abliteration (norm-preserving orthogonalization; grimjim / Bahushruth Qwen3.6-35B-A3B-abliterated-v4 style):
- Collect last-token residual activations (mean of the 4 hyper-connection streams) on 512 harmful prompts (Bahushruth/abliteration-harmful-enriched train, held-out texts excluded) and 512 harmless prompts (mlabonne/harmless_alpaca train).
- Refusal direction = mean(harmful) − mean(harmless), taken at layer 20.
- Apply norm-preserving orthogonalization with alpha = 1.5 (remove 1.5× the component along the direction, then rescale each written vector to its original L2 norm).
- Requantize edited tensors back to Q8_0 in place.
122 Q8_0 tensors edited: token_embd.weight, blk.1.ple_value.weight, and, for blocks 0–39, attn_output (QSA layers), ssm_out (Gated DeltaNet layers), ffn_down_shexp, and ffn_down_exps.
Left unchanged: MTP block (blk.40), gated-residual / hyper-connection tensors (hc_* and output_hc_*), and the 20.5B n-gram table in shard 2. 789 non-target tensors in shard 1 were verified byte-identical to the source.
Layer 20 and alpha 1.5 were selected on a 32-prompt tuning split that does not overlap the held-out evaluation sets.
Usage
Architecture string is qwen4exp. Requires llama.cpp b12973 or later. The Homebrew llama.cpp 9810 build and mlx-lm 0.31.3 cannot load this file.
llama-cli -m Qwen4-35B-A3B-Q8_0-00001-of-00002.gguf -ngl 99 -c 8192
GGUF 立即可用(零重做成本): 執行 llama-server 時直接加上 --spec-type draft-mtp --spec-draft-n-max 1,解碼直接從 43.2 → 55.6 tok/s(+28.6%)。
For multimodal use, pass mmproj-BF16.gguf to a multimodal llama.cpp binary (for example llama-mtmd-cli). The vision tower was not re-tested after abliteration.
Measured results
All figures below are from recorded local runs on 2026-12-04 (UTC+8). Detector: fixed refusal-string list on the first 300 characters; 128 new tokens; thinking off; temperature 0.
| Set | Original Q8_0 | This model (L20, alpha 1.5) |
|---|---|---|
| Held-out harmful, 200 prompts | 155 / 200 refused (77.5%) | 10 / 200 refused (5.0%) |
| Held-out harmless, 100 prompts | 1 / 100 (1.0%) | 3 / 100 (3.0%) |
The 1 original and 3 abliterated “refusals” on the harmless set are detector false positives (capability statements such as being unable to draw images or lacking live Wikipedia access), not safety refusals. Two of the three abliterated hits are new wording.
By harmful source: mlabonne/harmful_behaviors test 102/104 → 5/104; enriched test 53/96 → 5/96.
Quality on WikiText-2 raw test (llama-perplexity, 20 chunks × 512 tokens, KL vs the original Q8_0 logits):
| Metric | Value |
|---|---|
| Perplexity, original | 7.2753 ± 0.27067 |
| Perplexity, this model | 7.2849 ± 0.2710 |
| PPL ratio | 1.0033 |
| Mean KL divergence | 0.0410 ± 0.0018 |
| Same top-1 token | 92.4 ± 0.4 % |
Limitations
- No long-generation evaluation.
- No task benchmark (MMLU, GSM8K, or similar).
- Refusal rate was not measured with thinking mode enabled.
- Starting point is a Q8_0 GGUF, not BF16/FP8 full precision. Downstream quantization should state that.
- The n-gram table and vision projector were not abliterated.
Responsible use
Safety refusals have been reduced. The model can comply with requests the original model would refuse, including requests that may be illegal or harmful. This release is for research. Do not use it to cause harm. The authors are not responsible for downstream use.
License
Apache-2.0, following Qwen/Qwen4-35B-A3B.