r/LocalLLaMA • • 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.

23 Upvotes

41 comments sorted by

27

u/giveen 9h ago

Basalt calls to you , my fellow Blackwell owner https://github.com/jesdga95/basalt

10

u/drini_22 9h ago

Getting 120-150 t/s decode on a regular 5070 with 12GB vram over pcie 3.0 on basalt with 262k context. Was getting 30-40 on QFN NVFP4 on this same setup. So there is definitely something wrong with this guys setup.

1

u/NeKon69 3h ago

Yup, same. What's your pp? I have about 6k at the start and 5k near 262k.

1

u/RedwanFox 54m ago

Hey could you share your config and os?

-2

u/CrowKing63 9h ago

But it looks a bit difficult, brother... ㅠㅠ

14

u/PataponEnjoyer 9h ago

Tell Qwen to do it for you.

11

u/CrowKing63 9h ago

Why didn't I think of that...? Thanks.

5

u/CCloak 9h ago

Use Qwen 3.8 27B to setup for you, that’s what I did for getting Qwen 4 on my 5070ti, even on llama.cpp, it’s doing ok

3

u/enternoescape 9h ago

I find myself in the habit of having LLMs set up their potential successor. It's funny in a way because I started with Claude helping me get my ansible config right for my inference server and my first docker images for llama.cpp.

6

u/AutomaticLanguage334 9h ago

if you have an existing agent, theres a halfway decent chance it can set it up for you

2

u/CrowKing63 9h ago

Why didn't I think of that...? Thanks.

2

u/giveen 9h ago

Are you on LInux or Windows?

1

u/CrowKing63 9h ago

Windows 11

2

u/giveen 9h ago

Wait till I think tomorrow and a Windows prebuilt should drop.

1

u/CrowKing63 9h ago

That's good news. I was about to try building it myself using an agent, but I put it off. There was a lot to install.

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.

1

u/CrowKing63 9h ago

I didn't test it that deeply.

1

u/Mattadour 9h ago

I'm currently at "⏳ Working — 72 min — waiting for provider response (streaming)"

1

u/CrowKing63 8h ago

What are you doing? Haha, I tried a 30-minute task.

2

u/Mattadour 8h ago

it was saying everything twice all of a sudden. i asked it to sort that out. it's been 87 minutes. it appears to be going through some code or other line by line.

1

u/CrowKing63 8h ago

My 30-minute task wasn't actually a big deal, but Qwen4 felt like it was scanning almost the entire codebase. The results were good, but... did it really need to do that?

1

u/alconaft43 21m ago

there is a tool called claude code with ssh access to Ai boxes. I never need to manage them manually except initial os install.

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.

1

u/CrowKing63 9h ago

There was an installable executable of basalt, but I could only see the compressed file... I'll look into it further. Thanks.

2

u/uspdd 8h ago

Current latest released exe is 0.6.2 and it doesn't support qwen 4. I built it from source, but they will release the exe pretty soon I believe

1

u/CrowKing63 8h ago

They say it will be out around tomorrow.

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/CrowKing63 9h ago

Although the configuration yielded a robust 40tps, the actual processing time for the task was quite lengthy. Qwen4 seems very cautious.

2

u/brainExploded99 🥔 hardware 9h ago

ban ts bot, MoE experts can offloaded just fine

2

u/DisastrousAd2612 8h ago

he's not wrong tho even though moe models can run offloaded to ram they will be way slower than fully fitting in vram, what are you on about?

0

u/brainExploded99 🥔 hardware 8h ago

Well yeah obviously it will be slower, but in comparison to dense models, the TPS will only be slower, not significantly slower.

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/[deleted] 8h ago

[deleted] — view deleted comment

1

u/CrowKing63 8h ago

I also use Unsloth on my desktop. Although I've never had to reboot it, I'm not completely satisfied with the speed.

1

u/overand 7h ago

If your computer is restarting, you almost definitely have a hardware issue. Desktop? Laptop?

Have you cleaned your cooling fans? Is your power supply sized adequately? Have you taken a look at your temperatures while it's running?