The open-source Heretic project is offering developers a way to modify the behavior of compatible language models without carrying out a conventional training run. Its maintainers describe the software as a local toolkit for changing traits such as refusal behavior, verbosity and sycophancy by comparing prompts, evaluating outputs and adjusting model weights.
Heretic supports dense models as well as several mixture-of-experts, multimodal and hybrid architectures, according to its project documentation. The default setup targets refusal suppression, but users can select other configuration files or create their own. The project requires Python 3.10 or later and PyTorch 2.6 or later, with installation tailored to the user's hardware.
Rather than running a standard fine-tuning process, Heretic combines a model modifier with an Optuna-based hyperparameter search. Scorer plug-ins assess candidate changes, and the optimizer searches for parameters that move those scores in the chosen direction. The supplied scorers include a keyword-based refusal-rate measure and a Kullback-Leibler divergence measure. Developers can add their own scorers without changing the core package, giving them control over what the modification process rewards or penalizes.
The default modifier uses a technique the project calls Arbitrary-Rank Ablation. Heretic also includes a directional-ablation implementation, often called abliteration, with options for projected ablation and norm preservation. A single modifier can be selected for each run, while multiple scorer instances can be combined. Those features make the project less of a one-click model download and more of an experimentation framework whose results depend on its configuration and evaluation choices.
The maintainers say a run on the Qwen3 4B instruct model takes roughly 30 to 40 minutes on an Nvidia RTX 3090 under the default configuration. After processing, the tool can save the model, upload it to Hugging Face, open a test chat or run standard benchmarks. That timing is a project-provided example rather than an independent performance result and will vary with the model, hardware and settings.
Heretic also supports optional reproducibility manifests for exported models. A manifest records the environment and information needed to attempt reconstruction, while the tool checks the resulting weight-file hashes. The documentation cautions that exact output still depends on matching hardware, drivers, operating system and software versions because PyTorch does not guarantee identical operations across differing environments. The result is a portable recipe for model modification, not a promise that every machine will produce byte-for-byte identical weights.
Because the system directly modifies model weights, users must still judge the resulting model’s safety, accuracy and suitability for deployment. The documentation explains modification mechanics and benchmark options, but it does not turn a chosen behavioral objective into a general quality guarantee.



