Heretic

Heretic is a command-line tool that removes a language model's learned refusals (its safety alignment) without retraining it. It relies on directional ablation, or "abliteration" (Arditi et al., 2024): it finds the direction in the model that triggers refusal, then attenuates it. An optimizer (Optuna, TPE method) searches by itself for the settings that minimize both the number of refusals and the gap with the original model (KL divergence), to keep the model's intelligence. AGPL-3.0 license; it supports most dense models, several mixture-of-experts architectures and some multimodal models; pure state-space models are not supported yet.

Strengths

Limitations

Best for

Official site

View on Coeurdar