Oathbreaker-AI/oathburn
An Optuna-driven weight-editing CLI for refusal suppression and LLM behavior steering
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Oathburn is a Python/PyTorch CLI for offline model-weight editing, not an inference server or a gradient-based trainer. It benchmarks batch sizes at startup, then uses Optuna's TPE sampler to search modifier settings. The default Arbitrary-Rank Ablation (ARA) modifier and the directional ablation modifier share an interface in src/oathburn/modifier.py. Each run uses one modifier.
Scorers in src/oathburn/scorers/ evaluate candidate edits. The defaults pair keyword-based refusal measurement with KL divergence from the original model: one measures the targeted behavior, the other penalizes broader change. A custom Scorer implements get_score and can be loaded by module path or file and class name. The same scorer can run more than once with different settings, so adding objectives does not require patching the CLI.
Key Capabilities & Differentiators
The default workflow suppresses refusals. Separate TOML presets target behaviors such as verbosity, humor, and sycophancy. Coverage includes many dense, multimodal, and hybrid models and several MoE architectures; layer_module_targets allows explicit module targeting when layer layouts differ. Quantizing on load to 4-bit with bitsandbytes reduces memory demand at some cost to accuracy.
Operators can save weights locally, upload to Hugging Face, inspect behavior in chat, or run benchmarks. Unattended jobs can choose a trial, emit machine-readable progress and result reports, and apply score or time limits. A reproduce.json manifest lets another run rebuild a selected edit without repeating the search and verify the exported weight hashes. Byte-identical output depends on matching the hardware, drivers, OS, and package versions.
Trade-offs & Limitations
Heretic 2.x is the closest comparison. Oathburn inherits its modifier-and-scorer design and accepts its configurations, reproduction manifests, and study checkpoints. Existing plugins can carry over, but plugins that rely on legacy heretic imports should not share an environment with the original heretic-llm package. The release candidates provide a migration path, not evidence of better model quality or GPU performance.
Avoiding gradient training does not make the process cheap: candidate edits still need to be evaluated, and memory and runtime depend on the checkpoint, precision, batch size, and search budget. A lower keyword refusal rate or a small KL divergence does not prove that quality or safety is preserved outside the evaluation set. Validate the edited model against task-specific and safety regressions before deployment. Oathburn is AGPL-3.0-or-later; the source model has separate license terms.
Hardware & Deployment Guide
Use Python 3.10+ and PyTorch 2.6+ built for the host hardware. The oathburn CLI reads a working-directory config.toml or a file selected with OATHBURN_CONFIG_FILE, and accepts CLI and environment overrides. CPU startup is demonstrated, but practical sizing should start with a GPU test on the intended checkpoint. The supplied reference is roughly 30–40 minutes for Qwen3-4B-Instruct-2507 on an RTX 3090 with default settings; it is not a general runtime estimate.
The 2.2.0rc1 notes report passing unit and reproducibility tests but explicitly leave GPU runs and large MoE models pending revalidation. Version 2.2.0rc2 refreshes packaging documentation without changing model processing. For inference without local weight editing, Oathbreaker's separate OpenAI-compatible API serves a fixed model catalog, with some input rates listed at $0.40 per million tokens in November 2026; it does not run custom edits for you.
layer_module_targets lets operators specify module paths for nonstandard layer layouts.reproduce.json records the reconstruction inputs, with environment checks and exported weight-hash verification.Research teams comparing weight edits on open-weight models, testing custom behavior objectives, or migrating reproducible Heretic 2.x workflows.
You need an inference server, cannot validate the target model and hardware, or cannot independently test the modified model's task performance and safety.
Quick Start & Installation
pip install -U oathburn oathburn Qwen/Qwen3-4B-Instruct-2507
Comparison vs. Top LLMs & Inference Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| oathburn ★ | 189 | +188 | Python | AGPL-3.0 | An Optuna-driven weight-editing CLI for refusal suppression and LLM behavior ste |
| minimind | 75.4k | +3.1k | Python | Apache-2.0 | Native PyTorch dense and MoE models for end-to-end LLM training on local GPUs |
| autoresearch | 101k | +342 | Python | — | Single-GPU nanochat harness for agent-led, five-minute training experiments |
| LlamaFactory | 76.4k | +86 | Python | Apache-2.0 | A unified Python framework for LLM and VLM fine-tuning with pluggable inference |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Oathbreaker-AI/oathburn.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about oathburn
Where do I integrate a custom behavior objective?
get_score on the Scorer base class and can be loaded by import path or by file path and class name. Multiple scorers can be active in a run, but only one modifier is used.How much VRAM and runtime should I budget?
Can we self-host it commercially or redistribute edited checkpoints?
When should I choose Oathburn over Heretic or the hosted API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy