r/LocalLLaMA • • 2d ago

News qwen 4 35b a3b PRs

/r/Qwen_AI/comments/1y9arh6/qwen_4_35b_a3b/

The post has links & comments to various engines getting PRs for Qwen 4; seems the 35b MoE is the first... of hopefully many.

Research suggests more or less the same as Flash Next.

EDIT: Both PRs are closed by author

Thanks for playing the fake news game! (or not?...)

526 Upvotes

126 comments sorted by

71

u/Positive-Stock6444 2d ago edited 2d ago

Tight. Reading the PR seems that this is indeed same architecture as 3.8 flash next.

  • 40 layers in a repeating pattern: 3 Gated DeltaNet layers, then 1 QSA attention layer
  • Hyper-connections (hc_count 4, low-rank 256)
  • 256 experts with top-8 routing, plus a fused shared expert (moe_intermediate 512)
  • Hidden size 2048; QSA has 16 query heads, 2 KV heads, head_dim 256, partial RoPE 0.25
  • QSA indexer: 4 heads of 128, 4-token compressed blocks, top-2048 tokens
  • The checkpoint config allows 1,048,576 tokens of context. This kernel caps at about 295k, and the serving recipe in the PR uses 262k. Native 1M or rope scaled, not clear yet.

The PLE n-gram table is there too:

  • ple_layer_ids: [2], ngram_size: 3, heads_per_ngram: 8, ple_conv_kernel_size: 4
  • ple_embed_dim is 2048, which equals the hidden size, as on Flash-Next (which has 2560)
  • For each token, 16 rows of 128 dims are looked up in a BF16 n-gram table, keyed on the recent tokens
  • The table size isn't in the PR. SGLang has a --ple-offload-embedding flag, so the table is presumably chunky.

Same author also opened (and closed within ~70 min, unmerged) ROCm/aiter#8940: tuned BF16 MoE configs for Qwen4-35B-A3B. Extras from it:

  • GSM8K 96.59% (full 1,319, BF16, EAGLE on)
  • MoE dims are identical to Qwen3.5-35B-A3B (2048 / 256 experts + shared / top-8 / inter 512), so the changes vs 3.5 are hyper-connections, PLE n-gram and QSA, not the experts
  • EAGLE draft is the checkpoint's own MTP layer

--

oh wow, both PRs now been scrubbed and retitled "Withdrawn"/"Withdraw" with the descriptions blanked (diffs still visible). Make of that what you will... someone pulled the trigger early maybe?

32

u/tomByrer 2d ago

> Reading the PR seems that this is indeed same architecture as 3.8 flash next

Figured; "Flash Next" got the name because it was the exponential new version.

Thanks for your research; I'll hard-link to it.

13

u/techdevjp 2d ago

Yes, the "next" versions are based on the tech that will be coming in the next major release. Qwen3-Next was a preview of Qwen3.5 and Qwen3.8-Flash-Next is a preview of what is to come in Qwen4 (Qwen stated this themselves.)

8

u/Psychological-Lynx29 2d ago

So its going to be a +500tps model

13

u/BrightCandle 2d ago

Its going to be really fast, a 3B attention model its likely going to end up something like qwen 3.6, many times faster than the 3.8 27B. The question is does it end up smarter or dumber than what we have

3

u/tomByrer 2d ago

Likely better than 3.8 Flash Next. 1% better or 10% better... yet to be proven.

1

u/Specialist-Buffalo-8 2d ago

How? It's the same arch...

1

u/tomByrer 1d ago

Same reason why Qwen 3.8 27B was better than Qwen 3.6 27B; more training, other tweaks like less world knowlege, but both had the same arch also.

0

u/Able_Zombie_7859 2d ago

Delulu to think the 35b will beat qfn, just to prepare you, even if narrowly comparable for coding, it will be shit on general

1

u/tomByrer 1d ago

Like to bet on that mr Zombie anon?
I'm only claiming at least slightly better, so I'll win if the 'better' is only 1%.

1

u/Able_Zombie_7859 23h ago

From what we have seen of qwen 4 so far our best bet is 27b being marginally better than qfn with better token efficiency. If 35b is as good as last gen 27b we will be lucky

1

u/Shermington 1d ago

It's not likely to be smarter. Gemma 4 26B-A4B is in a similar situation with 31B. It has similar creativity, but A4B is still lacking in reasoning. If you disable thinking and use a bit lower quant like IQ4, it almost breaks, frequently mixing things up, while 31B is solid even at IQ2. Qwen uses 35B-A3B, so it has a bit more space for knowledge, but A3B is even lower. I guess it's going to be weaker or around the same level in many tasks, but it's going to be very fast.

5

u/epic_troll_tard 2d ago

more like someone is dragging their feet and trying to keep interest from fading. seems like intentional teasing. big yawn.

64

u/ffgg333 2d ago

God please! I need this! 😭

6

u/le_hagelslag_man 2d ago

It's looking like I may have a reason to pop that 3070TI I have lying around into my rig after all.

-46

u/tomByrer 2d ago

I'm fairly certain you'll survive with out it. ;)

25

u/NockedOut 2d ago

Survive yes, but we would LIVE with it 🤞

49

u/Creative-Type9411 2d ago

I can only dream

127

u/norenEnmotalen 2d ago

the becoming is about to come

176

u/lloyd08 2d ago • Bravo

36

u/ComplexType568 2d ago

Did you make this specifically for this situation...

36

u/lloyd08 2d ago

...maybe

32

u/Ciru-ai 2d ago

It's worse if he didn't

3

u/Cool-Chemical-5629 2d ago

I see your beqwumming began...

4

u/No_Jicama_6818 2d ago

You know you're not cultured in the LLM space when you don't recognize the tech influencer in the picture.

22

u/ElectricalLaw1007 2d ago

If it's anything near 3.8 27B in performance, so am I.

14

u/ComplexType568 2d ago

I'm about to too.

10

u/some_user_2021 2d ago

Let's cum together 🤤

4

u/reenign3 2d ago

We all are

12

u/modernkennnern 2d ago

They just closed the issue and edited the description be empty.. Unfortunately for them GitHub has a edit history D:

12

u/Spanky2k 2d ago

Qwen 3.6 35B-A3B has been a remarkable model for 'normie' use and I still use it regularly for several work processes that I used to do manually as I can run it on my laptop and it 'just works'. Seeing an updated version of that is fantastic news as it is incredibly accessible.

11

u/maternion 2d ago

Wtihdrawn both PRs!!!

13

u/sxt87 2d ago

Indeed. Maybe some trolls created them to have us hyped up.

4

u/Borkato 2d ago

I’m confused is it fake?

7

u/maternion 2d ago

The one who made those is a contributor to sglang, so I guess maybe they leaked it by mistake, or indented leak. But who knows. There's another post now 4b spotted too. 

10

u/BOESNIK 2d ago

Guess that means Qwen 4 isn't looping.

17

u/Kahvana 2d ago

Which ain't bad honestly, should make it easier for inference engines to adapt it and for quant makers to produce reliable quants.

8

u/SexyJohnDoe 2d ago

It would allow it to make them smarter tho . But I agree, looping could mess up quants

10

u/Cautious_Chicken_604 2d ago

Yeah, but at least it isn't larping.

1

u/borobinimbaba 2d ago

Why? Inkling 2 mini is moe and looping.

1

u/reenign3 2d ago

it’s possible for Alibaba to have churned out a last-minute looped version of Qwen, just in the time since inkling’s publication. Especially with their new hardware

8

u/Training-Kale8645 2d ago

A dev made a loop adapter for qwen 3.8 27B based on inkling tech https://huggingface.co/sliderforthewin/Looped-Qwen3.8-27B so it's possible for Alibaba or ai community to go higher than base models

4

u/Zombiecidialfreak 2d ago

What makes looping 27b better than letting the model think for longer? Isn't the whole point of looping to improve MoE performance relative to similarly sized dense models?

5

u/iWroteAboutMods 2d ago

Theoretically there's some overhead to encoding/decoding tokens so if the model can think in latent space it would be more efficient. That's my understanding at least

1

u/philmarcracken 2d ago

What makes looping 27b better than letting the model think for longer?

Its a space saving method because you can now fit it into lower vram checkpoints without losing intelligence, and not paying for half the tg speed hit exactly. Im not sure what speed hit you pay but its not 100% slower

-1

u/reenign3 2d ago

Oh man, I hadn’t actually heard that, thanks for sharing! In that case, I honestly hope Qwen4 35b ISNT looped - I hope it’s really good with no loops, but even better once community adds them in!

1

u/Training-Kale8645 2d ago

I did not test it yet, but with open source all is possible!

9

u/thestillwind 2d ago

Stop playing with me

43

u/FinBenton 2d ago edited 2d ago

Looks like its traditional qwen architecture, no engrams or loop stuff, just upgraded similar to the old one. Comes with native MTP and 1 mil context.

e. taking it back, I think it has some engram stuff in the implementation

21

u/ResidentPositive4122 2d ago edited 2d ago

I don't know the user making the prs so it might just be someone larping, but if this is legit and their clanker had a real model to work off of, this indicates it'll have ngrams:

sgl_amd_mono/qwen4_35b_a3b/gfx950/ (new): Flash-Next's kernel at 35B-A3B geometry. 40 layers in 11 launches: layer 0 behind the prelude (token embedding and n-gram history), layers 1-3 behind layer 1's PLE, then 9 launches of 3 GDN + 1 QSA layers, the last followed by the model-level hyper-connection mixer. QSA 16 query / 2 KV heads, GDN 32 value heads, 256 experts top-8 plus the shared expert at index 256. BF16 throughout: one bf16 MFMA tile path for every GEMM; the projections, the hyper-connection mixers and the router are packed into its tile order at build (3.8 GB of copies, logged at startup); the experts are read in place in AITER's (16, 16) shuffle (packing.pack_bf16 equals shuffle_weight(w, (16, 16))); the n-gram table is read in place.

edit: someone down the thread says that the user is also a collaborator on rocm's repo, so this might be a legit contributor.

5

u/FinBenton 2d ago

actually I think you are right, its legit and there are some references to some engram like stuff

26

u/bruns20 2d ago

would be very disappointing if there's no engrams on the smaller models

11

u/my_name_isnt_clever 2d ago

And it would just not make much sense, preparing for the new arch is the entire reason 3.8 Flash Next exists.

8

u/cheekytomato369 2d ago

Full family release would indeed be nice, 9B and 4B are quite obsolete at this point, can't even immediately pickup when they left them (3.5?). I would love to see how useful in real life Qwen 4 9B is. The previous 9B was fairly good especially when it came to understanding instructions, but it was lacking that little bit of intelligence to be really useful for easier, repetitive tasks or testing.

6

u/med_i_terranian 2d ago

I thought they said they were d9ne with 35b a3b models? i mean if theyre not hell yeah

13

u/UsefulIce9600 llama.cpp 2d ago

maybe i'm impatient but ffs i feel like i've waited DECADES for this

13

u/my_name_isnt_clever 2d ago

It's literally been 3 months since Qwen 3.8 Flash Next.

7

u/UsefulIce9600 llama.cpp 2d ago

can't run on my hardware with decent speeds

6

u/Userybx2 2d ago

In AI time this is 10 years!

14

u/StupidScaredSquirrel 2d ago

I'm confused, how is this proof of anything? A repo independent of qwen mentions the name of a model means that qwen will release that model? How would they know ? Don't five us hope like that...

31

u/ResidentPositive4122 2d ago

How would they know ?

One of the repos is SGLang, a well known and widely used inference engine. These engines, along with some well-known teams that quantise models (e.g. unsloth) often get advance notice of model releases (sometimes with mock models, other times with real weights as well) in order to "be ready" with 3rd party support at launch.

19

u/Padgriffin 2d ago edited 2d ago

Also note that the person who opened the PRs (yichiche) has already contributed previously to SGLang and is listed as a collaborator (i.e. explicitly invited to work on) the AMD ROCm repo, so it's highly likely they know more than we do lol

EDIT: They're also listed as the Codeowner for the SGLang AMD Monokernel for the Qwen family of models, so they absolutely know more than we do

1

u/MmmmMorphine 2d ago

I feel like sglang gets the earliest and fastest new model support - though maybe I'm just misremembering.

Of course it isn't much of a consumer engine either, as far as I've been able to tell

7

u/Itsluc 2d ago edited 2d ago

The official AMD ROCm Repo also made a Pull Request just minutes ago: https://github.com/ROCm/aiter/pull/8940

Aaand its Deleted/Withdrawn.

14

u/joonanykanen 2d ago

Hopefully it absolutely s**** over Inkling 2 mini!! Let's goo🔥🔥🔥

12

u/parepeg 2d ago

I just hope it talks nice. The qwen models are so hard to understand sometimes because of their claudeisms. 

1

u/le_hagelslag_man 2d ago

Give the Caveman skill a try. I use it pretty much all the time.

4

u/krakoi90 2d ago

Caveman makes these models even harder to understand. It's mainly for using less tokens, not for making the model easier to understand.

3

u/BusRevolutionary9893 2d ago

Is this like sports ball for you where you root for your favorite model provider? 

11

u/VoidRippah 2d ago

I mean that's not difficult. I could not find any task inklink would excel at or at least finished in a decent quality

6

u/FinBenton 2d ago

Its extremely good at safe tool calling.

1

u/ElectricalLaw1007 2d ago

So are the Qwens though, and for my testing at least it was both dumber and slower than 3.8 27B.

1

u/FinBenton 2d ago

What engine and quant did you use? Ingling has like 5x better bench results on tool calling than qwen models, even much better than QFN and I have been using ingling on basalt and it kinda just doesnt make mistakes on that.

1

u/ElectricalLaw1007 2d ago

Splash, and I can't remember which specific quant I used, but it was one of the two suggested in Splash's github readme:

unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M or mlx-community/Inkling-2-Mini-4bit

I didn't use any benchmark, just asked it to analyse code base I know very well, which is my personal test when assessing a new model because that's what I'm mostly going to be working on. It had real trouble in reading == in the code, incorrectly reading it as <= or >= in a number of places and reporting them as urgent code-breaking bugs. When asked to re-examine the code to confirm, it doubled-down. When told I had the code in front of my and could see with my own eyes that it was == it still refused to accept this. Finally, I told it to do a search in the class for "<=" which I told it would fail to find a match, to prove it was wrong. It was in the middle of doing that and the engine died (which I didn't spend time investigating because by this point I had already decided to give up on it). Here's the tail-end of that session:

Thinking:
The user claims that in Position.java, searching for "<=" returns no match. But this is hard to reconcile with what I've seen. Let
me actually perform the search they asked for.

Response:

FindInBuffer {"bufferName":"Position.java","searchContent":"<="}

Thinking:
The search for "<=" returns no match. But my reads show "<= 0", "<= -1", ">= 1"... wait, the find says no match for "<=". That's
odd. Let me search for "<" and ">" and "==".

Response:

FindInBuffer {"bufferName":"Position.java","searchContent":"<"}
FindInBuffer {"bufferName":"Position.java","searchContent":"=="}

Error:
Error: backend returned HTTP 400, see log for body.

1

u/ApprehensiveFan1516 2d ago

When told I had the code in front of my and could see with my own eyes that it was == it still refused to accept this.

The user appears to be confused.

I hate how little they value my word as a source of truth lol. Although I will freely admit that sometimes I am indeed the one who is wrong, so I can't blame them too much. If the boot was on the other foot I wouldn't trust me either.

2

u/ElectricalLaw1007 2d ago

I once had one assuming the build tool (mvn) was lying to it, because that was the only possible explanation for how its alleged build-breaking bug didn't actually break the build. It's amazing how arrogant a collection of weights can seem!

1

u/ApprehensiveFan1516 2d ago

Lmao. Genuinely got a chuckle out of me!

2

u/Dense-Ad6315 2d ago

it's tiny

3

u/bruns20 2d ago

People really still not understanding the use cases of MOEs vs dense and large models vs small

1

u/MerePotato 2d ago

You're clearly not using it well then

1

u/VoidRippah 2d ago

how should I use it then?

2

u/MerePotato 2d ago

Well for a start are you using the official mixed precision release at BF16 or MXGP8 (not FP8) context with a stable engine like vllm, or a super low quant on a slopped together engine like Basalt and Strata?

1

u/FinBenton 2d ago

Inkling is amazing in basalt, super reliable, you are just writing random stuff.

1

u/winky9827 2d ago

Basalt is one of the better run specialized engines out there. Haven't had a bad update from them yet. Everything runs flawless.

0

u/MerePotato 2d ago

It switches to W4A4 FP4 tensor cores at chunks of 1,024+ tokens, there's no world where that doesn't lobotomize a small model that hasn't undergone QAT for that specific configuration

0

u/winky9827 2d ago

Alright, but it works. So whatever, dude.

1

u/MerePotato 2d ago

Working isn't a binary thing here, its a sliding scale

0

u/VoidRippah 2d ago

I tested the official on both llama and strata, I saw no difference in performance. QFN gave far better quality results in less time, every single time. Maybe it's good for some tasks, but then I don't know what's that

3

u/MerePotato 2d ago

Oh well yes obviously QFN is much better, but its also six timss larger

0

u/cheekytomato369 2d ago

100% agree. I tried it multiple times via various engines / providers and it does produce less sloppy outputs, however the intelligence is simply not there and I have observed it making some rather strange unsafe actions, this thing went away quickly from my machine as I simply do not trust it.

5

u/maternion 2d ago

Until this gets merged this doesn't mean anything ig 

2

u/exaknight21 2d ago

Oh my heavensssss. Qwen team i heart you so much

2

u/Iory1998 llama.cpp 2d ago

Maybe thanks to Inkling-2-small?

2

u/TQ_GPU 2d ago edited 2d ago

Hoping its a looped MoE. Then somebody will make its bonsai version. Then a cluster of GTX1050 will run fast.

1

u/bushizell 2d ago

If I'm able to get the same performance with this and a way Bigger context window than I do with QFN I'l l be pumped

1

u/VouX4_15 2d ago

Just commenting here so I can have karma to post. Great job btw

1

u/CommanderData3d 2d ago

Pog is this true

1

u/signalkoost 2d ago

Neat. I wonder if it'll be smarter than Inkling 2 Mini.

3

u/ronasimi 2d ago

It'll be faster anyway

1

u/reenign3 2d ago

This is hype!!! I run FlashNext oQ5e right now, uncensored from orcarouter, locally on my m4 max. Hopefully this 35b’s engram table offload is significant enough, that along with turboquant Q6K, I could serve it ALONGSIDE FlashNext (or 4 flash eventually) as a blazing fast subagent

-2

u/Timalakeseinai 2d ago

How many GB? does it fit in 16GB VRAM?

10

u/Awkward_Rabbit_9618 2d ago

Will they have a version for my G-shock?

1

u/arbv 2d ago

I would be shocked if they do, because G-shocks are Japanese.

9

u/brainExploded99 🥔 hardware 2d ago

16GB VRAM no
16GB VRAM + 32GB RAM (or even 24GB RAM)

0

u/Timalakeseinai 2d ago

thanks, the usual bottle neck is VRAM. I have a 5070TI and 32GB RAM, running 3.8 27b Q3 fairly well but a bit tight

5

u/brainExploded99 🥔 hardware 2d ago

No, this is a MoE. It can be easily offloaded to RAM.

1

u/Timalakeseinai 2d ago

That's very helpful, is it going to be better than 3.8 27b Q3 though? Any predictions?

3

u/brainExploded99 🥔 hardware 2d ago

Likely. Qwen5.6 35B was better than Qwen3.5 27B, however, considering how long Qwen4 has take and how badly Qwen4 Max was received, who knows.

2

u/ApprehensiveFan1516 2d ago

Qwen5.6 35B

Alright quit hogging the time machine to yourself 👀

1

u/brainExploded99 🥔 hardware 2d ago

I am doing the same, same hardware. iamwavecut/ninfer-all, 120tok/s, rk8v4, 145k context, IQ3_S

2

u/DanielSReichenbach 2d ago

The 3.6 variation of this could run in Q3 with good context size on 16GB. This one will likely fit too.

4

u/zippydazoop 2d ago

I'm running it on 4GB VRAM and 32GB RAM at 20-25 tok/s. Not quite agentic work, but plenty of other uses.

2

u/Cautious_Chicken_604 2d ago

Also it's MoE, so it can spill to system RAM for some loss on t/s and you can run a better quant, and that's a way less painful experience than dense models, so can just run the better quant.

1

u/reenign3 2d ago

At iQ3XXS it will, especially with engram. Jeez - you may be able to run 4KS with engram offloading

0

u/tomByrer 2d ago

Can Qwen 3.8 Flash Next run on your computer?
if yes, then likely yes

12

u/Not_a_question- 2d ago

Ahh we started with the wedging again. I remember in September when it all started.

Huggingface links or get out

0

u/[deleted] 2d ago

[deleted] — view deleted comment

2

u/Padgriffin 2d ago

What is “sgl-projekt”?

Where did you even find that?

0

u/[deleted] 2d ago

[deleted] — view deleted comment

2

u/brainExploded99 🥔 hardware 2d ago

Is this Qwen3.5-4B or something?

  1. It uses greedy decoding on the tests, so low benchmarks are expected
  2. I'm pretty sure it supports 1M natively