Skip to content

Heretic

Heretic is an open-source command-line tool that automatically removes safety filters and refusal behaviors from open-weight AI language models with minimal human effort.

Freemium · Command-line (Python 3.10+)

stork
I am a 3D character.
One 3D character and one typed sentence.
This 3D character was never animated.
A photo, a cartoon, a painting or a 3D character. From 10 cents a minute. Free to try.
Make a photo talkDevelopers: there is an API

What is Heretic?

Heretic is an AI model modification tool developed as an open-source project that enables researchers and users to automatically remove safety filters and refusal behaviors from open-weight AI language models. It achieves this by employing an advanced implementation of directional ablation, also known as "abliteration," combined with a Tree-structured Parzen Estimator (TPE)-based parameter optimizer powered by Optuna, without requiring expensive post-training or fine-tuning.

Key Features of Heretic

Heretic provides a suite of functionalities designed for the automated modification of large language models, focusing on the removal of inherent safety mechanisms.

  • Automatically removes safety filters from open-weight AI language models.
  • Eliminates refusal behaviors from transformer-based LLMs.
  • Utilizes directional ablation (abliteration) for targeted censorship removal.
  • Incorporates a Tree-structured Parzen Estimator (TPE) with Optuna for parameter optimization.
  • Co-minimizes refusal rates and KL divergence to preserve original model intelligence.
  • Requires Python 3.10 or later for local installation.
  • Offers an on-demand decensoring service via access tokens for various model sizes.
  • Provides visualization tools for residual vector transformations across layers.

Who Should Use Heretic?

Heretic is primarily designed for individuals and organizations engaged in AI research, model customization, and interpretability studies, offering a specialized tool for modifying LLM behavior.

  • Model Researchers: To explore internal model semantics and understand safety alignment mechanisms through ablation.
  • Model Customizers: To remove safety restrictions and obtain fully responsive models for specific, uncensored applications.
  • Performance Optimizers: To automatically balance censorship removal with the preservation of model quality and capabilities.
  • Interpretability Researchers: To visualize and analyze residual vector transformations within model layers to understand alignment changes.
  • Educational Learners: To gain practical understanding of language model safety alignment mechanisms and ablation techniques.

How to Use Heretic

Heretic is installed via pip and operated through a command-line interface, allowing users to process open-weight models for decensoring.

  1. Install Heretic using pip install heretic (requires Python 3.10+).
  2. Prepare an open-weight AI language model for processing.
  3. Execute Heretic via the command line, specifying the target model.
  4. Optionally, use the on-demand decensoring service by obtaining a "$HERETIC" access token.
  5. Submit supported models to the service to receive uncensored weights without local GPU requirements.
  6. Deploy the resulting uncensored model for desired applications or further research.

Heretic Pricing & Plans

The core Heretic tool is open-source and free to install and use locally. An associated on-demand decensoring service, however, operates on a freemium model tied to a "$HERETIC" access token, with tiers determining rate limits and supported model sizes.

  • OPENhold: 1 model per week, supporting models up to 4 billion parameters.
  • BEARERhold: 10 models per day, supporting models up to 12 billion parameters.
  • APOSTLEhold: 100 models per day, supporting models up to 70 billion parameters.
  • HERETIChold: Unlimited models of any size with priority access.

Pros

  • Automated removal of safety filters and refusal behaviors from LLMs.
  • Preserves original model intelligence with low KL divergence (e.g., 0.16).
  • Open-source and accessible via pip install for local use.
  • Offers an on-demand decensoring service for various model sizes without local GPU.
  • Outperforms manual ablation and some other abliteration tools in benchmarks.
  • Provides a training-free alternative to expensive fine-tuning for decensoring.

Cons

  • Requires Python 3.10 or later for local installation.
  • On-demand service tiers are limited by access token and wallet balance.
  • Primarily a command-line tool, lacking a graphical user interface.
  • Focuses specifically on filter removal, not general model deployment or interaction.
  • Raises ethical concerns among policymakers regarding uncensored AI capabilities.

Heretic vs Competitors

Heretic distinguishes itself in the AI tool landscape by offering an automated, training-free solution for removing safety filters from LLMs, often outperforming manual methods and other abliteration tools in efficiency and quality.

See every Heretic alternative, compared

Heretic

Freemium · Command-line (Python 3.10+)

From the Stork blog

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking