r/LocalLLaMA • u/FeydRowan • 10h ago
Discussion Qwen4-35B-A3B as a coding agent: clean fixes, but overthinks (private bench, 9 real bugs)
I added Qwen4-35B-A3B to my usual agentic bench, alongside Qwen3.8, Inkling 2 Mini, and the Claude models.
The bench, in short. 9 real bugs taken from capy-flash's history, a C++/CUDA inference engine. 3 attempts per bug, max 80 steps, sandbox with no network and no build. Each fix is judged blind by Claude Opus 5. The bench remains private, so it isn't reproducible from outside; the engine's code is. Nine bugs are few: differences under ~0.15 are within noise.
Setup. Qwen4-35B-A3B quantized by us (NVFP4 experts with BF16 activations, KL 0.095 vs BF16), capy-flash v0.17.0 on 2× RTX 5070 Ti, reasoning enabled at default level. Agents: OpenCode 1.19.3 and pi 1.7.0.
Results.
- OpenCode: 0.41 [0.19-0.64]. Close to Qwen3.8-Flash-Next (0.50) and Claude Haiku 5.5 (0.47), above Qwen3.8-27B (0.34).
- pi: 0.31 [0.16-0.48]. It's the only model that doesn't perform equal or better with pi compared to OpenCode (Flash-Next +0.04, 27B +0.12). Half the time and half the tokens, but 3 fixes don't compile.
It doesn't err, it hesitates. On OpenCode, the judge rejects none of the 17 fixes as wrong or as doing nothing, and they all compile. It touches the right file 15 times out of 17, with the same precision as Flash-Next. No loops, no tool calls leaked into plain text.
The problem is that it writes little: in 10 out of 27 attempts it doesn't reach a fix. In 7 it runs out of the 80 steps, in 2 it reasons until hitting the 32k token response limit, in 1 it stops to ask "Confirm option 1?". 88% of tokens are reasoning and the first edit arrives at step 44 (median; Flash-Next 35).
Notes
- This is our quantization: a good QAT would probably do better.
- My impression, not measured: left on its own it's too cautious, in interactive use or with more directive instructions it could perform much better.
All numbers: https://github.com/ValerioDolci/capy-flash/blob/main/docs/reports/agentic-bench.md
Model: https://huggingface.co/Feyd89/Qwen4-35B-A3B-NVFP4-capy-flash
42
u/Present_Resource4022 10h ago
use high reasoning. xhigh used 3x more reasoning tokens and it did worse on many tasks i benchmarked it on
56
u/Finanzamt_Endgegner 10h ago edited 9h ago
You are running nvfp4, i can nearly assure you the quant you use is dogshit, either it needs qat or very good quantization method. Either wait for a good quant or run an better quant (non nfvp4). (nvfp4 is just very hard to do well)
(your linked quant has KL divergence mean 0.095 apparently which is VERY BAD)
11
u/Pablo_the_brave 9h ago
Why only so low quants?
3
u/overand 9h ago
From this it looks like Inkling 2 Mini + LoopCD is a better choice (for this particular benchmark); it gets better results in a shorter amount of clock time. Interesting!
3
u/ZeitgeistArchive 9h ago
What's the Pi thing?
2
u/shapic 8h ago
Judging by weird drop with kld even on unsloth tests with q8 (!) I think we need to wait either for better inference or quants. Something seems off, as well as multiple posts where people say it is hallucinsting heavily. Looks like qfn at start
52
u/damagdpixl 9h ago
Imagine somebody fell from the internet when Claude sonet 5 was released and now he sees this benchmark with local 35b model outperforming it
5
u/grumd 5h ago
I keep seeing this benchmark but honestly I don't know how we can trust it with such HUGE errors bars? Apparently Qwen's results can be anywhere from 0.2 to 0.66?
4
u/Smungus05 9h ago
Opencode chokes Qwen models. Its designed to reason at length and preserve thinking.
Qwen model card has had this there at least since Qwen3.8
"Adequate Output Length: To optimize performance on agentic tasks, we recommend allocating sufficient output length to allow the model to generate detailed and comprehensive responses. For frameworks that support separate token limits for internal reasoning and final outputs, we suggest the following configuration within the 1M context length:
These settings provide the necessary capacity for complex reasoning while ensuring ample space for high-quality final deliverables."
7
u/MerePotato 5h ago
"Overthinking" is a myth, these models think as much as they need to in order to compensate for their size, its why they're so good
1
u/Agitated_Space_672 8h ago
Using opus 5 to judge opus 5.5 might bias results. Have you checked for bias in the judging? And, did you use a Claude model to help assemble the bench?
1
u/BornInBostil 8h ago
u/FeydRowan add Hy4-Flash
1
u/peaster_ 8h ago
At least in my real world, this model and Inkling are pretty close for what can be run out of the box on 2x3090s. I kind of like that Inkling talks differently than Qwen at least
1
u/Bulky-Priority6824 7h ago
an unsloth model update isnt uncommon and i wonder how much time they had
1
u/Holiday_Point_603 7h ago
Did you use engram at 4 bit or did you keep engram at q8 or higher?
3
u/berszi 10h ago
I experience the same. 3.8 27B FP8 beats 4 35B in agentic coding, though in same cases 4 35B has more wider grasps on issues.
1
u/temperature_5 9h ago
Please include Qwen 3.6 35B for comparison at the same (better) quant. Ideally Q5 or Q6 at least if you can run them, otherwise an Unsloth Q4_K_XL. Q4 is generally too quantized for small model agentic use, lots of errors and overthink.
2
u/Then_Blueberry7290 10h ago
maybe xhigh, maybe early bugs qwen 4 35b in my private ranking is below qwen3.8 27b nvfp4 and even lnkling2 mini nvfp4
2
u/sameoldfred 9h ago
Why would you run pi with tighter turn limits? Seems like Qwen4 needed more time with pi harness.
2
u/shree-MGR 4h ago
waiting for it's smaller size which fit on my gpu
2
u/Express_Quail_1493 9h ago
excelent report. really useful. appreciated
1
u/ZZerker 9h ago
Gave it one task and that was my first thought, it thinks as lot.
1
u/jkflying 9h ago
Run it at q8 with default thinking for now. Quants are still a bit tricky for this one, I suspect better will come soon, classic day 1 launch issues.
My tests (mostly deepswe) are showing at q8_0 with k8v8 it matches QFN3.8 q4m_xl for quality while being twice as fast. Also it only thinks like QFN on low, huge token efficiency improvement.
Running on 3090, 96GB DDR4, patched Strata.
1
u/feverdoingwork 9h ago
Thanks for posting this, I had my doubts that A3B is better than 27b
1
u/Exotic_Cucumber_8521 8h ago
Hey I've tested Pi harness + Qwen 4 4bit to modify a rust monitor for vLLM and Llama.cpp last night (First Try, asked claude to set it up for me in llama.cpp), so far so good, It overthinks a lot and sometimes it runs out of context, But it got me from point A to point B, pretty awesome for an open model running.
Test bench with a radeon r9700.
1
u/PooMonger20 8h ago edited 8h ago
Here are my own result:
I usually run q4 3.8 27b and really happy with it (on a more powerful PC).
So I tried it qwen4-35b-a3b with low thinking effort using RustingStrata + pi.dev (120k context , no MTP) on 4070ti 12Vram+32gb ram.
My preliminary tests of doing basic tasks like:
A summary of the log of it: decode avg 46.2 tok/s (34–52), prefill up to ~1370 tok/s; 72.5% of prompt tokens served from cache.
So, overall it feels VERY capable. It doesn't feel like a downgrade vs 3.8 27b and at least on-par with, feels very usable. It does feel very gated and even the uncensored model version I tried did refuse a few times to some offensive terms.
1
u/Twirrim llama.cpp 6h ago
Just in case it's relevant: one of the problems with some popular benchmarks is that they weren't fully clearing git history, and Claude etc. are "smart" enough to looking at git and pick up solutions from it.
A few times benchmarks have had egg on their faces when they realised the high score was just "Because the agent copied the answer out of git history"
1
u/Weeblewobbly 5h ago
Where's my boy hy4-flash in all of this
1
u/NicholasCureton 5h ago
This is the second benchmark i see Inkling 2 mini scoring higher than Qwen4 35B A3B. I haven't tried Qwen4 yet. Inkling with a tiny bit of repeat penalty, presence penalty, and other penalties, loopCD, with those parameters, I could reduce Inkling reasoning loop. I prefer English of Inkling.
1
u/SoulTrack 4h ago
It's so annoying that claude always says "Real ______" Like opposed to fake or made up?
1
u/snugglezone 4h ago
Wow, so OpenCode is performing better than Pi these days?
1
u/MerePotato 3h ago
Where are people using LoopCD?
1
u/Asleep_Literature_70 3h ago
Comparing opencode to pi is a bit unfair, you need to compare it to oh my pi.
1
u/Nova6-IX 3h ago
this is useless, you are comparing frontier models to quantized open weights... it's like comparing different movies image quality on 4k blu-ray vs dvdRIP on mp4 and taking the results seriously 😐
1
u/Thick-Insurance4404 2h ago
why are all these benchmarks on quantified version. there literally dumber then there supposed to be
1
u/rm-rf-rm 2h ago
I literally trust this benchmark more than AA or any other.
1
u/Technical_Ad_6106 3m ago
its a failed model completely LOL. according to my own benchmarks (and llm-stats,com) it is WAY weaker then 3.8 27b ... what a failure
1
u/Nu11Alpha 4h ago
Testing Qwen4-35B-A3B (Unsloth UD-Q6_K_XL) with my custom harness https://qor-harness.com on long-running agent tasks: re-validating configs, chasing down anomalies, and doing light coding and research.
So far it's a competent local model with decent speed and large context.
buuut - You have to be very specific with your prompts and specs, otherwise it gets confused or takes shortcuts. Qwen 3.8 was a honey badger; Qwen 4 is a bit lazier unless you spell out what "done" looks like.
Setup: RTX 4090 Laptop (16 GiB VRAM) + 62 GiB RAM running llama.cpp b12986 at 256K context (Q8_0 KV, vision offloaded to CPU, built-in MTP n-max=2, Engram shard mmap'd in RAM).
How it held up over a 1h20m / ~200-request run:
Slightly better than Qwen 3.8 and noticeably faster because it overthinks a lot less. Median backend decode was 48 tok/s (up to 55 tok/s), only dipping to ~42 tok/s near 198K context.
Deterministic Context Management kept it alive without compaction: At 198.1K prompt tokens, qor masked 189 older tool outputs down to 42.2K in one shot (zero LLM summary calls), and decode snapped right back up to ~48–51 tok/s.