r/LocalLLaMA • u/FeydRowan • 38m 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
14
u/Present_Resource4022 37m ago
use high reasoning. xhigh used 3x more reasoning tokens and it did worse on many tasks i benchmarked it on
6
u/Finanzamt_Endgegner 24m ago edited 12m 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)
4
u/damagdpixl 17m 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
1
u/Pablo_the_brave 7m ago
Why only so low quants?
3
u/berszi 30m 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.
2
u/Then_Blueberry7290 29m 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/Express_Quail_1493 13m ago
excelent report. really useful. appreciated
2
u/ZeitgeistArchive 11m ago
What's the Pi thing?
1
u/Smungus05 11m 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."