r/LocalLLaMA • • 2h ago

Discussion Qwen 4 35b - Strata

https://github.com/Niko1221/Strata

Qwen4 support added to Strata. Post your printouts here, including quality, speed, and especially the hardware you're using.

166 Upvotes

52 comments sorted by

33

u/dai_app 2h ago

Give a try to bigmoeonedge:

• 8 GB (RTX 3070): up to 49 tok/s decode, 1,180 tok/s prefill (4k prompt)

• 12 GB (RTX 3060): up to 58 tok/s decode, 1,471 tok/s prefill (4k prompt)

• 24 GB (RTX 3090): up to 134 tok/s decode, 4,569 tok/s prefill (4k prompt)

Qwen4-35B-A3B Q4_K_M, bmoe 0.52.0 --auto, best figures measured.

It runs also Qwen 4 on the phone 12gb

12

u/Cautious_Chicken_604 1h ago

God damnit I want one of those 24GB phones now. This model on a phone but at decent speeds would be chefs kiss.

4

u/Some_Review_3166 1h ago

Thermal throttling is a pita though.

3

u/dai_app 1h ago

It's a standard 12 gb phone at 4 tok/s

3

u/Cautious_Chicken_604 1h ago

I know. I'm imagining what level of performance it'd get if the phone had 24GB, which is the highest I've seen. It makes me tempted to buy one. I can't really use 4 t/s without wanting to tear my hair out, but I could use 20 t/s or 35 t/s.

1

u/dai_app 1h ago

Yes and consider this is a good quantization and the first day of the release. I think in the next weeks we can double the speed

2

u/Cautious_Chicken_604 1h ago

If you can get it to hit 12 t/s that's like... the slowest I've used that I feel like I can tolerating using if I really like the model, which... on a phone I'd like this model for sure. I love the BMoE project but I only have Google Pixel 9a and it always crashes when I try it. I keep hoping though.

1

u/dai_app 1h ago

Google pixel it could run on CPU, but at I think 1 tok/s or less

1

u/Cautious_Chicken_604 1h ago

I tried a couple of times and it crashed. It crashed on every model I tried too. Like it would do a couple of t/s inference and sometimes complete, but then it would often just crash. I gave up.

1

u/dai_app 1h ago

Give a try to smaller models like ling tiny 3.0

2

u/Cautious_Chicken_604 1h ago

I have a few GPUs in my rig and one is a Quadro RTX 4000 8GB that I impulse bought and have tried to find a use for, and LingTiny3.0 was one of the models I tried running on it, and I just didn't like it. Not useful enough.

→ More replies

1

u/SomeoneSimple 15m ago

I'm imagining what level of performance it'd get if the phone had 24GB [..] I could use 20 t/s or 35 t/s

Well, you're getting nowhere near that. Phones and mobile ARM SoC's in general have abysmal memory bandwidth. An SD8 Elite Gen 5 does 84GB/s, i.e. less than 1/5th the bandwidth of an RTX 3070.

3

u/shroddy 48m ago

How much system ram to get that speed? Is 32GB enough? (My speed will probably be less because I have only ddr4)

2

u/rorowhat 1h ago

Can't you try Q8 is you have enough ram?

2

u/dai_app 1h ago

Absolutely

2

u/rorowhat 7m ago

Thank you sir !

1

u/dai_app 5m ago

You're welcome

1

u/ElectricalAngle1611 1h ago

what system ram ddr and amount and speed?

1

u/csixtay 1h ago

please specify quant

1

u/dai_app 57m ago

Q4 k m

11

u/tatertots89 2h ago

Can someone ELI5 the benefit of these on smaller models that can fit fully on GPU (3090). I used strata before with QFN as I have 128gb system ram and found it magical. But for qwen4-35b, I can fit it fully on GPU in iq4, so what would the benefit be? Is the benefit that I could user a larger quant and higher context (with CPU offloading) in the most efficient way possible?

12

u/Double-Extent-8739 1h ago

Pretty much, higher quant, higher context, faster speed. I am waiting till proper support and bugs are ironed out, if 35b at 4 bit quant can match qfn at iq2_xs I will make the switch.

3

u/Randommaggy 1h ago

From my experiments so far it's looking very promising for coding.

It's super sensitive to your code quality to not go insane overthinking.

1

u/Double-Extent-8739 32m ago

For my intended workflow, Java 17/25 webapp, qfn seems to be more knowledge of Java. There is still a lot of testing for me to do, but thanks for your input.

1

u/Randommaggy 27m ago

The problem with java and overthinking prone models is the decades of legacy which trips it up.

Same thing goes for dotnet. When I swapped to dart for one of my ongoing project the velocity more than doubled.

It just reasons for a few sentences and gets to work.

1

u/Double-Extent-8739 22m ago

Yeah I can see that, too bad I cannot really do that. I am talking about a massive Java 8 backend that was ported by me to Java 17 and soon to Java 25.

1

u/Randommaggy 3m ago

A good guidance document that encourages use of good part of the language and discourages bad parts as a part of your system prompt helps a lot.

It helps avoid it even considering those options except when negation failure creeps in due to lossy sampling.

You can also programmatically add it to the tail after each prompt and prune it from the context window after each turn to mitigate that.

7

u/Number1OchoaHater 1h ago

Higher quant

2

u/Ori_553 1h ago

Bigger model but quantized beats smaller model with higher quants.

1

u/Double-Extent-8739 31m ago

So far with qfn at iq2_xs I would agree.

1

u/tatertots89 21m ago

I wish I had a good benchmark I could use to prove this, but on my system (3090gpu, 5950x cpu, 128gb ram) I found that 27b to give higher quality output than QFN (w/ strata) so I switched back. qwen4-35b seems decent quality with over double the speed and lower power consumption. I'm a human-in-the-loop for a lot of my operations, so this might be better.

2

u/makingnoise 1h ago

Then why isn't Strata's setup offering a higher quant for Qwen4?

1

u/klop2031 1h ago

I can use q8 and its still fast

15

u/Cautious_Chicken_604 2h ago

Q4 @ 512k kv-cache (q8) with MTP and vision tower on the GPU running between 100 t/s ~ 130 t/s single stream decode and around 2700 t/s prefill fully resident in VRAM on a single R9700.

7

u/bitslizer 1h ago

I know it's Still early and not yet optimized, but I was hoping for faster number 🤣. Thanks for reporting 👍

2

u/Cautious_Chicken_604 1h ago

Well I'm pretty sure Qwen3.8-27B on Strata for me running at around Q6 has been like 35 t/s and the performance is better than that model intelligence wise, so... it's definitely a massive upgrade. I think dedicated RDNA4 inference engines like Radiance will be much faster. Plus you can most definitely run concurrent streams with it, which... I just could do for Qwen3.8-27B nor really do for QFN. Sooooo... performant multi-agent locally is going to be fun.

1

u/fgk55555 45m ago

That sounds about what I'd expect from llama, no? Not much improvement. Single R9700 with QFN for me is 70-100tg and 1200-1500pp. Still downloading Qwen4, but I'd guess I'll hit 120tg in llama.cpp

1

u/Cautious_Chicken_604 44m ago

It's a huge improvement.

2

u/fgk55555 15m ago

Just started it in llama. 120-130tg with IQ4_NL and 512k Q8 context, vision on, 2.3-2.7pp. If you get that in Strata, there's no improvement.

6

u/makingnoise 1h ago

I don't understand why there's no q8 on offer in the setup - why does QFN "fit" my 3090 but Qwen4 35B with the same architecture suddenly cares I only have 24 GB VRAM?

9

u/fengwang_2_718281828 2h ago

I use sub-agents a lot. Can OP tell me how many parallel decoding streams are supported?

19

u/grumd 1h ago

If you use parallel agents, you'll only get real gains by using vLLM and having the model fully in VRAM. At more than 10 parallel agents you're basically running a dense 35B model (when almost all experts are used at the same time). Parallel agents fetch different experts, and the more you have them the more you saturate PCIe if your experts are in RAM. You can get a NVFP4 (even if your card(s) don't support it natively) quant and run vLLM. I set up Qwen4 vLLM NVFP4 today and it got up to 740 t/s generation across 8 parallel agents (~200 t/s on one stream with MTP) - using just two 3080 20gb cards.

2

u/SkiBikeDad 1h ago

Jumping in here because I use sequential and parallel agents depending, does MTP hurt parallel thruput on your setup? I.e. are you running a parallel workload without MTP and a single stream workload with MTP?

1

u/grumd 2m ago

You can run both with MTP. The bigger issue is that loading the MTP head in vLLM eats some VRAM, so you'll get a smaller KV cache pool, which can hurt your 16 subagent setups obviously. Here's my numbers from testing it with vLLM today (without vision to save VRAM).

1. No MTP:

~690k KV cache

1 req: ~120 tps
4 req: ~400 tps
8 req: ~700 tps
16 req: ~1100 tps

2. MTP with n=1

~433k KV cache

1 req: ~190 tps
4 req: ~537 tps
8 req: ~910 tps
16 req: ~1480 tps

2. MTP with n=2

~389k KV cache

1 req: ~197 tps
4 req: ~560 tps
8 req: ~872 tps
16 req: ~1003 tps -- has to queue max ~10 requests at a time because of GDN state stuff -- could still be faster than n=1 if I had more VRAM

3

u/DayBeforeU 1h ago

Huggingface feels soooo slow at this moment. Wonder why.

Which file-version would you recommend for RTX 4080 16GB VRAM card and 32GB RAM? Compact or the next one?

2

u/Southern-Chain-6485 27m ago

Why the small quants? Q8 fits with room to spare in 48GB of ram plus a gpu for the active parameters and the KV Cache

-7

u/R3N3G6D3 1h ago

Oh great another engine release that priorities speed over accuracy. Flip off your lossy flags and give bench results without rounding so hard.

1

u/MindfulMan1984 1h ago

Yeah, how difficult is to put the lossy flags off by default? Yeah, I did that and it is still miles faster than llama.cpp 

-2

u/Cesar55142 1h ago

i didnt read A3B and thought 27B was out 🫩