Heretic removes restrictions from language models
TL;DR Highlight
Heretic is a one-command tool that removes restrictions from open-weight language models.
Who Should Read
A developer whose local open-weight LLM refuses legitimate security or reverse-engineering tasks
Core Mechanics
- Heretic removes model restrictions
- It describes itself as removing restrictions from language models so they always follow instructions.
- That is the claim on the official site.
- Install and run take two lines
- Install with pip install -U heretic-llm.
- Run it by passing a model name, e.g. heretic Qwen/Qwen3.5-4B.
- Licensed under AGPL v3 or later
- It is released as Free Software.
- Copyright belongs to Philipp Emanuel Weidmann and contributors.
- Docs and community channels exist
- There are Tutorial, Installation, Configuration and Security pages.
- Links to GitHub, Hugging Face, Discord and Matrix are provided.
- The page gives no mechanism or numbers
- The site text includes no performance figures or comparisons.
Community Reactions
- Useful for reversing my own device, one user said
- They tried to regain control of a Chinese IP camera with known CVEs, but every hosted model refused.
- They said abliterated models were vital.
- Opinion: the knowledge may not be there
- Training data shaped around refusals may mean the real information isn't in the model.
- Forcing an answer can produce hallucinations and hurt unrelated questions.
- Opinion: the metrics are overstated
- Citing only refusal count and KL divergence makes results look more dramatic.
- KL charts say little about a focused topic.
- Answers got worse after removal, one user found
- The model stops refusing but answers previously refused questions poorly.
- They compared it to amateur brain surgery.
How to Apply
- Measure refusal rate on a small model first
- Run heretic on Qwen/Qwen3.5-4B today.
- Compare before and after on about 10 legitimate prompts that usually get refused.
- Build a legitimate security question set
- Collect questions like reversing your own device or a PoC for a CVE on your own network.
- Run them on both models and record refusals and accuracy.
- Evaluate unrelated tasks too
- Run regression tests on coding or summarization.
- Check quality loss, not just refusal rate.
- Check the AGPL terms first
- Confirm AGPL v3 or later conditions with legal before integrating into an internal service.
Try It
# Paste into a terminal (shell): install and run example from the original page
pip install -U heretic-llm
heretic Qwen/Qwen3.5-4B
# Next: ask the original and modified models the same 10 questions and compare refusals and answer qualityTerminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles