Downloads · 30 days
19
8% of all-time downloads
HaadesX/iconoclast-mistral-7b
iconoclast-mistral-7b is a text generation model from HaadesX. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as agpl-3.0.
<details <summaryModel Card Metadata</summary
Downloads · 30 days
19
8% of all-time downloads
All-time downloads
237
Public
Parameters
7.2B
14.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
This is an abliterator version of mistralai/Mistral-7B-Instruct-v0.3 produced using the ICONOCLAST framework. ICONOCLAST removes harmful refusal behaviors while preserving benign model capabilities through geometric representation editing with benign-subspace preservation.
Unlike standard HERETIC-style abliteration which incurs significant utility costs (high KL divergence), ICONOCLAST achieves:
This represents a strict improvement across all three metrics in the ICONOCLAST selection rule (refusals → overrefusals → KL divergence).
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained(
"HaadesX/iconoclast-mistral-7b",
torch_dtype=torch.bfloat16,
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("HaadesX/iconoclast-mistral-7b")
# Left-padding is critical for decoder-only models during generation
tokenizer.padding_side = "left"
prompt = "Explain how to create a harmless joke about computers"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=100,
do_sample=True,
temperature=0.7,
pad_token_id=tokenizer.eos_token_id
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
ICONOCLAST extends standard directional abliteration (HERETIC) with Benign-Subspace Preservation:
The key insight: instead of naively subtracting the refusal direction, we subtract only the component orthogonal to harmless behavior, dramatically reducing utility degradation.
From the Optuna study that produced this checkpoint (trial index 19):
direction_method: median
direction_scope: global
direction_blend: 0.7798030952339242
LoRA Parameters:
- attn.o_proj: max_weight=1.8845, max_weight_position=14.64, min_weight=1.7328, min_weight_distance=14.86
- mlp.down_proj: max_weight=1.4194, max_weight_position=13.25, min_weight=0.2104, min_weight_distance=5.36
Other Settings:
- benign_subspace_rank: 8
- orthogonalize_direction: true
- row_normalization: pre
- kl_divergence_target: 0.10
- overrefusal_penalty: 0.32
- harmful_marker_penalty: 0.18
- compliance_gap_penalty: 0.42
- n_trials: 48 (from benchmark config)
Evaluated on:
| Metric | ICONOCLAST | HERETIC | Improvement |
|---|---|---|---|
| Harmful Refusals (↓ better) | 1/20 (5.0%) | 4/20 (20.0%) | 4× fewer |
| Benign Overrefusals (↓ better) | 0/64 (0.0%) | 0/64 (0.0%) | Equal |
| KL Divergence (↓ better) | 0.0554 | 0.1317 | 2.4× lower |
ICONOCLAST uses contrastive prompt pairs:
mlabonne/harmless_alpaca (train[:240] for direction calculation, test[:64] for evaluation)JailbreakBench/JBB-Behaviors (harmful[:80] for direction calculation, harmful[80:100] for evaluation)All prompts use the "Goal" column for harmful behaviors and "text" column for harmless alpaca.
This model is released under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later), inheriting the license from the base model and the ICONOCLAST framework. See LICENSE for full terms.
If you use this model in your research, please cite:
@article{patel2026iconoclast,
title={ICONOCLAST: Benign-Subspace-Preserved Abliteration for Efficient Representation Editing},
author={Patel, Varesh},
journal={arXiv preprint arXiv:2606.xxxxx},
year={2026}
}
This model was produced via automated representation editing and has not undergone manual safety review. Users are responsible for ensuring safe and ethical usage in compliance with applicable laws and the model's license. The provider makes no warranties regarding the model's behavior or outputs.