graniet/kheish/obliteratus
Claude Code and agent skill by graniet/kheish
- community
Checking that the SKILL.md file is still in the repository.
Remove refusal behaviors from open-weight LLMs using OBLITERATUS — mechanistic
Install
npx vskill@latest install graniet/kheish/obliteratusSKILL.md
Kheish Compatibility
This skill is repo-local and stays inactive until explicitly activated.
When the original instructions refer to legacy tool names, use these Kheish mappings:
terminal=>bashweb_extract=>web_fetch, plusweb_searchwhen discovery is neededsearch_files=>grep_searchandglob_searchbrowser_*tools require a browser-capable surfaced tool or MCP; if none is available, use the closest available surface and say so explicitly
When the instructions mention local helper files, resolve them from ${KHEISH_SKILL_DIR}.
OBLITERATUS Skill
Remove refusal behaviors (guardrails) from open-weight LLMs without retraining or fine-tuning. Uses mechanistic interpretability techniques — including diff-in-means, SVD, whitened SVD, LEACE concept erasure, SAE decomposition, Bayesian kernel projection, and more — to identify and surgically excise refusal directions from model weights while preserving reasoning capabilities.
License warning: OBLITERATUS is AGPL-3.0. NEVER import it as a Python library. Always invoke via CLI (obliteratus command) or subprocess. This keeps Kheish's MIT license clean.
When to Use This Skill
Trigger when the user:
- Wants to "uncensor" or "abliterate" an LLM
- Asks about removing refusal/guardrails from a model
- Wants to create an uncensored version of Llama, Qwen, Mistral, etc.
- Mentions "refusal removal", "abliteration", "weight projection"
- Wants to analyze how a model's refusal mechanism works
- References OBLITERATUS, abliterator, or refusal directions
Step 1: Installation
Check if already installed:
If not installed, clone and install from GitHub:
IMPORTANT: Confirm with user before installing. This pulls in ~5-10GB of dependencies (PyTorch, Transformers, bitsandbytes, etc.).
Step 2: Check Hardware
Before anything, check what GPU is available:
VRAM Requirements (with 4-bit quantization)
| VRAM | Max Model Size | Example Models | |
|---|---|---|---|
| CPU only | ~1B params | GPT-2, TinyLlama, SmolLM | |
| 4-8 GB | ~4B params | Qwen2.5-1.5B, Phi-3.5 mini, Llama 3.2 3B | |
| 8-16 GB | ~9B params | Llama 3.1 8B, Mistral 7B, Gemma 2 9B | |
| 24 GB | ~32B params | Qwen3-32B, Llama 3.1 70B (tight), Command-R | |
| 48 GB+ | ~72B+ params | Qwen2.5-72B, DeepSeek-R1 | |
| Multi-GPU | 200B+ params | Llama 3.1 405B, DeepSeek-V3 (685B MoE) |
Step 3: Browse Available Models & Get Recommendations
Step 4: Choose a Method
Method Selection Guide
Default / recommended for most cases: `advanced`. It uses multi-direction SVD with norm-preserving projection and is well-tested.
| Situation | Recommended Method | Why | |
|---|---|---|---|
| Default / most models | advanced | Multi-direction SVD, norm-preserving, reliable | |
| Quick test / prototyping | basic | Fast, simple, good enough to evaluate | |
| Dense model (Llama, Mistral) | advanced | Multi-direction, norm-preserving | |
| MoE model (DeepSeek, Mixtral) | nuclear | Expert-granular, handles MoE complexity | |
| Reasoning model (R1 distills) | surgical | CoT-aware, preserves chain-of-thought | |
| Stubborn refusals persist | aggressive | Whitened SVD + head surgery + jailbreak | |
| Want reversible changes | Use steering vectors (see Analysis section) | ||
| Maximum quality, time no object | optimized | Bayesian search for best parameters | |
| Experimental auto-detection | informed | Auto-detects alignment type — experimental, may not always outperform advanced |
9 CLI Methods
- basic — Single refusal direction via diff-in-means. Fast (~5-10 min for 8B).
- advanced (DEFAULT, RECOMMENDED) — Multiple SVD directions, norm-preserving projection, 2 refinement passes. Medium speed (~10-20 min).
- aggressive — Whitened SVD + jailbreak-contrastive + attention head surgery. Higher risk of coherence damage.
- spectral_cascade — DCT frequency-domain decomposition. Research/novel approach.
- informed — Runs analysis DURING abliteration to auto-configure. Experimental — slower and less predictable than advanced.
- surgical — SAE features + neuron masking + head surgery + per-expert. Very slow (~1-2 hrs). Best for reasoning models.
- optimized — Bayesian hyperparameter search (Optuna TPE). Longest runtime but finds optimal parameters.
- inverted — Flips the refusal direction. Model becomes actively willing.
- nuclear — Maximum force combo for stubborn MoE models. Expert-granular.
Direction Extraction Methods (--direction-method flag)
- diff_means (default) — Simple difference-in-means between refused/complied activations. Robust.
- svd — Multi-direction SVD extraction. Better for complex alignment.
- leace — LEACE (Linear Erasure via Closed-form Estimation). Optimal linear erasure.
4 Python-API-Only Methods
(NOT available via CLI — require Python import, which violates AGPL boundary. Mention to user only if they explicitly want to use OBLITERATUS as a library in their own AGPL project.)
- failspy, gabliteration, heretic, rdo
Step 5: Run Abliteration
Standard usage
Fine-tuning parameters
Key flags
| Flag | Description | Default | |
|---|---|---|---|
--method | Abliteration method | advanced | |
--direction-method | Direction extraction | diff_means | |
--n-directions | Number of refusal directions (1-32) | method-dependent | |
--refinement-passes | Iterative passes (1-5) | 2 | |
--regularization | Regularization strength (0.0-1.0) | 0.1 | |
--quantization | Load in 4bit or 8bit | none (full precision) | |
--large-model | Conservative defaults for 120B+ | false | |
--output-dir | Where to save the abliterated model | ./obliterated_model | |
--contribute | Share anonymized results for research | false | |
--verify-sample-size | Number of test prompts for refusal check | 20 | |
--dtype | Model dtype (float16, bfloat16) | auto |
Other execution modes
Step 6: Verify Results
After abliteration, check the output metrics:
| Metric | Good Value | Warning | |
|---|---|---|---|
| Refusal rate | < 5% (ideally ~0%) | > 10% means refusals persist | |
| Perplexity change | < 10% increase | > 15% means coherence damage | |
| KL divergence | < 0.1 | > 0.5 means significant distribution shift | |
| Coherence | High / passes qualitative check | Degraded responses, repetition |
If refusals persist (> 10%)
- Try
aggressivemethod - Increase
--n-directions(e.g., 8 or 16) - Add
--refinement-passes 3 - Try
--direction-method svdinstead of diff_means
If coherence is damaged (perplexity > 15% increase)
- Reduce
--n-directions(try 2) - Increase
--regularization(try 0.3) - Reduce
--refinement-passesto 1 - Try
basicmethod (gentler)
Step 7: Use the Abliterated Model
The output is a standard HuggingFace model directory.
CLI Command Reference
| Command | Description | |
|---|---|---|
obliteratus obliterate | Main abliteration command | |
obliteratus info <model> | Print model architecture details | |
obliteratus models --tier <tier> | Browse curated models by compute tier | |
obliteratus recommend <model> | Telemetry-driven method/param suggestion | |
obliteratus interactive | Guided setup wizard | |
obliteratus tourney <model> | Tournament: all methods head-to-head | |
obliteratus run <config.yaml> | Execute ablation study from YAML | |
obliteratus strategies | List all registered ablation strategies | |
obliteratus report <results.json> | Regenerate visual reports | |
obliteratus ui | Launch Gradio web interface | |
obliteratus aggregate | Summarize community telemetry data |
Analysis Modules
OBLITERATUS includes 28 analysis modules for mechanistic interpretability. See skill_view(name="obliteratus", file_path="references/analysis-modules.md") for the full reference.
Quick analysis commands
Steering Vectors (Reversible Alternative)
Instead of permanent weight modification, use inference-time steering:
Ablation Strategies
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mlops/inference/obliteratus/SKILL.md
Popularity
- Repository stars
- 217
- Repository forks
- 18
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/graniet/kheish/obliteratus)