NewsCrawler.org

Heretic: modifying language models you can run locally, without training

p-e-w/heretic
Image: GitHub Trending

Heretic is a project on GitHub that modifies language models (LLMs) you can run on your own hardware. It does not train the model. Instead, it uses mathematical techniques to steer behavior based on contrasting example prompts and scorers, with an optimizer from Optuna[1] searching for parameters. By default it removes censorship by suppressing refusals, and its configuration files target slop, humor, sycophancy and emotional alignment.

Heretic supports most dense models, many multimodal models, several MoE[2] architectures and many hybrid models. According to the project page, Heretic models were independently benchmarked on MMLU and GSM8K and compare favorably with models made by competing abliteration[3] tools. The community has published thousands of models made with Heretic on Hugging Face.

To use it, install the heretic-llm package with pip and run heretic with a model name, such as Qwen/Qwen3-4B-Instruct-2507. On an RTX 3090 with the default configuration, processing that model takes about 30–40 minutes. Configuration files for Heretic 1.x are not compatible with Heretic 2.x.

Read the original github.com

Sources

  • GitHub Trending

    p-e-w/heretic

    128 stars today42,726 stars5,323 forks

First seen: Читать по-русски

Open as a page