LLM Abliteration is an open-source Python toolkit for modifying refusal behavior in large language models without conventional fine-tuning. Built with Hugging Face Transformers, it identifies refusal-related activation directions by comparing responses to harmful and harmless prompts. Researchers can analyze these directions across model layers and selectively remove their influence from model weights. The software supports dense and selected mixture-of-experts architectures, including Llama, Qwen, Mistral, and Gemma models. Batch inference and quantized model loading help reduce processing requirements. Sharded weight modifications allow larger models to be processed with limited memory. Advanced options include norm-preserving transformations, directional projection, and configurable layer strategies. Modified models can be tested and compared, although refusal removal is not guaranteed.

Features

  • Refusal Direction Measurement and Analysis
  • Transformer-Based Model Abliteration
  • Dense and Mixture-of-Experts Model Support
  • 4-Bit and 8-Bit Quantized Model Loading
  • Memory-Efficient Sharded Weight Processing
  • Norm-Preserving and Projection-Based Ablation

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow llm-abliteration

llm-abliteration Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of llm-abliteration!

Additional Project Details

Programming Language

Python

Related Categories

Python Artificial Intelligence Software

Registered

2026-10-26