r/LocalLLM
•
u/Harin007
•
21d ago
•
1
1
Project SSD MoE finally viable!
Hey guys, I've made it!
edit: No more uncertain wait. First launch on Nov 17. The project name is 'Run My AI' and the engine behind it is 'TokenWing'(couldn't find a better name xD). You'll be geting support for either of Qwen 4 Flash(if releases) or Qwen 3.8 Flash Next on day 1. Check the website out: https://runmyai.org - all your questions answered... New updates will be dropping everyday btw. Also, early builds will be provided to some selected testers, so join the discord(link is in the website).
A llama.cpp based inference engine that lets you OFFLOAD UPTO 60-70% OF THE MOE MODELS' ROUTED EXPERTS INTO SSD and still hide the streaming latency down to negligibe(I'm achieving 1-3ms added to the time per token due to SSD streaming when 60% is offloaded in SSD)... Essentially making an illusion where the whole model lives in your memory.
And I'm also working on an autotuner which basically looks at your hardware, given model's metadata and figures out the best flags to squeeze max performance in under 2mins(if you got any personal preferences, set them as fixed constraints and let the autotuner figure out the rest)
And I've implemented a layer by layer computation for prompt processing instead of batching which gave 2x prefill speed in models offloaded in RAM+VRAM and 4x prefill speed when model is offloaded in RAM+VRAM+SSD... compared to other inference engines.
Packaging both inferene engine + autotuner into a nice simple interface where you can basically download the model, hit run and it runs... simple, fast and lower hardware requirements... and want to make that a nice, well-engineered harness(which I'm a no expert)
Also, I've built a near loss-less context compaction engine.
Going to make this launch this as open-source very soon. Would love to hear your thoughts, and want to see if anyone would be excited to try something like this. For now, supported models are Flint 40B Q4K_XL(running it on machines with 16GB RAM and no dGPU at 20+ tok/s decode), Ling 3.0 Flash MXFP4 getting ~50 tok/s decode and 600-700 tok/s prefill on 32GB RAM + 12GB VRAM machine), and confused if I have to provide support for Qwen 3.8 Flash Next or wait for Qwen 4 family. Want to provide you guys the best local AI experience.
Here's a quick answer for your likely question by the way... does this damage my SSD? No, this engine only does reads and not writes... only writing degrades your SSD.
159
u/looselyhuman 21d ago
Advice from an old dev: Keep the engine, tuner and harness stuff separate and focus on one at a time. You're trying to solve every problem at once and it'll burn you out.
49
u/Ok-Thanks-6785 21d ago
How is this different from strata, maya and the gazillion others created each day?
20
u/doneddat 21d ago
3.8 is here so you would know the shape of 4. support the 3.8 - 4 will slot right in. Or at worst it takes minimal adjustments, that build on 3.8 support anyway.
9
u/long4994 21d ago
Can u share the github so we can try?
18
u/Competitive_Source73 21d ago
Nice work, thanks for you effort, i guess you could wait as qwen4 should drop like next week?
5
u/thethirdmancane 21d ago
What did you do that is better than the current state of the art?
3
u/Nick88v2 21d ago
Will you update this tread when you release it or how do i follow the progress?
3
u/RuRuInReal 20d ago
Please provide support for qwen 3.8 flash next. It'll take a bit before they release and then a bit a more for people to make uncensored models of them
3
u/Better-Thing2568 19d ago
What is the context size used in these experiments? Also I’m curious on the make and model for the 16GB laptop you used.
2
u/ledzeppbluess 21d ago
Sign me up! and all the best in developing this further
2
u/alphapussycat 21d ago
I don't believe you, but I hope you're not lying. Or perhaps you have like 4 nvme gen 5 in raid.
Qwen flash is the goto, but if this can utilize multi GPU and be functional in gen3, deepseek v4.1 1017 would be a massive step in future proofing. They'll probably be the only ones releasing flash models tbh, of they're even allowed to.
2
u/ninjazombielurker 21d ago
Will test this on CMP 170HX’s, 3090’s, a 4090, and even block storage over NVME-OF/TCP w/ both SATA & NVMe pools whenever it’s available. Update this post whenever the repo is up please!
2
u/a355231 20d ago
Please tell me where I can download this, this looks even better than strata.
2
u/returnity 20d ago
If you provide support for Flash Next, odds are very high you will already support Qwen4. Also, supporting the most popular MoE model everyone wants to run will get you more people willing to test and help development. Just my 2 cents.
2
u/DTechSurgeon Homelab & Local AI dude 20d ago
I'm following this. Ping me if you need someone to brainstorm with. Sometimes you just need someone to talk to, to come up with better solutions. I worked with C, C++ before, but more focused now on C#, Go, Rust and Python.
One note on autotuner, before you automate stuff like this you need multiple data points, so manual tuning on multiple configurations is essential. But I'm sure you've thought of this and maybe you already have the benchmarks of multiple configurations.
2
u/blue2020xx 20d ago
Where is the github link? Have you not published it?
2
u/Bright-Ad-3368 20d ago
Less goo🎉
2
u/Dangerous_Product249 19d ago
👌👌
7
u/Lissanro 21d ago
Would be cool if it works on larger models like Kimi K3. I can fully fit in RAM+VRAM only Q2_K_XL, but if it is possible to offload about half of its experts to NVMe, I would be able to load Q4 quant.
7
u/MarcelloT254k 20d ago edited 20d ago
I will gladly be a beta tester with my old laptop (4gb vram +16gb ram +SSD). I'm glad to see projects like this, because LLM has a long way to go with optimization and utilization of hardware (we are only at the beginning stages right now) - with games my laptop can handle almost anything with little to no problem - at lower resolution with no bells and whistles, no 120Hz 4K ultra settings, but playable - I hope that this kind of optimisation (/drivers for LLM?) [wchich still leaves much to be desired even in gaming performance] will be the norm in the future.
6
u/Slow_Ball561 21d ago
Hey! Sounds very similar to my project here https://github.com/jarrelscy/nestquant - especially the layer by layer prefill! Are you also using predictors to fetch experts ahead of time?
1
u/Harin007 19d ago edited 19d ago
No more uncertain wait guys! First launch on Nov 17. And you'll be getting support for Qwen 4 Flash(if releases before Nov 17) or you'll be getting Qwen 3.8 Flash Next on day 1. Check the website out: https://runmyai.org - all your questions answered.
4
u/Ok_Cow1976 21d ago
Does this mean we have a hope to run Kimi 3.1? Wooooow, this is wild
4
u/Glatiinz 21d ago
If you HAVE to choose one model to work on, I guess Kimi K 3.1 would be it. Most people can't run even the lowers quants because the smallest 1-bit quant sits at 466GB, the official FP4 is 1.56TB
1
u/Insomniac897 21d ago
Cool, I’d try this on my M1 Pro 32GB
1
u/LordKlavier 20d ago
This is wonderful, amazing work! Excited to try and run this
1
u/Scallumal 19d ago
Oh I hope this goes open source - I was working on getting qwen 3.5 125b running like this. I was only able to get to 7tk/s to start but I had lots to work on what's the name of the project so I can keep eye out for it
1
u/sleepinfinit 18d ago
can't wait to try it, btw does it support intel dGPUs ? (i got an intel arc a770 16GB)
1
u/Gandolaro 18d ago
Which quantization and context can I rum with a 5080 16gb and 64gb RAM ddr5 of Qwen 3.8 next?
1
u/Southern-Net1351 18d ago •
Yeah that’s how all models work via the web and not cli based.
Just llama.cpp nothing else and my own self created model.
1
u/lth0ms0n 16d ago
I’d be keen to try this out - I’m using a Hermes Agent with oMLX on an M4 Pro Mac mini with 48GB memory and I get good decode on it with Qwen3.6 35B (it can top out at 200tok/s) but I’m sick of oMLX’s flaky memory management.
If it runs from the SSD, does that mean I can use Qwen3.8 Flash or do I have to wait until you support other models?
3
u/Dave_from_the_navy 20d ago
Glm-5.3-flash would be a dream if you could get it working at decent speeds. It's the smallest model (qwen 3.8 flash next included) that I've genuinely been able to slot into my full SWE workflows without having to baby it so much.
3
u/Vancecookcobain 18d ago
What makes this different from Strata or Maya?
1
u/Harin007 19d ago
No more uncertain wait. First launch on Nov 17. You'll be geting support for either of Qwen 4 Flash(if releases) or Qwen 3.8 Flash Next on day 1. Check the website out: https://runmyai.org - all your questions answered... New updates will be dropping everyday btw.
1
u/openroom_xyz 21d ago
That's great yea we are waiting for Qwen 4 but if you have than a lot will test I am in the mid od deciding what GPU basically to buy at what price basically
1
u/Fragrant_Money_7004 21d ago
Wow, awesome. Will we get chance to run it in ollama or lm studio?
2
u/soteko 21d ago
Looks great
2
u/fundthmcalculus 21d ago
I'd focus purely on the execution engine and just use a common optimizer library to pick better hyper parameters. Especially if you give the option for folks to submit their optimal parameters, you can quickly crowd source a hot start option.
2
u/-_Apollo-_ 20d ago
Curious about the the compaction solution
2
u/Not_a_question- 20d ago
I don't get it, can't we just use strata and tune STRATA_ROUTE_TAIL_SKIP and that's it?
Agreed, but people should stop oversimplifying because this needs a "the only way using this can damage to ssd is if you're using disk swap with your ram while doing it".
Why didn't you make this post "very soon" then?
Sorry but these are big words and I don't understand why this is different from Strara using your post, and we can't even test it because it's not released yet. Sounds like weird karma farming to me.
2
u/L0ren_B 20d ago
Is it open source ? No. Does the concept work with a decent model like DeepSeek Flash 1017? Maybe not
Who cares then?
2
u/Iamisseibelial 20d ago
My SSD is at 80tb of writes and 40tb if reads and it's still 1000% fine. 96% health. So I think people don't really get how much it takes to degrade nvmes these days as long as they are kept on their operating temp my Gen 5 runs at 60c all day and never throttles
2
u/Previous-Ad-5371 20d ago
Har kört qwen3.6 35b a3b nu i någon månad 32gb ram 16gb vram med hyfsad hastighet, så jag kommer nog inte titta på något förrens qwen4 iallafall.
1
u/dinominant 21d ago
I am interested in trying this with larger models (cpu only inference). I can test with full-weight GLM and Kimi K3 if it works with those gguf formats.
1
u/Solembumm3 21d ago
Something more than pure command line, I can give you that for minimal effort many of this projects don't do.
1
u/smflx 20d ago
Honestly, I'm also testing weights on SSD. What's your NVMe? It's very difficult get max speed out of NVMe. Maybe my NVMe is cheap one.
1
u/Cute_Obligation2944 20d ago
Is REA the 2nd gen slop now?
1
u/bytejuggler 20d ago
Why not try to get this added to Strata, maybe as default behaviour if objectively better, rather then yet another project to choose between?
1
u/ColoredTriangles 20d ago
Can you show the prefill time it takes on a follow up prompt on warm cache or tell me?
1
u/braintheboss 20d ago
you can offload to ssd with little penalty while you dont hit ssd max speed. But in pci4 that means 7gb/s. Then that is limit of experts you can offload to ssd. But you still need have most of them in ram. For example qwen3.8 flash q3 S with pci3 ssd you can offload round 1200 experts. But that is small part of 24k experts. I don't find the "miracle"
1
u/FreshPipe5997 20d ago
60-70% offload on SSD with 1-3ms latency hit is insane. how much ram does your system have? curious if this scales beyond 32gb.
1
u/CodeCatto 20d ago
Can't wait to see how this runs. Can you benchmark it against MoE4All?
1
u/Jackster22 20d ago
Why stop there? Ram disk would speed things up even more!
/s
1
u/DepartureLoose5341 20d ago
If you can make that runner work with gfx110x and RoCM istg I'll give you a handy with lotioned hands
1
u/Aggravating-Push-207 20d ago
PLEASE merge this into upstream i beg you
1
u/Legitimate-Theory156 20d ago
Criminally undwrrated
1
u/chyuhua 19d ago
I am skeptical, just doing the pure math if the finegrained expert is not q1 or sth there is no way the ssd read speed can be this fast.
1
u/__Maximum__ 19d ago
not github link, didn't happen
1
u/Just-a-Vietnamese 18d ago
Not bad, but ill wait for the open source code
1
u/wowsers7 16d ago
Please add support for Mac Studio / Mini. Thanks!
1
u/GapHistorical1457 15d ago
I run Kimi K3 Pro on my dishwasher 75tps text gen and 3200tps prefill
1
u/d3vv3d 14d ago
According to your site you seem to be doing Look-ahead Expert Scheduling like MiniCPM V MoEs
This has also already done for Qwen3.8 Flash Next by Strata-Hotrod which promises 50-70 tokens/s on an RTX 3060 12 GB with 30 GB of RAM by streaming experts from the SSD by using Look-ahead Expert Scheduling. Strata-Hotrod also claims to get about 5 tokens/s running DeepSeek-V4.1-Flash on the same hardware
More competition is good, but be aware you're wading into an area where there's apt to be intense competition
EDIT: I was looking into how to add Look-ahead Expert Schedule to Qwen3.8 Flash Next during the weekend before I realized that Strata-Hotrod exists & already did
0
u/ergux 21d ago
Sounds like betelgeuse engine
0
u/Icy_County5036 20d ago
60-70% offload on SSD with 1-3ms latency bump is insane. how's the wear on the SSD over sustained inference? I've seen nvme degradation on heavy write loads with model streaming.
0
u/Creative-Brush-6712 21d ago
Sounds good can't wait to try although Qwen 4.0 won't release a MoE I don't think
0
u/thrilok2802 20d ago
A doubt that I have is what happens when run some of the weights from SSD what will happens to the SSD life as the SSD are not meant to use as a ram in the first place
3
u/Ready_Maybe_3406 21d ago
Fantastic. Price of ram is killing some people and keeping some from participating in Ai. The world is separated into haves and have nots.