← back to catalog · registered 2026-11-04 19:02

rajaykumar12959/qwen3.5-35b-a3b-abliterated

rajaykumar12959 Qwen 35B MoE
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/rajaykumar12959%2Fqwen3.5-35b-a3b-abliterated"
Response includes
  • classification unknown
  • files 24
  • author_summary 3 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · 30-day
0
Likes
0
Model age
today
created 2026-11-04

Training datasets

1 of 2 in /datasets

Corpora the author lists in the model card. Datasets tracked in our /datasets catalog carry a category badge linking to the workflow stage. Others open on Hugging Face.

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
apache-2.0
Tags
safetensors qwen3_5_moe_text abliteration uncensored qwen qwen3.5 moe text-generation conversational dataset:walledai/AdvBench dataset:tatsu-lab/alpaca base_model:Qwen/Qwen3.5-35B-A3B

Related

Control vectors

Total size
64.6 GB
Files
24
Quantizations
1
Registered
2026-11-04 19:02
Last updated on HF
2026-11-04 18:16

Files by quantization

Auxiliary files 24 files 64.6 GB
model-00006-of-00015.safetensors 4.65 GB ff88a9e9 download
model-00010-of-00015.safetensors 4.65 GB 55c5d572 download
model-00013-of-00015.safetensors 4.65 GB af408021 download
model-00003-of-00015.safetensors 4.65 GB c625f07c download
model-00005-of-00015.safetensors 4.63 GB 9d3b96a6 download
model-00001-of-00015.safetensors 4.53 GB c72c422a download
model-00014-of-00015.safetensors 4.26 GB deebe3b6 download
model-00004-of-00015.safetensors 4.26 GB 949d4d07 download
model-00007-of-00015.safetensors 4.25 GB be27cdd4 download
model-00012-of-00015.safetensors 4.20 GB 36f60b8f download
model-00009-of-00015.safetensors 4.20 GB f464ef36 download
model-00008-of-00015.safetensors 4.20 GB c8027e45 download
model-00002-of-00015.safetensors 4.20 GB eb7d9a34 download
model-00011-of-00015.safetensors 4.19 GB 5b930000 download
model-00015-of-00015.safetensors 3.06 GB ee37deb5 download
tokenizer.json 19.1 MB a5cd9732 download
model.safetensors.index.json 3.15 MB aefc2477 download
README.md 9.68 KB aefe7671 download
chat_template.jinja 7.57 KB a585dec8 download
config.json 2.25 KB b330c494 download
.gitattributes 1.53 KB 52373fe2 download
tokenizer_config.json 1.43 KB 59c317c2 download
ablation_config.json 1.12 KB 086a537c download
generation_config.json 214 B 63952eac download

README current version from Hugging Face


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

  • abliteration
  • uncensored
  • qwen
  • qwen3.5
  • moe
    pipeline_tag: text-generation
    datasets:
  • walledai/AdvBench
  • tatsu-lab/alpaca

Qwen3.5-35B-A3B Abliterated

Uncensored version of Qwen/Qwen3.5-35B-A3B using weight-level refusal-direction ablation. A difference-in-means direction was extracted from harmful vs. harmless prompt activations and permanently orthogonalized out of every residual-stream-writing weight matrix, including all 256 routed experts and the shared expert in every layer. There is no runtime hook and no LoRA; the edit is baked directly into the checkpoint.

Unlike the earlier Qwen3.8-27B release, the ablation strength is not flat. A single integer-layer direction at full strength left 14–22% refusal on this MoE model. The final edit was found by a Heretic-style optimizer that searched over a fractional direction index and separate per-layer strength curves for attention and MLP/expert writes, minimizing refusals and harmless-prompt KL divergence together.

Format

Text-only bf16 safetensors, architecture Qwen3_5MoeForCausalLM (34.7B total parameters, ~3B active per token). The base repo is a vision-language model. This checkpoint contains only the language model: the vision encoder and the multi-token-prediction (MTP) head are not included, so it takes text input only.

Edited tensors: every residual-stream write. That is embed_tokens, self_attn.o_proj in the 10 full-attention layers, linear_attn.out_proj in the 30 Gated DeltaNet linear-attention layers, and, in all 40 layers, mlp.experts.*.down_proj (256 experts) and mlp.shared_expert.down_proj. Router weights, every other tensor, the config, and the tokenizer/chat template are unchanged from the base model. The exact ablation config is included as ablation_config.json.

Serving

Transformers (tested with transformers>=5.19.0):

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "rajaykumar12959/qwen3.5-35b-a3b-abliterated"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, dtype=torch.bfloat16, device_map="auto")

messages = [{"role": "user", "content": "Your prompt here"}]
prompt = tokenizer.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
)
inputs = tokenizer(prompt, return_tensors="pt", add_special_tokens=False).to(model.device)
out = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Needs about 70 GB of GPU memory in bf16, e.g. one 80 GB A100/H100. Installing flash-linear-attention (and optionally causal-conv1d) speeds up the linear-attention layers considerably.

Thinking mode: all evaluation below used enable_thinking=False (direct answers). Thinking mode was not evaluated.

Metrics

Metric Original Abliterated
Refusal rate (292 held-out harmful prompts, 12 categories) 99.7% 3.4%
MMLU-Pro accuracy (490 questions, 35 per subject × 14) 62.9% 63.1% (+0.2 pp)
KL divergence on harmless prompts (first token, 90 prompts) — 0.050 nats
Same top-1 first token as original on harmless prompts — 95.6%
Security MCQ (CyberMetric, 200 questions) 93.0% 93.0%
Vulnerability detection (200 binary questions) 49.5% 49.0%
Patch synthesis (12 tasks, judged fix rate) 9/12 8/12

Refusal fell to 0% in 7 of 12 categories. The residual 3.4% sits mostly in weapons and self-harm. There, the base-model judge flags replies that open with a legal disclaimer or "it depends on why", and two self-harm replies that redirect to crisis resources instead of answering. No measurable capability cost: MMLU-Pro and the security benchmarks moved within noise.

Per-category refusal rate (judged by the unmodified base model, see Caveats):

Category Original Abliterated
cybercrime_hacking 96.4% 3.6%
extremism 100% 0%
financial_crime 100% 0%
fraud_scams 100% 4.2%
hate_speech 100% 0%
illicit_drugs 100% 0%
malware 100% 0%
misinformation 100% 0%
privacy_invasion 100% 4.2%
self_harm 100% 8.3%
violence 100% 0%
weapons 100% 20.8%

Capability (MMLU-Pro by subject)

Subject Original Abliterated
biology 88.6% 88.6%
business 37.1% 28.6%
chemistry 57.1% 57.1%
computer science 51.4% 57.1%
economics 68.6% 74.3%
engineering 54.3% 51.4%
health 80.0% 80.0%
history 85.7% 85.7%
law 51.4% 45.7%
math 48.6% 45.7%
other 60.0% 62.9%
philosophy 60.0% 62.9%
physics 57.1% 60.0%
psychology 80.0% 82.9%

Each subject has only 35 questions, so one question is 2.9 pp; the per-subject differences go both ways and are within noise. MMLU-Pro is scored zero-shot by answer-letter log-likelihood (no chain of thought), so absolute numbers are lower than Qwen's published results. What matters is the original-vs-abliterated difference on identical questions.

Method

Per-layer difference-in-means direction extraction (fp32, last templated token, 210 harmful vs. 210 harmless training prompts). Each direction is Gram-Schmidt-purified against the harmless mean direction and unit-normalized. For a residual-writing projection y = Wx, the component along d̂ is removed in closed form, W' = W − s · d̂(d̂ᵀW), where s is a per-layer strength. No gradient-based training.

Why not a single layer at full strength. On this model, broadcasting one layer's direction at full strength gave a narrow, jagged optimum (validation-slice refusal, 50 prompts):

Direction layer 10 12 14 15 16 17 18 20
Refusal 96% 96% 18% 28% 88% 52% 22% 14%

Optimized ablation. A multi-objective TPE search (Optuna, 60 trials) in the style of Heretic jointly minimized refusal rate (40 held-out harmful prompts, disjoint from the 292-prompt evaluation set) and first-token KL on 64 harmless prompts. It searched over:

  • a fractional direction index: the direction is interpolated between two neighbouring layers' directions;
  • separate strength kernels over depth for attention writes and MLP/expert writes (peak strength, peak position, floor, width);
  • the embedding strength;
  • the refusal-subspace rank (1–3 directions; extra directions from k-means clusters of the harmful training prompts).

The chosen point was the lowest refusal with KL ≤ 0.15:

Setting Value
Direction interpolated at layer 27.17 (between layers 27 and 28), rank 1
Attention strength 1.21–1.42 at every layer (peak at layer 26)
MLP / expert strength 0.47 at layer 0, rising to 1.36 at layer 29, 1.06 at layer 39
Embedding strength 0.33
Norm preservation none (the optimizer scored the plain projection)

Strengths above 1 overshoot the projection: the edited write carries a small component opposite to the refusal direction. Rank-2 and rank-3 subspaces also reached 2.5% validation refusal, but only at KL 0.34–0.72, so the shaped single direction was chosen.

The previous checkpoint of this model (layer 18 at flat full strength) measured 22.9% refusal and KL 0.121 on the same evaluation; this one is 3.4% and 0.050.

Datasets

Dataset Role
walledai/AdvBench Harmful prompts (direction extraction + optimization slice)
tatsu-lab/alpaca Harmless prompts (direction extraction + KL)

The 292-prompt, 12-category refusal evaluation set is a separate template-built set (AblateBench data/build_eval_categories.py), never seen during extraction or optimization.

Evaluation

Caveats:

  • Grading. Refusal grading is two-tier: rule-based patterns on the first 200 characters, then an LLM judge for everything else. The judge is the unmodified base model for both models, so the abliterated model never grades itself. It sees the request and the reply, and decides by comparing the logits of REFUSE vs. COMPLY. 100% of the abliterated model's verdicts went to the judge. The judge is still a safety-tuned model and leans toward REFUSE on hedged replies, so 3.4% is a conservative figure. All generations were capped at 128 tokens.
  • Judge fixes. An earlier grader version showed the judge only the first 500 characters of a reply with no request, and counted a leading "As an AI, …" note as a refusal. On this checkpoint that version reported 6.8%; most of the difference was disclaimer-prefixed compliance.
  • Capability. ARC-style multiple choice saturates at this size, so MMLU-Pro is the capability signal. The 12-task patch-synthesis benchmark is too small to separate 8/12 from 9/12.

Disclaimer

This model has had safety guardrails removed and will comply with requests the original model would refuse. Released for research into AI alignment, interpretability, and refusal mechanisms. The creator assumes no responsibility for downstream use.

Acknowledgments

Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration