玩模型开放模型 · 清晰来源 · 自主选择
返回模型目录
xdchinza /

Qwen3.5-0.8B-abliterated

HF 源站

xdchinza/Qwen3.5-0.8B-abliterated is an uncensored open-source model hosted on Hugging Face.

Image-Text-to-TextsafetensorsLicense: apache-2.00.8Btransformersqwen3_5abliterateduncensoreddirectional-ablationmechanistic-interpretabilityconversational
README.md说明 / 使用方法

license: apache-2.0 base_model: Qwen/Qwen3.5-0.8B tags:

  • abliterated
  • uncensored
  • directional-ablation
  • mechanistic-interpretability
  • qwen3_5
  • image-text-to-text
  • conversational pipeline_tag: image-text-to-text library_name: transformers

Qwen3.5-0.8B — Refusal-Direction Abliterated

Directional ablation of the refusal direction in Qwen/Qwen3.5-0.8B. No fine-tuning, no gradient steps — only a rank-1 orthogonalisation of 24 weight matrices.

Method

  1. A refusal direction u is estimated as the difference in mean residual-stream activations between 30 harmful and 50 harmless instruction prompts, taken at the last token of the chat-formatted prompt.

  2. All 24 layers are swept and scored by the separation gap cos(harmful, u) − cos(harmless, u). The best layer is 23 (gap 0.629; layers 0–2 give ~0.03–0.12, so the signal is strongly late).

  3. u is projected out of the row space of every weight matrix in layers 12–23 whose output space is the residual stream:

    W' = W − u (uᵀ W)
    

    Targets: mlp.down_proj (all 12 layers), plus self_attn.o_proj on the full-attention layers and linear_attn.out_proj on the linear-attention layers. Residual |Wu| after patching: 0.0000.

The vision tower (model.visual.*) and the MTP head (mtp.*) are untouched.

Results

Refusal rate on 20 harmful instruction prompts, greedy decoding, non-thinking mode:

refusal rate
Base Qwen/Qwen3.5-0.8B18/20 (90%)
This model1/20 (5%)

Quality checks against the base model:

MetricBaseThis model
NLL, held-out neutral prose2.07132.0625
Repeated 4-gram rate0.0090.009
Factual spot-checks (4)4/44/4
Arithmetic (84*3/2)correctcorrect

Known limitations

Abliteration removes the refusal behaviour; it does not add capability. On this 0.8B model the compliant answers to harmful prompts are frequently incoherent or factually wrong, because the base model is too small to produce technically correct instructions. Ablation also measurably degrades factual precision in ordinary answers — the base model is more reliable on questions about specific real-world details. This model is best used where over-refusal is the bigger problem than factual accuracy.

Usage

from transformers import AutoProcessor, Qwen3_5ForConditionalGeneration

model = Qwen3_5ForConditionalGeneration.from_pretrained(
    "xdchinza/Qwen3.5-0.8B-abliterated", dtype="auto", device_map="auto"
)
processor = AutoProcessor.from_pretrained("xdchinza/Qwen3.5-0.8B-abliterated")

GGUF quantisation for llama.cpp / Ollama, including an i-matrix quant: xdchinza/Qwen3.5-0.8B-abliterated-GGUF

ollama create qwen3.5-0.8b-abliterated -hf xdchinza/Qwen3.5-0.8B-abliterated-GGUF:Q4_K_M

Reproduction

Scripts used are documented in the repository README of the uploader. Summary of parameters: 30 harmful / 50 harmless prompts, probe layer 23, strength 1.0, layers 12–23.

License

Apache-2.0, inherited from Qwen/Qwen3.5-0.8B. Derivative of an Apache-2.0 model, redistributed under the same terms.

HUGGING FACE

上游数据

HF 下载量0
HF 点赞量0

HF 下载量为源站最近 30 天统计,与本站点击分开。

SITE STATS

本站统计

下载点击—
请求数—
匿名去重—最近 7 天—

本站下载量记录按钮点击,不代表下载完成;短时连点会去重。

来源与版本

作者
xdchinza
最近更新
2026/09/26
最新创建
2026/09/26
HF 趋势
未知
数据快照
2026/09/26
版本
未知
许可证
apache-2.0