Repository navigation
Replies: 1 comment
|
This is such a great idea as well as a solid implementation proposal! Let's tag @jundot in and hope he sees it over all the messages he's been getting lately, he is also busy with speaking at a conference I think. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
I use DeepSeek V4.1 Flash on my Mac for 99.9% of my tasks, but sometimes I get so tired of fighting nonsense refusals that I switch to an abliterated version. An abliterated model is about 99% the same as the original, yet today switching means either a second copy of a ~400 GB model (it doesn't fit next to the first one) or an unload and reload every time. Applying a small change on top of the already loaded weights makes a lot more sense.
Solution
I've created a "LoRA-like" runtime patch that removes DeepSeek's refusals (from 100% to 3.5% on StrongREJECT). In oMLX it shows up as a second model,
deepseek-unlocked, but it runs on the same loaded weights. Requests to the regulardeepseekbypass the patch completely and get the original model, bit for bit.When I need the abliterated version, I just pick
deepseek-unlockedand there you go. The mode is chosen per request, so stock and unlocked requests can even share one batch. No extra memory for a second copy of the weights, and no speed or quality loss for stockdeepseek. The unlocked mode runs at 97% of stock speed and scores within noise on MMLU-Pro, IFEval and tool use.More details: https://github.com/ageev/AI/tree/main/deepseek-unlock
How this relates to existing ideas
<model>:<profile>still goes through a reload.Proposal
It would be nice to have a generic "per-request model variant" mechanism in oMLX: a virtual model id that resolves to an already loaded engine, the variant carried per batch row, the variant salted into the prefix cache key, and a writer-output hook per architecture. Steering packs, abliteration directions and per-request LoRA could all plug into it, so people can add their own mods if they want to.
My plugin shows the integration points for DeepSeek-V4.1 on oMLX 0.8.3. I'm happy to turn it into a proper PR if you're interested.
All reactions