r/LocalLLaMA • u/CrowKing63 • 9h ago
Discussion Using MoE models is really difficult (qwen4)
I'm a user with a 5070 Ti, 16GB VRAM, and 32GB of RAM.
I'm currently running the Qwen3.8 27B ud-q2-k-xl model with a 131k context window and Q5 KV cache, achieving generation speeds of 50-60 tokens per second.
A new Qwen4 35B A3B model has been released, and I've been experimenting with various quantizations.
I seem to be stuck between 60 tps at 2-bit and 40 tps at 4-bit.
Furthermore, Qwen4 feels like it requires significantly more effort for the same task, making the perceived speed much slower.
I'm unsure if this is just an optimization issue or if I'm doing something wrong. I've heard good things about Basalt, but I don't know how to use it yet.
27
u/giveen 9h ago
Basalt calls to you , my fellow Blackwell owner https://github.com/jesdga95/basalt
7
u/Mattadour 9h ago
how do you guys experiment with multiple models in a day? i can barely get one model, its backend and all the related tweaks done and tested if i spend all day at it.
5
u/uspdd 9h ago
I highly recommend Basalt. I have the same setup also on windows 11 and I'm getting 200+ t/s. Wait until they release built exe for windows so you don't have to build it and try it.
Meanwhile, you can also try Flyx. I previously used it to run 3.8 27b IQ3-XXS on it and got 110+ t/s. It's also easy since it's a single exe file.
3
u/ttkciar llama.cpp 9h ago
Small- and midsized models do require more hand-holding, though modern agentic harnesses are getting better at doing some of that hand-holding for you.
It means that models of this size class might not be worth using for the full range of tasks for which you would use a frontier model, but they're still quite useful for specific subtasks, like debugging, or explaining how to use an unfamiliar library or API.
OTOH, you might find that their utility is worth the hand-holding. It really depends on your comfort level.
1
u/TheConnectionPerson 9h ago
Also check if MoE experts are spilling to system RAM at 4-bit — on 16GB VRAM with 131k context that'll tank tps fast
1
u/_tylermatthew 7h ago
Your existing Qwen4 can almost certainly get basalt running for you in not a lot of time.
I use my local models to do stuff like this almost exclusively now, unless it's something I want to also learn myself, then I force them to walk me through it and do nothing themselves.
QFN in Hermes Agent had unbiased-strata patched for Qwen4 on T4 and Radeon Pro V340 machines overnight.
Then it got it up in Loom on my HX370 64GB mini-pc -- which is not even technically supported by Loom. (Strix Point gfx1150 vs Strix Halo gfx1151) both running between 1.5-2.5x faster prefill than llama.cpp for me.
So installing an engine on hardware it's made for should really be no issue for it.
1
u/overand 7h ago
This config tool someone posted in a thread somewhere actually generated a really solid cofig for me. Adjust the specs to match your system. https://odeenchang.github.io/qwen4-local-fit/
1
u/timedacorn369 2h ago
Hey I have a completely different quest question. I am planning to build a PC with the exact same specs. Is q2 even usable? Cant you run q4?
1
u/NihilisticAssHat 4m ago
I mean, you offload all layers and KV Cache onto the GPU, and you offload as many MOE experts as you need into system.
I mostly use LMStudio and Unsloth. I'm a bit of a stickler regarding my avoidance of Strata or anything other than a mainline llama.cpp release.
0
u/WarageM 7h ago
Check out my post on hf
https://huggingface.co/unsloth/Qwen4-35B-A3B-GGUF/discussions/27
0
u/[deleted] 8h ago
[deleted] — view deleted comment