Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

A training-free tool that removes refusals and steers other behaviors in open-weight LLMs by searching for minimal weight edits.

104
33
Python
AGPL-3.0
3 days old
+33 stars in 24h

What it does

Oathburn modifies open-weight language models without training so that they stop refusing requests, and it can also reduce slop, humor, sycophancy or response length depending on the configuration. It is a maintained fork of Heretic, which was archived in November 2026; Oathburn 2.2.0 corresponds to Heretic 2.1.0 plus fixes from pending pull requests, and it stays compatible with Heretic configuration files, plugins and reproducible models README.

The tool measures where refusals occur, applies a modifier, then uses an Optuna-based TPE optimizer to search for modifier parameters that minimize refusal rate while keeping KL divergence from the original model low. Two modifiers ship: Arbitrary-Rank Ablation (the default) and classic directional ablation, also called abliteration README. Scorer plugins let you optimize other objectives; custom scorers inherit from the Scorer base class and are loaded by import path or file path.

Quick start

You need Python 3.10+ and PyTorch 2.6+ installed for your hardware. Then install from PyPI and name the model to process:

pip install -U oathburn
oathburn Qwen/Qwen3-4B-Instruct-2507

Replace the model ID with the one you want to modify README. The default configuration removes refusals; alternatives include config.noslop.toml, config.nohumor.toml, config.nosyco.toml, config.emotions.toml and config.terse.toml options. Settings are read from config.toml in the working directory or from OATHBURN_CONFIG_FILE, and can also be passed on the command line or as OATHBURN_-prefixed environment variables.

At startup, Oathburn benchmarks the system to pick a batch size. The README reports about 30–40 minutes for Qwen3-4B-Instruct-2507 on an RTX 3090 with the default configuration. When a run finishes, you can save the model, upload it to Hugging Face, chat with it or run benchmarks. For scripted runs, set trial_index, model_action = "save", save_directory, export_strategy and checkpoint_action; progress_file and report_file write machine-readable output.

Requirements and limits

A capable GPU is needed for practical runs; on-the-fly 4-bit quantization via bitsandbytes (quantization = "bnb_4bit") reduces memory at a slight accuracy cost. Most dense models, many multimodal models, several MoE architectures and many hybrids are supported; for unusual layer layouts, point layer_module_targets at the right modules instead of waiting for a code change README.

Reproducible models guarantee byte-for-byte identical output only when hardware, drivers, OS and package versions match; Oathburn checks the environment and verifies weight hashes after export. Reproduction typically takes minutes compared with the multi-hour search. Migrating from Heretic means configuration files, HERETIC_ environment variables and third-party plugins generally work unchanged, with OATHBURN_ variables taking precedence; Heretic 1.x configs need the 1.x-to-2.x migration guide first README.

The project is AGPL-3.0 licensed. Removing refusals removes a safety layer the model maker put in place on purpose, and the README places responsibility for modified-model use and legal compliance on the user license.

Hosted alternative

The maintainer also offers an OpenAI-compatible API serving abliterated GLM, DeepSeek and Kimi models, priced per million tokens with prepaid credit, plus a hosted MCP server for coding agents README. This is an optional paid path; the Oathburn tool itself is free and runs locally.

HotRepo's take

Oathburn appeared on HotRepo's new-project board for Python with 4 stars added in the roughly one-hour window recorded on 30 November 2026, taking it from 102 to 104 stars; it also picked up 33 forks in that short period. That is a very short observation window, so it supports only a fact about that day, not a trend. What makes the project worth a look is the lineage rather than the numbers: it is a drop-in continuation of an archived abliteration tool, with upstream plugin compatibility and byte-identical reproduction manifests, which gives existing Heretic users a concrete migration path.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. p-e-w/hereticRemoves refusal behavior from open LLMs automatically via optimized directional ablation, for local-model users and researchers.Python36,889
  2. Blackfrost-AI/AblagentEvidence-bound runtime and protocol for editing model weights to remove refusal directions, aimed at alignment researchers.Python116
  3. unslothai/unslothA desktop app to run and fine-tune LLMs and diffusion models locally, aimed at people who want training without a cloud GPU.Python78,537
  4. heterodoxin/AbliteratedOutTheBoxA llama.cpp fork that strips refusals from supported models at inference time, leaving on-disk weights and benign prompts unchanged.C++104
  5. karpathy/nanochatA minimal, hackable codebase for training a GPT-2-class LLM end to end on a single GPU node.Python59,586