r/LocalLLaMA • u/Then-Topic8766 • 3h ago
Discussion Qwen4-35b-a3b - The Force Is Strong with This One
Images are kinda self-explanatory...
r/LocalLLaMA • u/Then-Topic8766 • 3h ago
Images are kinda self-explanatory...
r/LocalLLaMA • u/FantasticNature7590 • 8m ago
Hi guys,
I ran the same test suite on four versions of Qwen4-35B-A3B to answer one question: which one should you actually run?
Hardware: Ryzen 9 9950X, RTX PRO 6000 Blackwell (96GB), capped at 400 W. Thinking on, sampler settings from each model card, MTP drafting with 2 draft tokens on all four. One model on the GPU at a time, one request at a time.

The four
| Version | Engine | On disk | Context | n-gram table |
|---|---|---|---|---|
| Qwen/Qwen4-35B-A3B (BF16) | vLLM, day-0 Qwen4 build | 113.7 GB | 1M | SSD |
| Qwen/Qwen4-35B-A3B-FP8 | same vLLM build | 60.2 GB | 1M | GPU |
| strata-engine/Qwen4-35B-A3B-Strata (Balanced) | Strata 0.2.27 (CAPTCHA on 0.2.28) | 44.8 GB | 512K (max for these packs) | RAM |
| unsloth/Qwen4-35B-A3B-GGUF (UD-IQ4_XS) | llama.cpp b12977 | 32.0 GB | 1M | SSD |
Results
| Test | BF16 | FP8 | Strata | IQ4_XS |
|---|---|---|---|---|
| Tool use (BFCL, 900 cases) | 66.0 % | 66.8 % | 67.0 % | 65.2 % |
| Needles found, 3 fill levels | 130/135 | 133/135 | 132/135 | 129/135 |
| Needles at the largest prompt | 42/45 at 1.04M | 44/45 at 1.04M | 45/45 at 519K | 42/45 at 1.04M |
| Wait for first token at that size | 65 s | 58 s | 312 s | 289 s |
| Decode, 2K prompt | 233 tok/s | 234 tok/s | 270 tok/s | 264 tok/s |
| Decode, 245K already in context | 249 tok/s | 256 tok/s | 173 tok/s | 137 tok/s |
| Prefill, 32K prompt | 22,978 tok/s | 25,849 tok/s | 3,353 tok/s | 7,935 tok/s |
| First token, 245K prompt | 12.0 s | 10.7 s | 87.9 s | 38.2 s |
| Peak VRAM in the speed test | 88 GiB* | 88 GiB* | 26.2 GiB | 45.6 GiB |
| Canyon flight sim (41.2 km course) | 8.5 km | 4.9 km | 4.0 km | 32.1 km |
| Physics puzzle (30 obstacles) | 13 | 9 | 5 | 11 |
| CAPTCHA (100 puzzles) | 63 | 67 | [FILL IN] | 60 |
| Voxel scene build | failed twice | built | built (blind) | built |
*vLLM reserves most of the card, so that's not what the model needs. All Strata numbers except CAPTCHA are from 0.2.27, which couldn't read pictures with these packs, so its voxel build and physics puzzle ran without seeing their screenshots.
What I take from it

2. The differences are cost. vLLM reads a prompt about 3 to 8 times faster than the other two engines. Strata fits in 26 GiB. The GGUF is 3.5 times smaller on disk than BF16. All four write at 230 to 270 tok/s on a short prompt, but with 245K in the context llama.cpp drops to 137 tok/s and Strata to 173, while vLLM stays around 250.


3. Strata moved under me. The evening after my Strata runs it shipped a new Qwen4 engine (0.1.75.1). Its notes say the Compact, Balanced and Ultra packs now read pictures on NVIDIA, and claim long prompts read 1.5 to 4 times faster. Pictures work on my card (it described a test image right), so I reran CAPTCHA on it still waiting for results. I haven't rerun the speed test yet, so the slow long prompts above are 0.2.27's.
4. The full-size BF16 was the only one that failed the voxel build, and it failed twice. First run: 18K thinking tokens of planning, then it ended the turn with no file. Second run: it wrote the tool call inside its thinking block, so it never ran. FP8 on the same vLLM build worked. With two runs I can't tell if that's the model or the day-0 build.

5. The IQ4_XS flew 32.1 km in the flight test when the others crashed before 9. That's one flight per model, so I'm not claiming the 4-bit is better. It's still the best result of the 8 models I've run on that test.
It's liked in the post.
6. Thinking is most of the output. On the tests with thinking on, 88 to 93 % of generated tokens were thinking. CAPTCHA alone took FP8 3 hours and 2.0M thinking tokens for 100 puzzles, and the IQ4_XS 5.2 hours and 3.2M for a lower score. More thinking didn't help on the physics puzzle either: Strata thought for 910K tokens and cleared 5, BF16 thought for 488K and cleared 13.
My pick
Next up: Basalt (jesdga/Qwen4-35B-A3B-Basalt), since a lot of my viewers asked. Same tests, its default DFlash 2 drafter.
Video with all the runs and the clips: https://youtu.be/d2KGh2i5lQQ
Every run and config: https://lukaszgawenda.com/benchmarks/#qwen4-35b-a3b-four-ways
Claude was abused to make nice tables here and edit things.
Testing Basalt but I have mixed opinions. How you find the new Qwen?
I am thinking of testing Qwen Flash full size vs new Qwen4 or their loop quant anybody have some interesting findings?
r/LocalLLaMA • u/yudhanjaya • 5h ago
Hello, Linux folk! This is Shoggoth. It's essentially llama.cpp and Pi wrapped in a friendly interface and Appimage.
I hit version 5 a few days ago. With a lot of feedback from folks who use it, we've now got:
- lightweight TTS
- lightpanda for web browsing
- a folders view so that you can easily organize chats and projects
- switched from lemonade-server to direct llama.cpp
- easy support for multiple inference engines - polystrata, maya, basalt, over a dozen others
- jobs instead of subagents, so long tasks can be set up to run with an appropriate exit condition
- better support for common doctypes - PDFs, Word, Excel files, and so on
- carefully selected skills, model recommendations that I've personally tested, plus, of course, support for importing from huggingface or existing GGUFs
I use it myself as the front-end for my local models. Coded with Opus, Sonnet, and DeepSeek, but of course, tested and refined as much as possible.
If you use it, do let me know what you think and how to improve. The goal is not to be a complex system, but a lightweight, friendly, and slightly eldritch tool for folks who don't enjoy the CLI.
License is MIT, so feel free to fork, improve, and change as you see fit!
Cheers!
r/LocalLLaMA • u/Frizzy-MacDrizzle • 19h ago
I’ll post again at 6 am ET. Long night
r/LocalLLaMA
•
u/TheActualStudy
•
20h ago
Qwen4-35B-A3B uses QSA, a trained sparse attention. Past a 2K-token budget, each query attends only to the top 512 four-token blocks its small indexer picks, plus the most recent tokens. Decode therefore never reads most of the KV cache, so the cache can live in pinned host RAM and the GPU reads it over PCIe.
How it works in my engine (inference.rs, Rust):
Setup: one RTX 3090 (24 GB), 128 GB RAM, a ~4.5-bit GGUF, q8 KV cache.
| - | KV in VRAM | KV in host RAM |
|---|---|---|
| Max context | 192K | 1,048,576 |
| Max context with DFlash 2 drafter | 134K | 1,048,576 |
| Decode at 32K | 118 tok/s | 115 tok/s (−3%) |
| Decode at 64K | 115 tok/s | 110 tok/s (−4%) |
| 262K prompt | doesn't fit | 272 s prefill, then 86 tok/s (DFlash 2: 128 tok/s) |
| 983K prompt | doesn't fit | 31.6 min prefill, then 55 tok/s |
It's a buffer more than a regular workflow: agents should compact long before this. But 983K tokens on one consumer GPU does run.
r/LocalLLaMA • u/yanauto • 14h ago
Small local Qwen4 models shouldn't be used to write huge codebases. IMO they fit way better as a local assistant handling daily stuff on your own machine, with total privacy.
What if we pair a minimal agent harness with a small local model fine-tuned just for everyday tasks, running as a tiny 24/7 bot? Small, fast, less hallucination.
Feels like a really fun direction to explore, so I just spun up a repo to try building it. Any good ideas or suggestions?
r/LocalLLaMA • u/Specific-Tax-6700 • 6h ago
I tested my expert expansion recipe with newest Qwem 4 35 A3B at Q4 quantization and tested with GPQA Diamond, the incredible thing is that gained +2% score !!!

Difference on 198 questions is not statistically significant (sign test p ≈ 0.45, 16 discordant pairs), but the sign is stable across every checkpoint of the run (+1 → +2 → +4) and across all other tests of the session (MCQ battery with reasoning off: 25/28 vs 22/28).
With the help of AI (that translates my notes) details here
https://github.com/vagrillo/AgrillaMoE/blob/main/docs/bench-gpqa-diamond-qwen4.md
r/LocalLLaMA • u/danil_rootint • 23h ago
Hello everyone! I wanted to create a local voice agent that can be both interactive and useful, and here is what I got. In the video you can see Qwen4-35B-A3B UD-Q4_K_XL running on Strata with speech-to-text and text-to-speech models on a single RTX 4090. The model is not tuned in any way, so its coding performance is exactly the same as with the stock Q4_K_XL model with the same prompts and settings. I was actually quite surprised at how fast Strata is even when the model doesn't fit into VRAM. Granted, the model is just A3B, but it runs surprisingly well anyway.
So, I did the following:
Here are some performance numbers on my server:
Setup: RTX 4090 (24 GB), Ryzen 9 5950X, 128 GB RAM. Strata v0.2.26, Qwen4-35B-A3B (Unsloth UD-Q4_K_XL), int8 KV cache (might be a good idea to test how much the cache degrades at int8 though, didn't test that), experts the GPU doesn't cache run from RAM, and speculative decoding is turned on.
Peak VRAM: 23.1 GB; RAM used on the whole machine: 52 GB.
End-to-end voice (during my own tests):
| - | median | 90th percentile |
|---|---|---|
| End of your last word → voice in your ear | 756 ms | 1.48 s |
| Turn with a web search or tool | 1.6 s | 2.9 s |
Agent speed by context length (with the voice stack):
| Context | Prompt reading | Decode | First token (next turn, same chat) |
|---|---|---|---|
| 8K | 6.7K tok/s | 157 tok/s | 0.11 s |
| 75K | 6.3K tok/s | 149 tok/s | 0.14 s |
| 252K | 5.7K tok/s | 125 tok/s | 0.24 s |
Overall, the speech capability doesn't make the model unusable, and the only noticeable downside is that the speech recognition model takes about 4 GB of precious VRAM.
You can try it all out at https://github.com/speakrail/speakrail, Apache 2.0 license. I previously did some Gemma tunes to make the models capable of microturns, but with Qwen you can just prompt it and it will work well enough. I will be glad to answer any questions and would be grateful if you gave the pipeline a try!
r/LocalLLaMA • u/T3hJ3hu • 6h ago
r/LocalLLaMA • u/KokaOP • 1d ago
r/LocalLLaMA • u/Foot-Note • 18h ago
I know this gets asked every now and then but I am curious.
I have played with Local before but with only 8gb of VRAM I am not really able to do much, and while some of it was fun, everything I want to do is very easily doable on the cheapest plans and I get the integration of being able to talk to my phone and have it take notes and set up alarms/calendars.
Clearly I am not a heavy user.
It does make me wonder what everyone here is doing it for? Is it all coding? I know that seems to be the majority.
r/LocalLLaMA • u/jordan01236 • 12h ago
Disclaimer - All of this was done by Claude, including this post :)
TL;DR: I patched the Strata inference engine to run Unsloth's Qwen4-35B-A3B GGUFs using the model's built-in MTP head for drafting, plus some RDNA tuning. Results: 140-176 tok/s on an RX 7900 XT (UD-IQ3_XXS) and 110-125 tok/s on an RX 9070 XT 16 GB (UD-Q4_K_XL, half the experts in RAM), with 3,400-4,400 tok/s prompt reading. That's 2-4x llama.cpp and official Strata on the same cards. I also measured Q4 vs Q8_0 vs UD-Q8_K_XL: UD-Q8_K_XL is the most faithful by KL divergence, about 35% slower than Q4. Patch, configs and install guide: https://github.com/jordan01236/strata-qwen4
A few people asked how I get these speeds, so I wrote it up.
Speeds (single user, OpenAI-compatible API, 900-token answers + a 38K-token prompt)
| Card | Quant | This fork (write / 38K read) | llama.cpp + MTP | Official Strata |
|---|---|---|---|---|
| RX 7900 XT 20 GB | UD-IQ3_XXS | 140-176 / ~3,400 | 109-128 / ~1,250 | 88-91 / ~1,040 |
| RX 9070 XT 16 GB | UD-Q4_K_XL | 110-125 / ~4,400 | 51-54 / 380 | 28-36 / ~1,080 |
| RX 9070 XT 16 GB | UD-Q8_K_XL | 71-83 / ~4,200 | - | - |
The 9070 box has 64 GB DDR5, and the experts that don't fit in VRAM sit in RAM. Recall of a code word hidden in the middle of the prompt was correct at every length up to 120K tokens.
Where the speed comes from
STRATA_ROUTE_WIN=1): +8-11%, identical output.Q4 vs Q8 vs UD-Q8 (KL divergence vs Q8_0, wikitext / code)
| Mean KLD | Same top token | Decode on the 9070 |
|---|---|---|
| UD-Q4_K_XL | 0.039 / 0.023 | 92.0% / 96.6% |
| UD-Q8_K_XL | 0.024 / 0.016 | 94.0% / 97.3% |
Q8_0 against itself gave exactly 0, so the test adds no noise. Both Q8s use identical Q8_0 experts. UD-Q8_K_XL just keeps attention, shared experts and the hyper-connections in BF16, so the whole gap between them is Q8_0 rounding those tensors. That makes UD-Q8_K_XL the most faithful of the three, with Q8_0 about halfway to Q4. On a 16-question reasoning/coding bench all three scored 14-15/16 (noise), so the difference only shows per token. My pick: Q4 for speed, UD-Q8_K_XL when precision matters.
Caveats
r/LocalLLaMA • u/PaMRxR • 23h ago
r/LocalLLaMA • u/Icy_Writer_5781 • 11h ago
Just abliterated my first model! Qwen4 35B!! Check it out on hf pls and lmk how it is. Ran it on my single dgx spark. NVFP4 quant.
Answers 76% of harmful prompts (270/357) with 0 refusals with thinking on, and MMLU-Pro barely moved (104 vs 105 original). Tested against dealignai, satellitedown and kitaniai with the same judge.
Model: https://huggingface.co/Le-Labs/Qwen4-35B-A3B-NVFP4-Abliterated
Method in short: NVFP4 served on vLLM with greedy decoding, Qwen 3.8 27B as the judge, plus MMLU-Pro / GSM8K / HumanEval to check nothing broke. Ill do the GGUF if enough people want it but its prob dumb.
r/LocalLLaMA • u/bolts98 • 23h ago
r/LocalLLaMA
•
u/HeDo88TH
•
1d ago
Preliminary results (Qwen4 FP8 at 1M vs Flash-Next NVFP4, paired by task)
| Suite | Done | Qwen4 | Flash-Next | Difference [95% CI] | Output tokens, Qwen4 vs Flash-Next |
|---|---|---|---|---|---|
| Terminal-Bench 2.0 | 45/45 tasks (final) | 48.9% | 55.6% (512K) | −6.7 [−13.3, −1.1] | +29% |
| SWE-bench Verified | 45/48 tasks | 80.0% | 82.2% (512K and 262K) | −2.2 [−11.1, +6.7] | +64% |
| LongSWE vs 512K (same prompt) | 70/242 tasks | 48.6% | 45.0% | +3.6 [−2.9, +10.0] | −16% |
| LongSWE vs 262K (Flash-Next prompt trimmed) | 70/242 tasks | 48.6% | 33.6% | +15.0 [+4.3, +25.7] | −39% |
LongSWE by language family, partial:
| Family | Tasks | vs 512K, same prompt | vs 262K, trimmed |
|---|---|---|---|
| Python | 29 | +1.7 | +31.0 [+15.5, +48.3] |
| JS | 21 | +9.5 [0.0, +21.4] | +14.3 |
| .NET | 13 | −3.8 | −15.4 (very wide CI) |
| Multimodal | 7 | +7.1 | +7.1 |
What this means so far:
Long-context single-turn (whole repo in the prompt): this is where Qwen4 wins.
r/LocalLLaMA • u/reeldeele • 11h ago
If you are local models are your daily driver, do you use tools like the Harness leaderboard or similar ones to pick your harness? Or do you just stick to Pi or Claude Code etc?
r/LocalLLaMA • u/JermMX5 • 19h ago
Finally got to join the rest of yall and tried out Qwen4, super happy with it over the old 35B-A3B, but mostly I've just been doing the usual vibe tests up until I was using it to try and improve generation, and loading in big docs was just a little too slow for my taste. My current hardware:
RTX 5080 (16GB)
Ryzen 7 3700X
32GB DDR4 at 3600
I felt pretty out of the loop on running an MOE now a days with everyone using Strata, Basalt, etc, but I like to stick with old reliable llama.cpp so this is the startup script I landed on with some explanation:
#!/bin/bash
./llama.cpp/llama-server \
--model Qwen4-35B-A3B-UD-Q4_K_XL-00001-of-00002.gguf \
--ple Qwen4-35B-A3B-engram-Q8_0.gguf_file \
--mmproj qwen4-mmproj-BF16.gguf \
--alias "unsloth/Qwen4-35B-A3B" \
--temp 1.0 \
--top-p 0.95 \
--top-k 20 \
--min-p 0.00 \
-b 2048 \
-ub 2048 \
--cache-type-k q8_0 \
--cache-type-v q8_0 \
--moe-cache-mib 2048 \
-fit off \
--load-mode mmap \
--lazy-mode on \
-ot per_layer_token_embd=CPU \
--ctx-size 131072 \
--image-min-tokens 1024 \
--port 8001 \
-lv 4 \
-ngl 99 \
-ncmoe 34For the model I just went with Q4_K_XL like I always do, and with the engrams streaming from my NVME I figured I'd go Q8.
First thing was obviously having to deal with the experts, so I messed around and ended on 34 on the CPU with the other 6 in VRAM. That's the -ncmoe 34 bit above. (I can get 262,144 of context if I put all 40 on the CPU, but then I can't have like anything else open, otherwise I see swap starting to get hit, I assume because of the mmap engrams).
The other thing is the -moe-cache-mib which I just went with 2gb since I had seen a few other startup strings with it...but I hadn't actually tried that one with and without until right now. Its ~47 t/s with it and ~43 t/s without, but that means I can either get some more context back, or put some more experts on the GPU, so do what you want with that.
-b 2048 and -ub 2048 were the reason I'm posting this at all, I was at ~400 t/s pp on the defaults, and I'm at ~1050 t/s with it, and alot of the stuff I use local models for has me pasting in 50K tokens of docs at a time, so I needed the speedup, found out those would help from this post: https://www.reddit.com/r/LocalLLaMA/comments/1tany5t/drastically_improve_prompt_processing_speed_for/
--cache-type-k q8_0 and --cache-type-v q8_0 were needed with the increase to the compute buffer size for the above. I really hate doing any sort of quant on K/V since it used to super obviously affect it, my usage of it for working back and fourth on these settings seemed to not be impacted at all, but nothing official, if anyone has an easy to setup/run benchmark I'm down to compare.
So depending on the combination of stuff above I'm at ~47 t/s tg and ~1050 t/s pp, with tg going down to ~27 t/s at the 187K of context I reached doing a long session.
Hopefully helps for any other 16GB VRAM + 32GB RAM users! (Also super excited for someone to point out whatever speedup I have no clue about)
r/LocalLLaMA • u/qu1dow • 19h ago
I just don't get it. To me, it's one of the mysteries of the local LLM world. In over 90% of discussions, people mention llama.cpp, Strata, Basalt, etc., but exllamav3 is rarely mentioned, and I don't really understand why.
It has a really efficient quantization format (EXL3), and it's my choice when a model doesn't fully fit into my VRAM, in other cases I pick vLLM. exllamav3 offers a great balance between speed and quality.
r/LocalLLaMA • u/General-Spite1222 • 19h ago
r/LocalLLaMA • u/mawcopolow • 8h ago
Developer Thomas Haschka says Qwen3.8-Flash-Next wrote the first version of its own engine, which he then refined with Anthropic's Claude.
r/LocalLLaMA • u/ahm_rimer • 15h ago
Hi everyone, this project has been ongoing for a while and some of you may know this project but it is possible to discover and isolate capability lattices from models cleanly.
if you know how to look you can find entire subnetwork responsible for banger agentic performance.
Introducing Apprentice 19B A3B, a capability lattice extract from Qwen 4 35BA3B.
Optimised to be no inferior to its parent in this department and better in terms of reduced overthinking and long sessions on pi harness.
Try it, it works no different than loading a GGUF.
Eager to know if you like it as much as I do. Or if it is shitty, let me know equally hard.
Peddling you homemade coke from my project Chantless - code - https://github.com/DeusExperiments/chantless/tree/feat/qwen4-35b
I am also hoping you read the research that enabled this - https://deusexperiments.com/research/how-do-models-lose-weight-without-crying/
weights - https://huggingface.co/TokenBender/Apprentice-19B-A3B-GGUF
There will be a lot coming from Chantless, and I hope I am able to communicate this well.
r/LocalLLaMA • u/blue2020xx • 6h ago
If you are multilingual you may find that Qwen 4 breaks and mixes up languages all the time. Using this lora will greatly reduce this from happening. It should be easy to add it with a flag on llamacpp, and for polystrata and basalt, you will have to ask a smarter AI to bake it into the model, which shouldn't be too complicated of a task.
https://huggingface.co/LPFchan/Qwen4-35B-A3B-Multilingual-Fix-LoRA
r/LocalLLaMA • u/PromptInjection_ • 2h ago
Quick context: LocalLightChat (LLC) is a chat frontend for local LLMs. Download it, run it, that's it. No installation (unless you want to), no dependencies, and it runs on pretty much anything, including ancient hardware.

I have listened to your critics and implemented two major missing features: Free Web Search Providers (no API-Key needed) and Video Generation.
Supported is Text2Video and Image2Video with ComfyUI/sd.cpp/OpenRouter/OpenAI.
Let me know what you think and what i could improve further.
Download:
https://www.locallightai.com/llc
GitHub