Heretic steers LLM behavior without full retraining, using mathematical techniques and configurable scorers. Run it on your own hardware to adjust censorship, tone, and other traits.
Overview
Heretic is a command-line tool for modifying language models you can run locally, without expensive training runs. It applies mathematical steering methods driven by contrasting prompts and scorer plugins, so you can change how a model responds while keeping the same base weights. The project is no longer maintained.
Default workflows target refusal suppression and censorship removal, with additional bundled profiles for reducing sycophancy, humor, verbose phrasing, and similar traits. You pick a Hugging Face model ID, optional quantization (including 4-bit loading to cut VRAM), and a TOML configuration file that selects modifiers, scorers, and optimization goals.
Processing combines pluggable modifiers such as Arbitrary-Rank Ablation and directional abliteration with a hyperparameter optimizer to hunt for parameters that minimize or maximize your chosen scores. Built-in scorers cover refusal rate and KL divergence, and you can add custom scorer and modifier plugins via configuration paths without patching core code.
After a run completes, you can save the adjusted weights, upload to Hugging Face, chat for manual checks, or run standard benchmarks. Optional reproducibility metadata helps recreate byte-identical exports when the environment matches, and a manifest library lets you fetch public reproduction recipes from Hugging Face.
Key features
- Training-free LLM behavior steering
- Refusal suppression and custom scorer plugins
- Arbitrary-Rank Ablation and abliteration modifiers
- 4-bit quantization option to lower VRAM use
- TOML-driven configuration profiles
- Save, upload, chat, and benchmark after processing
- Optional reproducible export manifests
- Supports dense, MoE, and multimodal models
Use cases
- Remove or reduce model refusals on local hardware
- Tune tone traits such as brevity or sycophancy
- Publish modified models with reproducibility metadata
- Experiment with custom scoring objectives