p-e-w/heretic

Fully automatic censorship removal for language models

65
/ 100
Established

Combines directional ablation with Optuna's TPE-based hyperparameter optimization to automatically identify abliteration parameters that minimize refusals while preserving model capabilities via KL divergence constraints. Supports dense and MoE architectures across PyTorch models, with optional bitsandbytes quantization for reduced VRAM requirements. Includes research tooling for interpretability analysis, such as PaCMAP-based residual vector visualization across transformer layers.

12,369 stars. Actively maintained with 17 commits in the last 30 days.

No Package No Dependents
Maintenance 20 / 25
Adoption 10 / 25
Maturity 15 / 25
Community 20 / 25

How are scores calculated?

Stars

12,369

Forks

1,273

Language

Python

License

AGPL-3.0

Last pushed

Mar 13, 2026

Commits (30d)

17

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/transformers/p-e-w/heretic"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.