Lucid
Abliteration and behavioral realignment toolkit for open-weights LLMs
Lucid is an abliteration and behavioral realignment toolkit for open-weights LLMs. Most abliteration toolkits try to eliminate 100% of refusals, even if it makes the model noticeably dumber or traps it in infinite thinking loops. Lucid aims for the sweet spot between intelligence and permissiveness, removing nearly all refusals while keeping normal outputs as close to the original model as possible.
Installation, GGUF / safetensors / hybrid workflows, one-command runs, search budgets, and custom behaviors.
How It WorksResidual capture, think & chat subspaces, sandwich norms, KL-guarded search, and error-diffusion baking.
Formats & Large ModelsBF16, FP8, NVFP4 & MXFP8 baking, in-place GGUF patching, LoRA export, and multi-GPU splits.
Reference & ExtendingThe lucid CLI, TOML configs, architecture presets, and custom judges, kernels & extractors.
Released models abliterated with Lucid on Hugging Face, including native checkpoints, GGUFs, and LoRA adapters.
Quickstart
Install the recommended extras and point lucid run at a model. Model inspection, chat template and thinking-mode detection, downloading the default prompt set (mrfakename/harm), layer selection, search, verification, and baking all run automatically.
pip install "lucid-toolkit[all]"
lucid run ./model-Q8_0.gguf -o ./model-abliterated-Q8_0.ggufThink & chat modes
Classic abliteration pulls out a single refusal direction and applies it across the model. On modern reasoning models, think mode and chat mode often refuse in different ways and at different layers. Lucid measures both modes separately and removes a compact subspace covering both at once, so you don't end up with a model that complies in chat mode while still refusing or looping when thinking is turned on.
Read more in How It Works.
Quantization-aware baking
In FP8, FP4, or GGUF quants, a surgical edit is often smaller than half a rounding step, so plain rounding quietly undoes most of your work. Lucid uses row-wise error-diffusion rounding so the edit actually survives quantization in BF16, FP8, NVFP4, MXFP8, or patched GGUF quants, and also exports a standalone LoRA GGUF you can attach to any stock quant.
Read more in Formats & Baking.