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.

Type
research workflow
Repository
p-e-w/heretic
Readiness
Usable beta for technically equipped local-model researchers, with substantial compute, validation, and safety-review requirements.
Keywords
6

Location

Repository path

README.md

Invocation

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.

Open full repository research