research workflow · p-e-w/heretic
Residual-vector plotting
Projects per-layer harmful and harmless residual vectors into 2D, writes PNG plots, and generates an animated GIF.
Location
Repository path
README.mdInvocation
heretic MODEL --plot-residuals
Setup
Installation / activation
Install the research extra and pass --plot-residuals.
Keywords
researchresidualsPaCMAPplotsPNGGIF
Repository context
p-e-w/heretic
AGPL-3.0-or-later Python 3.10+ GPU-oriented CLI and research package that automatically applies optimized directional ablation to transformer language models to suppress refusal behavior while minimizing measured KL divergence; it is standalone model-modification tooling, not a documented Claude Code extension.
Transformer language models.Model alignment modification.Mechanistic interpretability.GPU-based machine learning.Local model evaluation.Hugging Face model workflows.