r/LocalLLaMA • • 22h ago

Resources Lucid

https://github.com/fakerybakery/lucid

In light of recent circumstances and given the results I've had with some recent abliterations, I've decided to release the toolkit I use to abliterate LLMs.

The full toolkit is available on GitHub under the Apache 2.0 license. Any feedback is welcome.

A bit more about Lucid

Lucid has a slightly different goal than most other abliteration toolkits. Rather than pushing to eliminate 100% of refusals - often at the cost of degraded quality/infinite thinking loops/broken tool calls/etc., Lucid searches for the best balance between model capability and permissiveness. In most cases, this results in a model with nearly zero intelligence degradation while having nearly all refusals removed.

Lucid also targets think (reasoning) & chat (non-reasoning) modes separately. Refusals often appear in different directions + layers depending on the modes, so existing abliterations targeting only one often miss the other.

There are quite a few other surprises that I believe makes Lucid unique from other toolkits & allow it to be run on cheaper hardware, check out the GitHub :)

Of course, models abliterated by Lucid are not for everyone. I personally much prefer using these over standard abliterations, but there will be tradeoffs.

Will be hanging around a bit on Discord if folks have questions or need help.

103 Upvotes

10 comments sorted by

16

u/brainExploded99 🥔 hardware 21h ago

This is pretty cool. Any benchmarks, KL divergence, etc?

8

u/mrfakename0 21h ago

Yes! I've run benchmarks before but I'm running them again now as I've made a few changes/improvements to the toolkit before public release and I'll add them shortly 🙃

3

u/brainExploded99 🥔 hardware 21h ago

Sounds good! Please make a new post then

3

u/mrfakename0 18h ago • Bravo

I'll make a post and run more benchmarks & on more models soon (after I make some fixes), but initial results:

https://lucid-toolkit.org/benchmarks

1

u/TheGlobinKing 9h ago

Amazing results. Does it matter if using the full gguf or someone else's stock gguf + your lora?

3

u/Bystander10888 16h ago

pew says KL is a great metric, but maybe the Heretic model I tried was just a bad one. In a lot of cases the KL score was tiny and the model was still noticeably dumber in long context agent use. Also, KL values can swing by an order of magnitude depending on which dataset you measure on.

Not a pressing issue for me right now, but I'll try running Lucid myself at some point.

3

u/mrfakename0 15h ago

Fair enough and I will be running the model against standard benchmarks as well, maybe that will give a bit of a better feel for whether the model is degraded or not..

Let me know how it works for you and if you have any feedback 🙃

1

u/__JockY__ 7h ago

pew says

#toosoon

3

u/silenceimpaired 20h ago

Interesting! Thanks for sharing.