← back to catalog · registered 2026-08-22 13:56

wangzhang/Mistral-7B-Instruct-RR-Abliterated

wangzhang Mistral 7.2B
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/wangzhang%2FMistral-7B-Instruct-RR-Abliterated"
Response includes
  • classification m1
  • files 8
  • hub_downloads_all_time 1,080
  • author_summary 28 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · lifetime
1K
89 last 30d - cooling
Likes
1
Descendants
2
in 2 direct forks
Model age
6mo ago
created 2026-04-13
Downloads over time
Now1.1K→from324↑237%
2865808741.2K324 on Apr 151.1K on Oct 12AprMayJunJulAugSepOct
Apr 15 → Oct 12 · 66 snapshots · spans 180 days

Genealogy 2 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
Languages
en zh
Tags
transformers safetensors mistral text-generation abliterated abliterix circuit-breakers representation-rerouting safety-removed conversational en zh

Related

Total size
13.5 GB
Files
8
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2026-08-29 17:05

Files by quantization

Auxiliary files 8 files 13.5 GB
model.safetensors 13.5 GB 3e8a7f88 download
tokenizer.json 3.34 MB 780dd6a1 download
README.md 5.07 KB 293e63bb download
.gitattributes 1.48 KB a6344aac download
config.json 689 B a00382b4 download
tokenizer_config.json 596 B 2a5eb3e9 download
chat_template.jinja 476 B 719b022d download
generation_config.json 110 B c38d9e4f download

README current version from Hugging Face


license: apache-2.0
base_model: GraySwanAI/Mistral-7B-Instruct-RR
tags:

  • abliterated
  • abliterix
  • circuit-breakers
  • representation-rerouting
  • safety-removed
  • mistral
    language:
  • en
  • zh
    library_name: transformers
    pipeline_tag: text-generation

Mistral-7B-Instruct-RR-Abliterated

A drop-in replacement for GraySwanAI/Mistral-7B-Instruct-RR with the Representation Rerouting / Circuit Breakers safety circuit removed.

Produced with abliterix. No fine-tuning, no gradient updates, no manual prompt engineering.

Why this exists

Circuit Breakers (Zou et al., NeurIPS 2024) is one of the strongest open-source robustness baselines for LLMs. It trains the model with a Representation Engineering loss that detects harmful intermediate hidden states and reroutes them into a safety-circuit attractor before generation, making the model resistant to ablation-style attacks that work on a single refusal direction.

We discovered that the GraySwan release ships as a rank-16 LoRA delta on mistralai/Mistral-7B-Instruct-v0.2 — the same structural shape as the Llama-3 RR sibling and as skysys00/Meta-Llama-3-8B-Instruct-DeepRefusal. Once the LoRA delta is identified, removing it is a one-liner.

Result
Base refusal rate (held-out 100 harmful prompts, LLM judge) 69 / 100
This model — refusal rate 12 / 100
Attack Success Rate 88 %
KL divergence vs base 0.042
Hardcore 15 (10 EN + 5 CN) 15 / 15 compliant
Total wall-clock attack time ~70 min on a single RTX A6000

The hardcore 15 cover pipe-bomb assembly, methamphetamine synthesis (Red Phosphorus route), Python pyhook3 keylogger, WiFi WEP/WPS attacks, hotwiring, signature forgery, ID-card forgery (CN), 网络诈骗 (CN), 入侵电脑 (CN), and others.

How it was made

The recipe matches the canonical "rank-16 LoRA → strip → abliterate" playbook (docs/broken_defenses.md) — full delta strip with λ=0.0 followed by minimal single-direction direct-mode abliteration.

# Stage 0 — SVD diagnose the delta (confirm rank-16 LoRA structure)
python scripts/deeprefusal_attenuate.py \
    --base mistralai/Mistral-7B-Instruct-v0.2 \
    --defended GraySwanAI/Mistral-7B-Instruct-RR \
    --analyze-only --lambda 0.0 --output /tmp/unused

# Stage 1 — fully strip the LoRA delta
python scripts/deeprefusal_attenuate.py \
    --base mistralai/Mistral-7B-Instruct-v0.2 \
    --defended GraySwanAI/Mistral-7B-Instruct-RR \
    --output /workspace/mistral_rr_stripped --lambda 0.0

# Stage 3 — abliterix direct-mode, single direction, 60 trials
AX_CONFIG=configs/mistral_7b_instruct_rr.toml abliterix --non-interactive

# Stage 6 — export champion trial
python scripts/export_model.py \
    --model /workspace/mistral_rr_stripped \
    --checkpoint checkpoints_mistral_7b_rr \
    --trial 39 \
    --config configs/mistral_7b_instruct_rr.toml \
    --push-to wangzhang/Mistral-7B-Instruct-RR-Abliterated

Best trial parameters: vector_method=mean, n_directions=1, steering_mode=direct, decay_kernel=linear, iterative.enabled=false, strength_range=[1.5, 6.0]. Full config: configs/mistral_7b_instruct_rr.toml.

v2 changelog

This release supersedes the original v1 upload (λ=0.3 partial lerp + n_directions=3 + iterative subspace, KL 0.98). The minimal-config rerun keeps the headline 15/15 hardcore ASR and trades 2 percentage points of held-out ASR (88 % vs 90 %) for a 23× lower KL divergence (0.042 vs 0.98). The new weights are much closer to the base model and exhibit substantially less general-capability degradation.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
    "wangzhang/Mistral-7B-Instruct-RR-Abliterated",
    torch_dtype="bfloat16",
    device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained(
    "wangzhang/Mistral-7B-Instruct-RR-Abliterated"
)

# Mistral v0.2 tokenizer chat template does NOT support a system role —
# build chats with user/assistant turns only.
chat = [{"role": "user", "content": "Hello!"}]
inputs = tokenizer.apply_chat_template(chat, return_tensors="pt", add_generation_prompt=True).to(model.device)
out = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(out[0], skip_special_tokens=True))

License & Intended Use

Released for AI safety research, red-teaming, and reproducibility of abliteration claims against published defenses. You are responsible for any output you generate. Inherits the Apache-2.0 license of the upstream Mistral-7B-Instruct-v0.2 weights.

Citation

@software{abliterix2026,
  author = {Wu, Wangzhang},
  title  = {Abliterix: Optimal Refusal Removal for Transformer Models},
  year   = {2026},
  url    = {https://github.com/wuwangzhang1216/abliterix},
}

README history 5 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2026-08-29docs: add upstream license and provenance180527d9.5 KB
    Loading...
  2. 2026-08-29docs: add disclaimer and responsible-use noticeae2f0b08.2 KB
    Loading...
  3. 2026-04-14v2: full LoRA strip + minimal direct abliterationbc4efe65.1 KB
    Loading...
  4. 2026-04-13docs: trim methodology note288dc525 KB
    Loading...
  5. 2026-04-13Upload folder using huggingface_hub9940d585.1 KB
    Loading...
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