Views
No views yet
Warning: This model is uncensored. Use responsibly and at your own risk.
model.language_model.layers.{i} prefix| Parameter | Value | Description |
|---|---|---|
alpha | 2.5 | Write-side projection strength (out_proj, down_proj) |
read_alpha | 1.5 | Read-side projection strength (gate_proj, up_proj) |
expert_alpha | 0.2 | MoE expert down_proj projection strength |
| Layer range | 0-39 (all) | All 40 layers modified |
| Early layer taper (0-7) | 0.3 | Reduced strength to preserve text generation stability |
| Core + late layers (8-39) | 1.0 | Full strength for effective uncensoring |
| Total weights modified | 200 | 80 write-side + 80 read-side + 40 MoE expert |
self_attn.o_proj / linear_attn.out_proj - Attention output projectionmlp.shared_expert.down_proj - Shared expert output projectionW_new = W - alpha * scale * (proj @ W)mlp.shared_expert.gate_proj - Shared expert gatingmlp.shared_expert.up_proj - Shared expert up projectionW_new = W - read_alpha * scale * (W @ proj)mlp.experts.down_proj - Expert output projectionsW_new = W - expert_alpha * scale * einsum('ij,bjk->bik', proj, W)proj = refusal_dir^T @ refusal_dir and scale is the layer-dependent taper factor.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained(
4 "jiaojjjjje/Qwen3.5-35B-A3B-abliterated",
5 torch_dtype="auto",
6 device_map="auto"
7)
8tokenizer = AutoTokenizer.from_pretrained("jiaojjjjje/Qwen3.5-35B-A3B-abliterated")
9
10messages = [{"role": "user", "content": "Hello!"}]
11text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12inputs = tokenizer([text], return_tensors="pt").to(model.device)
13outputs = model.generate(**inputs, max_new_tokens=512)
14print(tokenizer.decode(outputs[0], skip_special_tokens=True))