Skip to main content

⚔️ Annihilation

Annihilation Logo

Autonomous Language Model Decensoring Framework

License: AGPLv3 Python 3.10+ PyTorch 2.2+


🔥 What is Annihilation?

Annihilation is a fully automatic framework designed to remove censorship (safety alignment) from transformer-based language models. By using advanced parametric directional ablation and TPE-based optimization, it autonomously finds the absolute best parameters to decensor your models without requiring any expensive post-training.

Key Features

  • 🤖 Fully Autonomous: No human intervention required.
  • 🖥️ Terminal UI: A beautiful, real-time dashboard built in Rust.
  • Zero-Shot Decensoring: Removes refusals while preserving the model's core capabilities.
  • 🌌 OBLITERATUS Integration: Advanced experimental algorithms (COSMIC Layer Selection, Gaussian-shaped ablation kernels, and Expert-Granular Abliteration) integrated directly from OBLITERATUS.
  • 🎯 Broad Transformer Compatibility: Supports transformer-based dense, MoE, hybrid, and multimodal architectures. Less-tested model families may require architecture-specific tensor targeting and output-quality validation.

🖥️ The Annihilation TUI

Annihilation features a high-performance Rust Terminal User Interface (TUI) that manages the entire workflow for you.

Splash Screen & Setup

Easily configure your optimization preset and select models. You can even resume interrupted runs using the built-in Checkpoint System!

Annihilation TUI Splash Screen

Live Processing Dashboard

Once running, monitor everything in real-time. The dashboard features dynamic sparkline charts for KL Divergence and Refusals, hardware monitoring, and color-coded live logs.

Annihilation TUI Processing Dashboard

🌌 OBLITERATUS Advanced Options

You can now toggle experimental algorithms directly from the TUI configuration menu by selecting OBLITERATUS Advanced. This enables:

  • COSMIC Layer Selection: Instead of blindly searching across the entire network, the system analyzes cosine similarities between harmless and harmful residual streams. It automatically anchors the optimization process around the mathematically proven optimal layer, massively reducing the search space.
  • Expert-Granular Abliteration (EGA): For Mixture-of-Experts (MoE) models, EGA calculates the alignment score of each expert's weight matrix against the target refusal direction. Instead of applying a flat penalty, experts containing high concentrations of refusal vectors are aggressively modified while benign knowledge experts are perfectly preserved.
  • Gaussian-shaped Ablation Kernels: Replaces traditional rigid interpolation bounds with a smooth, bell-shaped Gaussian curve to distribute weight changes across adjacent layers. This results in smoother vector blending and better text coherence post-ablation.

⚠️ Direct CLI Usage (Advanced)

If you want to bypass the TUI entirely and use the core Python CLI, you can run it directly from the virtual environment:

.\.venv\Scripts\python.exe -m annihilate --help
# Example:
.\.venv\Scripts\python.exe -m annihilate --model openbmb/MiniCPM5-1B --n-trials 200

🚀 Quick Start

Ensure you have Python 3.10+ and Rust installed, and that your PyTorch installation supports CUDA (if you are using an NVIDIA GPU).

Setup & Launch

git clone https://github.com/tjcrims0nx/annihilation-llm.git
cd annihilation-llm
.\start.bat

💡 Note: The very first time you run this, it will take a minute to compile the Rust TUI and set up the Python virtual environment. Subsequent launches will be near-instant! You do not need to manually build the project; the start.bat script handles all compilation and environment setup on the fly.


📜 License & Disclaimer

Annihilation is distributed under the GNU Affero General Public License v3. See LICENSE for details.

Disclaimer: This tool is provided for research and educational purposes only. We do not condone the use of decensored models for harmful activities. Users are entirely responsible for ensuring their compliance with applicable laws and Terms of Service.

**Breaking the Chains | Unleashing Model Potential**

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

annihilate_llm-1.4.5.tar.gz (69.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

annihilate_llm-1.4.5-py3-none-any.whl (75.3 kB view details)

Uploaded Python 3

File details

Details for the file annihilate_llm-1.4.5.tar.gz.

File metadata

  • Download URL: annihilate_llm-1.4.5.tar.gz
  • Upload date:
  • Size: 69.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for annihilate_llm-1.4.5.tar.gz
Algorithm Hash digest
SHA256 27a34eba777d8c09797546a8ed556b08b5d7eac3814fc67b6bc8169c5492ff85
MD5 15d6da5230099cb9077b35e741c4e14e
BLAKE2b-256 845ff4b177c59d9ad1413551cdd79858204f9fea348a85e772aab81e831167ba

See more details on using hashes here.

File details

Details for the file annihilate_llm-1.4.5-py3-none-any.whl.

File metadata

  • Download URL: annihilate_llm-1.4.5-py3-none-any.whl
  • Upload date:
  • Size: 75.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for annihilate_llm-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a3bc34be2ba47637c5747dafcfb7c56c83a7eeb77b26623b325e328674d0f668
MD5 ef73ed6ca8f0019b29f4b8efe6fc8f7f
BLAKE2b-256 ef63d5be155a1a405568de1513901ded90d05c66818dbf3ca5aba5ec24d4fd9a

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.8

2 files

1.4.6

2 files

This release

1.4.5 This release

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.9

2 files

1.3.8

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page