r/LocalLLaMA • • 14h ago

Showcase High speed SSD MoE

Hey guys, just wanna share a quick update on the project we've been working on... An inference engine called TokenWing that lets you offload over 50-60% of the routed experts into SSD and still achieve very low streaming latency... Through predictive prefetching

I'm running Qwen 3.8 Flash Next 3.5bpw at 35-40+ tok/s decode and 600 tok/s prefill. All this without MTP yet... On a laptop with 32GB RAM + 12GB VRAM

And the best part is, we've built an autotuner that tunes the flags based on your hardware... And we've wrapped them in a nice simple interface where you can just simply download the model, and start using... The app name: Run My AI

We're building a harness around it as well... A good engine, a good autotuner, and a harness... In one app.

The project is still an early version, more performance improvements are coming up... We're moving fast... The project is fully open-source... Would love your thoughts.

Currently, we support Ling 3.0 Flash 120B MXFP4, Flint 40B Q4_K_XL and Qwen 3.8 FN WV-3.5bpw

https://runmyai.org

https://github.com/runmyai/run-my-ai

https://github.com/runmyai/tokenwing

11 Upvotes

22 comments sorted by

3

u/Der_Namenlose_Held 13h ago

It looks very interesting, and I'll definitely test it. To me, it seems to follow a similar, but not identical, approach to Strata. Am I correct in assuming that the models need to be adapted for your engine? Not a major drawback; I'm just trying to understand the difference between Strata and RunMyAI more precisely. Since I'm not a hardcore or expert user, I already prefer your interface to Strata's, even if the interfaces and websites are starting to look a bit too similar ;) I wish you all the best and will continue to follow the project; it's just too much fun to run the large MOE models on a PC that it shouldn't really be able to.

8

u/Harin007 13h ago edited 13h ago

I don't know how to say this without sounding bad but... unlike, Strata, we don't use any tricks that reduces the model's output quality like skipping experts or down-quantization when handling activations and attention, to showcase the high speeds.

And Strata's moat isn't SSD streaming in the first place... It uses mmap in Linux machines... But there's no good SSD pipeline. There's a reason why you'll see users running IQ2_XS on 12+64 setups on Strata... Cuz that's what fits in memory. Strata does a really good job when the model is fully in memory... Also, I'm talking about offloading the main 125B weights into SSD... Not the 51B ngram... Strata offloads the 51B ngram table into SSD... Which isn't any novel from the engine side... That's just how Qwen 3.8 FN is built.

1

u/my_name_isnt_clever 10h ago

I think your periods have multiplied...

3

u/Azazelionide 13h ago

Qwen 3.8 flash... At what quantization?

2

u/Harin007 13h ago

It's based on ISTA IQ3_S... A bit better than it in coding, math and uses a bit lesser thinking tokens.

2

u/Azazelionide 13h ago

Ram/GPU/CPU/pcie link?

2

u/Harin007 13h ago edited 13h ago

32GB DDR5

RTX 5070Ti 12GB Laptop (672GB/s)

AMD Ryzen AI 9 HX 370

4x PCIe 4

2

u/Azazelionide 13h ago

The GPU is over pcie 5.0 x8 I presume?

2

u/dio_anubi69 13h ago

Interesting, I've been working on the same problem for a MoE on an 8 GB card, with the experts in RAM and a VRAM cache rather than SSD. Two questions: what fraction of expert picks hit the fast tier during decode, and does it hold when the topic changes mid-conversation? And on a miss, do you move the expert to the GPU or compute it where it is? In my case copying a ~5 MB expert over PCIe cost more than computing it on the CPU, so I'm curious how SSD reads fit in the per-token budget.

1

u/Harin007 13h ago

Well, we saw that in most cases(not all, I agree), copying an expert to GPU took more time than computing an expert on CPU... And copying an expert from SSD to VRAM can't be done directly usually... It has to pass through RAM first... So an SSD miss goes into RAM and promote frequently used experts from RAM to VRAM.

2

u/dio_anubi69 13h ago

Same conclusion here. In my case the cache refresh runs in the background so the GPU never waits for it. When an expert has to come from SSD, does that token wait for the read, or do you skip or approximate it?

1

u/Harin007 12h ago

Wait... And surprisingly, we're achieving <5ms added onto the time per token due to SSD streaming. Which again will be improved further in the updates

2

u/MindPsychological140 12h ago

600 tok/s prefill on a laptop is nice. does the prefetch still work with a long prompt like 30k tokens, or the experts change too much? i would also ask about ssd wear after some weeks.

2

u/Harin007 12h ago

SSD wear-> zero to negligible... Your SSD has a TBW rating and it's wear is caused by writes... Well, the engine only does reads... So for SSDs, not at all an issue... If you really care about your SSD, I'd suggest to keep an eye on your SSD temperature if you give a try... In our tests, the temps are completely fine.

And yeah, for long prompts, the prefill speed still holds up.

1

u/MindPsychological140 11h ago

thanks for the answer. good to hear prefill stay fast on long prompts. do you plan to open source it later?

2

u/Harin007 11h ago

It's already open-source... Check the bottom of the post

1

u/MindPsychological140 9h ago

oh sorry i missed that. i will check the bottom of the post now, thanks

1

u/vacuumdecay0 8h ago

Looks pretty fast for using exact expert routing. I'm curious how the predictive prefetching works.

0

u/tomByrer 13h ago

compare to the other 30 streaming QFN engines please

I must have 5 Strata forks alone; here are a few: https://github.com/tomByrer/local-ai-linkfarm/blob/main/README.md#inference-engines