Heretic Grimoire
Archive for heretic generated models which are reproducible.

reproduce.json files. It runs the Heretic collector on a fixed twice-daily schedule and indexes any new records it finds on Hugging Face. Collected records are kept as an archive, so previously saved data remains available even if the source repo of a heretic model later gets deleted. Collector logs are shown in the UI and cleared at the start of each collection run.
The app provides a searchable table of reproducibility metadata:
Heretic ModelBase ModelCreated OnHeretic VersionKLDRefusalsBase RefusalsTrialsAcceleratorJSONClone this repository and push app.py in the space with Gradio SDK along with other files.
Persistent storage (A bucket with read and write permission) should be attached when deploying on Hugging Face Spaces so the archive survives restarts.
python app.py
This creates your own local Heretic Grimoire archiving system, it updates on a fixed twice-daily schedule using heretic's collector.
Copyright © 2026 Vinay Umrethe umrethevinay@gmail.com.
This 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.
This 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.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Heretic has a reproduction system designed to prevent any Takedowns, Bans, Removals of any Publicly available heretic model.
As of 2025-2026, hostility, need, love and craze towards local LLMs are all growing everywhere, and this is especially true for decensored models like those created by Heretic. In May 2026, the project was targeted with a legal notice from Meta, and is already demonized in mainstream media publications. Unfortunately, the AI world remains dependent on a massive single point of failure for model hosting, which is very difficult to replace because LLMs are huge.
What if that single point of failure actually fails one day, for one reason or another? What if, in order to obtain Heretic models, you can't simply visit Hugging Face anymore? What if tens of thousands of hours invested by the community to create those models simply vanish?
Don't worry, we have the solution: Everyone simply downloads all Heretic models to their own system! That way, if the original model is deleted, you still have a local copy. Easy, right? Now you're probably thinking that this is a silly joke. Well, here's the punchline: Those models are just ~9 kilobytes each, so you can store thousands of them on your phone without even noticing.
In Heretic v1.3.0, we introduced reproducible models: When uploading an abliterated model to Hugging Face with Heretic, users can choose to include reproducibility information, which will be stored in the model repository in human-readable format:
reproduce/requirements.txt: The exact versions of all Python packages.reproduce/config.toml: The exact configuration used, including the RNG seed.reproduce/checkpoint.jsonl: The Optuna study journal containing the history of all trials.reproduce/SHA256SUMS: Cryptographic hashes for all weight files.There is also a machine-readable file that contains all information needed to reproduce the model:
reproduce/reproduce.json: A machine-readable file containing all reproducibility information.That file is like a spell in a grimoire, allowing you to summon not a demonic entity, but the very same model it belongs to. An entire heretic model can be reproduced exactly byte-for-byte using just a tiny ~9 KB json file.
reproduce/README.md. Exact reproducibility is only guaranteed if all aspects of your system are identical to the one the model was originally generated on.requirements.txt: pip install -r requirements.txtpip install torch==A.B.C+X --index-url https://download.pytorch.org/whl/X (Where A.B.C is the PyTorch version: e.g. 2.8.0 and X is the platform: e.g. cu128, rocm7.1)config.toml in your working directory.hereticSHA256SUMS: sha256sum -c SHA256SUMS (or look at the hashes online if you uploaded to Hugging Face)You can automate this entire process for any heretic models created after
v1.3.0release (v1.4.0or later).
In Heretic v1.4.0, we introduced a comprehensive functionality for working with these files, a system we call the Heretic Grimoire. Here's how it works:
pip install -U heretic-llm
reproduce.json files from publicly available Heretic models on Hugging Face, and store them in a directory of your choice (in this case, my_grimoire):heretic --collect-reproducibles my_grimoire
You 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.
heretic --reproduce path/to/reproduce.json OR url/to/reproduce.json
Heretic will guide you through the process, checking your environment against the one that was originally used to create the model, and pointing out potentially problematic mismatches. The multi-hour computations that were required to make the original model do not have to be re-done, and the entire process typically takes around a minute. After you have exported the resulting model, Heretic will verify the SHA256 hashes of the weight files against those stored in the reproduction manifest.
The hashes may or may not be identical, depending on how closely your system resembles the original one.
This automation via
--reproducefeature does not not guarantee Exact reproduction for models created beforev1.4.0(like forv1.3.0) and even the environment check will mark it as a critical mismatch.You can still continue the reproduction anyway (not recommended for byte-for-byte identical SHA256 hashes to match the original model weights). For exact reproduction of those old models having
"version": "1",ofreproduce.jsonfiles, see How to reproduce section.We highly recommend to use
--reproducefeature for any models created afterv1.3.0and have"version": "2",or later of their respectivereproduce.jsonfiles.
You can create your own local grimoire or deploy it on cloud easily, which updates daily. See Deploy section for guidance.
Archive for heretic generated models which are reproducible.