glossary: 7 terms

As of today, Strata – my own local LLM-inference software, running on a machine with an AMD Ryzen AI MAX+ 395 and Radeon 8060S (gfx1151), a MINISFORUM MS-S1 Max* known as Strix Halo – runs a new default model: Qwen4-35B-A3B has replaced Qwen3.8-Flash-Next. Both models share an unusual architecture that almost entirely abandons the classic, quadratically expensive self-attention mechanism. Despite the higher version number, the newer model is much smaller than its predecessor and computes only half as many active parameters per token – and yet on my hardware it reads long prompts noticeably more slowly. This article explains the architecture, puts the size comparison in context, and shows what my own benchmark has to say about it.

What this is about

  • What Qwen4-35B-A3B technically is: a multimodal mixture-of-experts model with an unusual hybrid architecture.
  • How the architecture combines Gated DeltaNet, Qwen Sparse Attention, per-layer embeddings, and multi-token prediction.
  • Why Qwen4-35B-A3B is smaller than its predecessor Qwen3.8-Flash-Next, not bigger.
  • Installing it on Strata and a direct benchmark on my own AMD Strix Halo hardware.
  • Where the new model is faster – and where it’s noticeably slower.
  • Update: whether the 4-bit UD-IQ4_XS variant explains the slow prompt processing – or whether the cause lies elsewhere.

What is Qwen4-35B-A3B?

Qwen4-35B-A3B is a multimodal mixture-of-experts model (MoE) from Alibaba’s Qwen team, licensed under Apache 2.0: 35 billion core parameters, of which, according to the model card, only about 3 billion are actually active per token (the Hugging Face blog gives roughly 3.8 billion). On top of that come roughly 20.5 billion parameters for an embedding table explained further below and roughly 2 billion for a multi-token prediction component; Hugging Face puts core plus embedding table at roughly 56 billion parameters. Native support for text, image, and video input and a native 1-million-token context window are part of the architecture according to the model description – on my Strata server, images are currently disabled, and the configured context is 128K instead of the full 1M tokens. Hugging Face describes Qwen4-35B-A3B as the model that brings Qwen’s new hybrid design into production; according to the model card, the flagship of the Qwen4 series is Qwen4-Max, an “ultra-sparse” model for long-horizon agentic tasks.

The architecture: Gated DeltaNet and Qwen Sparse Attention in rotation

Instead of repeating the same expensive self-attention mechanism in every layer, Qwen4 uses a fixed pattern repeated ten times: three Gated DeltaNet (GDN) layers followed by one Qwen Sparse Attention (QSA) layer – 40 layers in total, of which only the 10 QSA layers need a key-value cache (KV cache) that grows with context length. Gated DeltaNet instead updates a fixed-size memory with every token, one that never grows with context length. Qwen Sparse Attention, in turn, lets the current token look back selectively at individual earlier tokens from the entire context, but a small, separate “indexer” picks these in groups of four tokens (up to 512 groups, i.e. up to 2,048 tokens) rather than truly checking every single token. Each of the 40 layers also feeds into a mixture-of-experts stage with 256 experts, of which only 8 plus one permanently assigned expert actually compute per token. On top of that comes a per-layer embedding table (PLE) with bigram and trigram entries that feeds additional information about neighboring tokens into layer 2 – table lookups cost mainly storage and hardly any extra compute. For faster text output, a multi-token prediction component (MTP, roughly 2 billion parameters) is also used, proposing several tokens at once. The result of all this is a very small KV cache: according to Sebastian Raschka’s independent architecture analysis, about 20.6 KiB per token in bf16. With the int8 KV cache configured on my server, it is accordingly about half that, roughly 10 KB per token.

The recurring four-layer pattern: three Gated DeltaNet layers, then one Qwen Sparse Attention layer, repeated ten times – 40 layers total, of which only 10 need a growing KV cache.

Smaller than its predecessor: Qwen3.8-Flash-Next versus Qwen4-35B-A3B

Anyone expecting a simple upsize from “3.8” to “4” would be wrong: Qwen3.8-Flash-Next, the architecture preview Qwen used to first show this redesign publicly in August 2026, has 176 billion parameters in total, 51 billion of them in the n-gram embedding table, and 6 billion active parameters per token. Counted the same way, Qwen4-35B-A3B comes to roughly 56 billion (35 billion core plus roughly 20.5 billion PLE) with 3 billion active parameters; comparing core parameters only, it is 125 versus 35 billion. Both share the same core idea of Gated DeltaNet, Qwen Sparse Attention, and a residual connection split into four branches (“Gated Residual”); Qwen4-35B-A3B is the smaller variant of the same architecture – not its enlarged successor. That is exactly what makes my benchmark result notable: on paper, the smaller model with half the active parameters ought to be faster, if anything.

Installation on Strata

For this, Strata was updated from version 0.2.22 to 0.2.28 (./setup.sh --update), recompiling the main engine (0.1.75) for the gfx1151 GPU architecture. Qwen4 gets its own, separate engine called strata-q4-lite (version 0.1.74), which sits alongside the main engine rather than replacing it:

Installation (Strata, Strix Halo / gfx1151)

./setup.sh --setup --family qwen4-35b-a3b --model Ultra --context 131072 --yes --no-start

The installed tier is Ultra (Q8_0 quantization, for 32 GB and more), 48 GB on disk including the PLE table, the MTP draft layer, and the image encoder; Strata also offers Compact (for 12–16 GB cards) and Balanced (24 GB). The running configuration uses the HIP backend, a 128K context, an int8 KV cache, disabled image input, MTP set to “auto” (which, as the update below shows, resolves to "drafting": "off" internally in the installed Ultra profile), and thinking at effort level “high”. The model is reachable through an OpenAI-compatible API (http://127.0.0.1:8080/v1) and an Anthropic-compatible API (http://127.0.0.1:8080/v1/messages) under the model name qwen4-35b-a3b-ultra. Important for any agent previously hardcoded to the old name qwen3.8-flash-next-unsloth-ud-iq4_xs: that name is no longer valid, and the context is now only half as large (131,072 instead of 262,144 tokens).

The benchmark: faster in chat, noticeably slower on long prompts

Measured with a custom benchmark tool, three runs per test, thinking off, temperature 0, one request at a time; medians are shown. Only speed was measured, not the quality of the answers. Qwen4 ran twice (once started by the benchmark, once via the running service); the two runs differ by at most 2 %, and the table shows the second run. An important caveat for reading these numbers: the two models ran with different quantization (IQ4_XS versus Q8_0), a different engine, and a different context (256K versus 128K) – the table shows how my machine behaves in practice, not a fair architecture comparison.

Test Qwen3.8-Flash-Next UD-IQ4_XS Qwen4-35B-A3B Ultra Q8_0 Change
Chat: Decode / Generation Speed 47.8 tok/s 43.4 tok/s −9 %
Chat: Time to First Token (TTFT) 0.47 s 0.27 s −43 % (better)
4K Prompt Prefill 995 tok/s (4.1 s) 464 tok/s (8.7 s) −53 %
16K Prompt Prefill 1,163 tok/s (13.9 s) 451 tok/s (35.7 s) −61 %
32K Prompt Prefill 1,129 tok/s (28.5 s) 441 tok/s (72.7 s) −61 %
Agent Turn: TTFT 3.5 s 6.8 s +94 %
Agent: Decode / Generation Speed 46.5 tok/s 41.8 tok/s −10 %
Agent: cache hit rate 71.6 % 71.3 % unchanged
My own measurement on AMD Ryzen AI MAX+ 395 / Radeon 8060S: Qwen4 responds faster in chat but reads long prompts noticeably more slowly.

Update: the 4-bit UD-IQ4_XS variant compared

A day later came the obvious follow-up test: Strata offers Qwen4-35B-A3B not only as Q8_0 (“Ultra”) but also as a 4-bit quantized variant, UD-IQ4_XS – the same Unsloth quantization level that Qwen3.8-Flash-Next ran at before. That makes it possible to directly test the hypothesis left open above: does the slower prompt processing come from the larger Q8_0 quantization, or from something else?

Test Qwen3.8-Flash-Next UD-IQ4_XS Qwen4-35B-A3B UD-IQ4_XS Qwen4-35B-A3B Ultra Q8_0
Chat: Decode / Generation Speed 47.8 tok/s 77.2 tok/s 43.4 tok/s
Chat: Time to First Token (TTFT) 0.47 s 0.40 s 0.27 s
4K Prompt Prefill 995 tok/s 474 tok/s 464 tok/s
16K Prompt Prefill 1,163 tok/s 449 tok/s 451 tok/s
32K Prompt Prefill 1,129 tok/s 437 tok/s 441 tok/s
Agent Turn: TTFT 3.5 s 7.4 s 6.8 s
Agent: Decode / Generation Speed 46.5 tok/s 64.6 tok/s 41.8 tok/s
Agent: cache hit rate 71.6 % 71.3 % 71.3 %
Reading prompts stays almost equally fast on Qwen4 whether at 4-bit or Q8_0 – write speed, on the other hand, differs a lot.

The result disproves my own hypothesis from above: quantization does not explain the slow prompt processing. UD-IQ4_XS and Q8_0 read prompts at nearly identical speed on Qwen4 (474 versus 464 tok/s at 4K, 449 versus 451 tok/s at 16K) – both far below Qwen3.8’s roughly 1,000 tok/s. So the bottleneck sits somewhere else, most likely in the separate q4-lite engine itself, which appears to be less optimized for gfx1151 than the main engine Qwen3.8 ran on – still not measured, though.

Write speed, on the other hand, shows a clear difference between the two Qwen4 quantizations: UD-IQ4_XS writes at 77.2 tok/s in chat, almost 80 % faster than Q8_0. A look at the engine log explains why: speculative decoding (MTP drafting) is active for UD-IQ4_XS – in my own measurements, between 62 and 94 % of the drafted tokens per request were accepted by the main model, which explains the large swing in write speed (63 to 94 tok/s across individual runs). The installed Ultra configuration, by contrast, has drafting explicitly switched off ("drafting": "off") – whether it would even work there is untested.

Assessment: where the switch pays off – and where it doesn’t yet

Qwen4-35B-A3B is well suited on this hardware for chat and short requests: the first token arrives almost twice as fast, and writing speed stays comfortable at over 40 tokens per second, well above that with UD-IQ4_XS. It shows weaker results for coding agents and RAG applications with large, fresh contexts – a fresh 32K prompt takes over a minute before the first token appears, even though the conversation cache keeps helping on follow-up requests as before (around 71 % hit rate, practically unchanged from the predecessor). Why that is has been narrowed down in the update above, though not fully settled. Two tests are next: the not officially documented prompt scan STRATA_Q4_PF_GDN_TC=1 from an upstream commit, which targets exactly this bottleneck, and a quality comparison with my own tasks between UD-IQ4_XS and Ultra Q8_0.

Conclusion

Qwen4-35B-A3B brings into production the same hybrid architecture of Gated DeltaNet and Qwen Sparse Attention that Qwen first introduced in August 2026 with the much larger Qwen3.8-Flash-Next – as a smaller variant with half the active parameters, not as an enlargement of it. On my own AMD Strix Halo hardware, the direct comparison with its predecessor still shows a mixed picture: faster response starts in chat stand against noticeably slower processing of long prompts – and as the update shows, that’s not down to quantization, but most likely to the still-separate q4-lite engine.

Sources

*Affiliate link (advertising). As an Amazon Associate I earn from qualifying purchases.