heretic

Fully automatic censorship removal for language models

23 articles 8.2k View on GitHub ↗
23 articles
How to Customize System Prompts and Model Behavior in Heretic's Chat Interface

Customize Heretic's chat interface system prompts and model behavior. Learn to modify config.py, use environment variables, or CLI flags for tailored AI interactions.

how-to-guide
Feb 19, 2026
Understanding Pareto Front Results in Heretic: How to Choose Optimal Decensoring Parameters

Learn how Heretic presents Pareto front results balancing refusal reduction and KL divergence. Choose optimal decensoring parameters based on your specific trade-offs for better model control.

deep-dive
Feb 19, 2026
How to Interpret and Use Optuna Trial Results in Heretic: A Complete Guide

Learn to interpret and use Optuna trial results in Heretic. Understand hyperparameters, KL divergence, and refusal counts to reconstruct your model state with this complete guide.

how-to-guide
Feb 19, 2026
How to Add Support for New Model Architectures in Heretic: A Complete Guide

Learn how to add support for new model architectures in Heretic by modifying three key Python functions. This guide simplifies integrating custom models into the Heretic framework.

how-to-guide
Feb 19, 2026
How to Debug Issues with Loading Prompt Datasets in Heretic

Solve Heretic prompt dataset loading problems. Debug `DatasetSpecification`, split, and column issues using `load_prompts`. Run loading logic interactively for faster issue resolution.

how-to-guide
Feb 19, 2026
How to Upload Decensored Models to Hugging Face Using Heretic

Upload decensored models to Hugging Face securely with Heretic. This guide shows you how to use the interactive CLI to push adapters or merged models without saving credentials.

how-to-guide
Feb 19, 2026
How to Configure Multi-GPU and Device Mapping for Heretic: A Complete Guide

Configure multi-GPU and device mapping for Heretic using device_map and max_memory in TOML, CLI, or env variables. Optimize your performance with this complete guide.

how-to-guide
Feb 19, 2026
Row Normalization Strategies in Heretic: A Complete Guide to LoRA Abliteration

Explore Heretic's three row normalization strategies NONE PRE and FULL Understand how to use them to balance computational speed and weight magnitude preservation for LoRA adapters

deep-dive
Feb 19, 2026
How Heretic's Winsorization Handles Massive Activations in Language Models

Learn how Heretic's winsorization effectively handles massive activations in language models by calculating per-layer quantile thresholds and capping extreme values for numerical stability.

deep-dive
Feb 19, 2026
Benefits of Using orthogonalize_direction in Heretic for Targeted Model Abliteration

Learn how orthogonalize_direction in Heretic removes harmful refusal components while preserving model helpfulness for targeted abliteration. Improve model safety today.

deep-dive
Feb 19, 2026
Understanding direction_index and Layer Selection in Heretic's Ablation Scope

Master Heretic's ablation scope with precise control over direction_index and layer selection. Learn how these parameters fine-tune your model's refusal directions for optimal results.

deep-dive
Feb 19, 2026
How to Tune Batch Size and Optimize Performance in Heretic

Learn how to tune batch size and optimize performance in Heretic. automatically benchmark for optimal throughput or set a max batch size to prevent memory errors. Boost your computational efficiency.

performance
Feb 19, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →