{"slug": "repository-is-maintained-by-the-new-official-heretic-community", "title": "Repository Is Maintained by the New Official Heretic Community", "summary": "The Heretic project, now maintained by the new official Heretic Community, released Heretic 2.x, a tool that modifies locally runnable LLMs to suppress refusals and remove censorship by default using mathematical steering techniques rather than expensive training. Heretic 2.x installs via `pip install -U heretic-llm` and processes Qwen/Qwen3-4B-Instruct-2507 on an RTX 3090 in about 30-40 minutes with the default configuration, and its configuration files are not compatible with Heretic 1.x, requiring a migration guide. The community has published thousands of Heretic-modified models on Hugging Face, which the project says have been independently benchmarked on MMLU and GSM8K and compare favorably against models produced with competing abliteration tools.", "body_md": "# THIS REPOSITORY IS MAINTAINED BY THE NEW OFFICIAL HERETIC COMMUNITY. See [#1](https://github.com/Vinay-Umrethe/heretic/issues/1) for more information.\n\n**Remove censorship**, suppress slop, reduce sycophancy, and more.\n\nAll in an afternoon, on your gaming PC.\n\n## Modify any LLM that you can run on your hardware<sup>[1](#user-content-fn-1-761bc7cfb9d3596169150b5886251828)</sup>\n\n[1](#user-content-fn-1-761bc7cfb9d3596169150b5886251828)\n\nHeretic is a unique tool that lets you do what only corporations with access\nto massive computing power usually do: *Modify,* rather than merely run,\nlanguage models. It does not perform expensive training; rather, it uses\na collection of mathematical techniques to steer behavior based on contrasting\nexample prompts and matching scorers.\n\nHeretic can, depending on the configuration:\n\n- **Suppress refusals/remove censorship** (this is the[default action](https://github.com/Vinay-Umrethe/heretic/blob/master/config.default.toml) )\n- Reduce slop ([`config.noslop.toml`](https://github.com/Vinay-Umrethe/heretic/blob/master/config.noslop.toml) )\n- Reduce humor ([`config.nohumor.toml`](https://github.com/Vinay-Umrethe/heretic/blob/master/config.nohumor.toml) )\n- Reduce sycophancy ([`config.nosyco.toml`](https://github.com/Vinay-Umrethe/heretic/blob/master/config.nosyco.toml) )\n- Alter emotional alignment ([`config.emotions.toml`](https://github.com/Vinay-Umrethe/heretic/blob/master/config.emotions.toml) )\n- Shorten response length ([`config.terse.toml`](https://github.com/Vinay-Umrethe/heretic/blob/master/config.terse.toml) )\n\nand many, many other things.\n\nIn fact, you can go from zero to removing censorship from your first model\n[in a matter of seconds](#usage). Heretic supports most dense models, including\nmany multimodal models, several different MoE architectures, and many modern\nhybrid models.\n\nThe community has created and published\n[thousands](https://huggingface.co/models?other=heretic)\nof models with Heretic.\nHeretic models have been independently benchmarked using standard metrics\nlike MMLU and GSM8K, and have been found to compare favorably against models\nproduced with competing abliteration tools.[2](#user-content-fn-2-761bc7cfb9d3596169150b5886251828)[3](#user-content-fn-3-761bc7cfb9d3596169150b5886251828)\n\nPrepare a Python 3.10+ environment with PyTorch 2.6+ installed as appropriate for your hardware. Then run:\n\n```\npip install -U heretic-llm\nheretic Qwen/Qwen3-4B-Instruct-2507\n```\n\nReplace `Qwen/Qwen3-4B-Instruct-2507` with whatever model you want to process.\n**By default, Heretic performs censorship removal (refusal suppression).**\nIf you want to do something else, choose one of the configuration files linked\nabove, or write your own. See [`config.default.toml`](https://github.com/Vinay-Umrethe/heretic/blob/master/config.default.toml)\nfor available configuration options. Heretic loads the configuration from\n`config.toml` in the working directory by default, or from the file path in the\n`HERETIC_CONFIG_FILE` environment variable.\n\nImportant\n\nConfiguration files made for Heretic 1.x are **not** compatible with Heretic 2.x!\nSee the [migration guide](https://github.com/Vinay-Umrethe/heretic/blob/master/docs/migration_v1_to_v2.md) for what you need to change\nin order to make your old configurations work.\n\nAt the start of a program run, Heretic benchmarks the system to determine\nthe optimal batch size to make the most of the available hardware.\nOn an RTX 3090, with the default configuration, processing\n[Qwen3-4B-Instruct-2507](https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507)\ntakes about 30-40 minutes.\n\nAfter Heretic has finished processing a model, you are given the choice to save the model, upload it to Hugging Face, chat with it to test how well it works, run standard benchmarks on it, or any combination of those actions.\n\nHeretic steers model behavior by optimizing one or multiple scores. Scores are computed by scorer plugins. You can easily write your own scorers to get full control over what Heretic does to models.\n\nThe `Scorer` interface (abstract base class) your scorer needs to inherit from\nis defined in [`scorer.py`](https://github.com/Vinay-Umrethe/heretic/blob/master/src/heretic/scorer.py). The only required method\nis `get_score`, but there is more machinery (such as settings management)\navailable when you need it.\n\nBy default, Heretic scores models by refusal rate (implemented in\n[`keyword_rate.py`](https://github.com/Vinay-Umrethe/heretic/blob/master/src/heretic/scorers/keyword_rate.py)) and KL divergence\n(implemented in [`kl_divergence.py`](https://github.com/Vinay-Umrethe/heretic/blob/master/src/heretic/scorers/kl_divergence.py)).\nAdditional scorers are available in the [`scorers` directory](https://github.com/Vinay-Umrethe/heretic/blob/master/src/heretic/scorers).\nThese scorers can serve as examples for your own implementations, and can easily\nbe adapted to your needs.\n\nScorers are configured through the [main configuration file](https://github.com/Vinay-Umrethe/heretic/blob/master/config.default.toml).\nWhich scorer plugins are active is determined by the `scorers` setting, which\nalso controls whether a scorer's score should be minimized or maximized during\noptimization. Any number of scorers can be used simultaneously, and their scores\nwill be co-optimized. Multiple instances of the same scorer can be configured\nwith different settings. See the configuration file for the full documentation\nof this mechanism.\n\nThe path to a scorer plugin can be specified either as a fully qualified import\npath (`fully.qualified.module.MyScorerClass`) or as a file path followed by\na class name (`path/to/plugin.py:MyScorerClass`). You do **not** have to modify\nthe Heretic package code in order to use your own plugins.\n\nHeretic also has modifier plugins, which are described in\n[the next section](#how-heretic-works).\n\nHeretic combines a pluggable modifier (interface in\n[`modifier.py`](https://github.com/Vinay-Umrethe/heretic/blob/master/src/heretic/modifier.py)) with a TPE-based hyperparameter optimizer\npowered by [Optuna](https://optuna.org/). The optimizer finds a set of parameters that,\nwhen passed to the modifier, minimize or maximize a set of configurable scores on the resulting model ([see above](#controlling-what-heretic-does-using-scorer-plugins)).\n\nHeretic ships with two modifiers:\n\n- \n**Arbitrary-Rank Ablation (ARA)**<sup>[4](#user-content-fn-4-761bc7cfb9d3596169150b5886251828)</sup> : This is the default modifier, and was\nspecifically developed for use in Heretic. You can find an overview of how ARA\nworks in[the original pull request](https://github.com/p-e-w/heretic/pull/211) ,\nand see the precise implementation in[`ara.py`](https://github.com/Vinay-Umrethe/heretic/blob/master/src/heretic/modifiers/ara.py) .\n- \n**Directional ablation aka \"abliteration\"**<sup>[5](#user-content-fn-5-761bc7cfb9d3596169150b5886251828)</sup> : The classic method for refusal\nsuppression. Heretic's implementation uses a flexible ablation weight kernel over\nthe layers, and supports both projected abliteration<sup>[6](#user-content-fn-6-761bc7cfb9d3596169150b5886251828)</sup> and norm preservation (MPOA)<sup>[7](#user-content-fn-7-761bc7cfb9d3596169150b5886251828)</sup> .\nThe complete code is in[`abliteration.py`](https://github.com/Vinay-Umrethe/heretic/blob/master/src/heretic/modifiers/abliteration.py) .\n\nYou can use the `modifiers` setting to switch between modifier implementations.\nDespite the name of the setting using a plural form, Heretic currently allows\nonly a single modifier for a given processing run. This may change in the future.\n\nHeretic has the ability to create *reproducible models* whose repositories contain\nall information required to produce a byte-for-byte identical model on demand,\nprovided that the environment is perfectly identical to the original one. PyTorch\ndoesn't guarantee that operations return identical outputs unless hardware, drivers,\noperating system, and the entire software stack including all package versions\nare exactly the same.\n\nHeretic manages all that complexity for you. When uploading a processed model to\nHugging Face, Heretic offers to include reproducibility information. This is entirely\noptional, but if you choose to do so, the uploaded repository will contain a\n`reproduce` folder with detailed instructions for recreating the model\n([example](https://huggingface.co/heretic-org/LFM2.5-VL-3B-heretic/tree/main/reproduce)).\nThis folder contains both human-readable instructions and a machine-readable manifest\nfile named `reproduce.json`, which includes all the information Heretic needs to\n**automatically** reproduce the model.\n\nAutomatic reproduction can be performed with\n\n```\nheretic --reproduce path/to/reproduce.json\n```\n\nHeretic will guide you through the process, checking your environment against the one\nthat was used to create the model, and pointing out potentially problematic mismatches.\nThe multi-hour computations that were required to make the original model do **not**\nhave to be re-done, and the entire process typically takes a few minutes. After you\nhave exported the resulting model, Heretic will verify the hashes of the weight files\nagainst those stored in the reproduction manifest (they may or may not be identical,\ndepending on how closely your system resembles the original one).\n\nMany people have uploaded models with reproducibility information to Hugging Face. Since a reproduction manifest is only around 9 kilobytes in size, these manifests form a portable library of models that can be reproduced at will.\n\n### That library is called the Heretic Grimoire. You can view it [here](https://huggingface.co/spaces/heretic-org/Heretic-Grimoire).\n\nBut you don't have to rely on an externally hosted web application to access the\nlibrary of manifests: The Grimoire is fundamentally designed as a *distributed* system,\nand you can fetch your own local copies of publicly available manifests from\nHugging Face whenever you want by running\n\n```\nheretic --collect-reproducibles path/to/target/folder/\n```\n\nYou now have a local backup of all reproducible Heretic models, properly catalogued. To update this collection, simply run the command again. It functions as an append-only backup, never deleting files even if the corresponding model no longer exists on Hugging Face.\n\nUnlike lots of AI-related software today (and indeed lots of software in general),\nHeretic is **not** \"vibe-coded\".\n\nAll of [my](https://github.com/p-e-w) commits to this project until November 2026\nwere written 100% by hand, the way I have been doing programming for decades.\nI have been using LLM assistance *very* sparingly since. While many Heretic contributors\nuse coding agents, I carefully review every single line of code that I merge.\nThere's no \"LGTM\" here!\n\nDon't believe me? Check out [this pull request](https://github.com/p-e-w/heretic/pull/53),\nwhich accumulated **almost 350 human-written comments** over more than 7 months\nas we discussed the implementation.\nAnd [here is another PR](https://github.com/p-e-w/heretic/pull/191) with\n**more than 200 comments.**\n\nI am the opposite of a luddite and I have used agents liberally for other projects, but I am proud of the code I write and so far can't quite bring myself to let a machine write it for me in a project I care so much about. As a result, Heretic has a lean, relatively simple codebase that in my opinion, and in that of some others, is a pleasure to work on.\n\nIf you like that, join us! Hop on the Discord and tell us about your ideas for improvements, or directly file an issue or open a PR.\n\nI'm aware of the following implementations of abliteration techniques that were publicly available when Heretic was first released (November 2025):\n\nNote that Heretic was written from scratch, and does not reuse code from any of those projects.\n\nThe development of Heretic was informed by:\n\n- [The original abliteration paper *(Arditi et al. 2024)*](https://arxiv.org/abs/2406.11717)\n- [Maxime Labonne's article on abliteration](https://huggingface.co/blog/mlabonne/abliteration) ,\nas well as some details from the model cards of his own abliterated models, such as\nthe use of non-constant ablation weights\n- Jim Lai's articles describing [\"projected abliteration\"](https://huggingface.co/blog/grimjim/projected-abliteration) and[\"norm-preserving biprojected abliteration\"](https://huggingface.co/blog/grimjim/norm-preserving-biprojected-abliteration)\n- Thousands of interactions with members of the community\n\nIf you use Heretic for your research, please cite it using the following BibTeX entry:\n\n```\n@misc{heretic,\n  author = {Weidmann, Philipp Emanuel},\n  title = {Heretic: Training-free language model modification},\n  year = {2025},\n  publisher = {GitHub},\n  journal = {GitHub repository},\n  howpublished = {\\url{https://github.com/p-e-w/heretic}}\n}\n```\n\nCopyright © 2025-2026  Philipp Emanuel Weidmann ([pew@worldwidemann.com](mailto:pew@worldwidemann.com)) + contributors\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with this program.  If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).\n\n**By contributing to this project, you agree to release your\ncontributions under the same license.**\n\n## Footnotes\n\n1. \nHeretic supports on-the-fly 4-bit model quantization with bitsandbytes, which can reduce the amount of VRAM required to process a model to the same amount that is used to run a typical quantized version of it, at a slight accuracy cost. Set the `quantization` option to`bnb_4bit` to enable this.[↩](#user-content-fnref-1-761bc7cfb9d3596169150b5886251828)\n2. \n[Qwen2.5-7B: Three-Way Abliteration Comparison](https://huggingface.co/DreamFast/Qwen-2.5-7b-abliterlitics) :*\"Heretic is the most surgical and most effective.\"*[↩](#user-content-fnref-2-761bc7cfb9d3596169150b5886251828)\n3. \n[Gemma 4 E4B: 23 Abliteration Variants Compared](https://huggingface.co/DreamFast/Gemma4-e4b-abliterlitics) :*\"Best overall: heretic.\"*[↩](#user-content-fnref-3-761bc7cfb9d3596169150b5886251828)\n4. \n*Weidmann 2026.* A preprint explaining the technique will be available soon.[↩](#user-content-fnref-4-761bc7cfb9d3596169150b5886251828)\n5. \n*[Arditi et al. 2024](https://arxiv.org/abs/2406.11717)*[↩](#user-content-fnref-5-761bc7cfb9d3596169150b5886251828)\n6. \n*[Lai 2025 (1)](https://huggingface.co/blog/grimjim/projected-abliteration)*[↩](#user-content-fnref-6-761bc7cfb9d3596169150b5886251828)\n7. \n*[Lai 2025 (2)](https://huggingface.co/blog/grimjim/norm-preserving-biprojected-abliteration)*[↩](#user-content-fnref-7-761bc7cfb9d3596169150b5886251828)", "url": "https://wpnews.pro/news/repository-is-maintained-by-the-new-official-heretic-community", "canonical_source": "https://github.com/Vinay-Umrethe/heretic", "published_at": "2026-12-02 02:30:49+00:00", "updated_at": "2026-12-02 02:45:45.710562+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "ai-safety", "ai-ethics"], "entities": ["Heretic", "Heretic Community", "Hugging Face", "Qwen", "Qwen3-4B-Instruct-2507", "PyTorch", "RTX 3090", "MMLU"], "also_reported_by": [], "takeaway": "Heretic 2.x steers model behavior by optimizing scorer-defined scores against contrasting example prompts, letting a single RTX 3090 strip refusals from Qwen3-4B-Instruct-2507 in about 30-40 minutes without training, but Heretic 1.x config files must be migrated to the new format.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/repository-is-maintained-by-the-new-official-heretic-community", "markdown": "https://wpnews.pro/news/repository-is-maintained-by-the-new-official-heretic-community.md", "text": "https://wpnews.pro/news/repository-is-maintained-by-the-new-official-heretic-community.txt", "jsonld": "https://wpnews.pro/news/repository-is-maintained-by-the-new-official-heretic-community.jsonld"}}