r/LocalLLaMA • • 10h ago

Discussion Qwen4-35B-A3B as a coding agent: clean fixes, but overthinks (private bench, 9 real bugs)

Post image

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

179 Upvotes

88 comments sorted by

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

13

u/FeydRowan 10h ago

Yes will try, it's a long run so i'm doing it but wanted to' release it

12

u/coder543 9h ago

In the post, you said "reasoning enabled at default level". If this statement was not wrong, then you already ran it at high and you actually need to run it at xhigh.

All of the publicly reported benchmarks seemed to have been at xhigh, and in my experience, it is actually noticeably smarter.

8

u/FeydRowan 8h ago

Can confirm that it was high, just checked. Planing a xhigh higher reasoning cap

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/uspdd 9h ago

Nvfp4 quants are bad for this model? How about one that's made for Basalt?

16

u/Finanzamt_Endgegner 9h ago

Looks quite a bit better (a LOT actually) but kld is just one metric.

But generally i think you should be relatively fine with that one (;

1

u/FeydRowan 8h ago

Just to note it, kl is mesured in a different way from my nvfp4 and basalt one, the result are much more close than what it looks from just the numbers

6

u/Dangerous_Fix_5526 llama.cpp 5h ago

You need to test all local models at Q8 min ; otherwise all the metrics are off.
Your own chart for "Inkling" shows this clearly.

Likewise, at higher quants models will make more nuanced decisions, often using fewer tokens and giving better answers.

As for Qwen 4 ; there are some "odd tensor" sizes which may also throw things off.
Same for Inkling (a lot more oddball sized tensors -> Q8, IQ4NL and Q4_, Q5_0 are best quants).

1

u/FeydRowan 8h ago

Can be, and working on a better one

1

u/ParthProLegend 7h ago

How about trying unsloth

1

u/FeydRowan 7h ago

Doing the same mesured kl as for basalt methodology my kl is 0.0245 vs basalt 0.02 so same shit. So the the point stand but on both artifacts.

2

u/Finanzamt_Endgegner 5h ago

I would honestly never do public benchmarks comparing quants to compare model capabilities, there is just too much variation between quants etc

3

u/DunderSunder 8h ago

the problem is it being 4 bit or something like IQ4_XS is better?

1

u/Finanzamt_Endgegner 8h ago

iq4xs is very low bit/weights but very efficient normally, so yeah it should be better, if you got he same bit/weight efficiency as nvfp4 with some int4/q4 quant it should be even better though (but a bit bigger ofc)

3

u/One-Set1427 8h ago

agreed, that overthinking loop is super common when the quant degrades the reasoning tokens

3

u/alpacadaver 8h ago

I mean he charted 27b 3bit with a straight face so...

11

u/Pablo_the_brave 9h ago

Why only so low quants?

8

u/FeydRowan 9h ago

Cause those are the one that run on my machine

8

u/Pablo_the_brave 9h ago

Nvfp4 at this stage have to be just bad. Try with q5 gguf.

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!

1

u/FeydRowan 8h ago

Yep that's what it looks like right now, we will see in a few days when better quant of qwen4 are out

3

u/ZeitgeistArchive 9h ago

What's the Pi thing?

3

u/feverdoingwork 9h ago

Yeah i am not sure what that means, i assume using pi harness but kinda doesn't make sense. Maybe it's some sort of mod, who knows lol

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

-1

u/FeydRowan 8h ago

Inference wise is fine, but yes trying to quantise the model even the official bf16 has kl 0.058 on my measurements. So yes it's odd

1

u/Eyelbee 7h ago

How did you measure that exactly

1

u/FeydRowan 7h ago

Well for starters my kl is vs fp32 and basalt vs bf16, then i use all token conversations wiki system ecc vs basalt only on generated token. I'm now running the test as basalt in a few minutes we should know

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

21

u/my_name_isnt_clever 9h ago

What's funny is, most people if asked would still assume a model they could run on their laptop has to be completly useless. The big labs have done a great job at propagandizing everyone.

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?

1

u/DollarAkshay 4h ago

Its literally been a day. There are some new parameters and architecture changes too, I dont think everyone has optimized for it properly. I doubt the engine used to run this benchmark used the layer looping technique.

2

u/grumd 2h ago

Almost every model on the chart has huge errors bars, including models released months ago

1

u/_VirtualCosmos_ 3h ago

I bet it is because of the nvfp4 quantization. It adds random noise inside its brain. Would love to see this with Q8 or at least Q6_K_XL.

1

u/grumd 2h ago

Or maybe because the benchmark is not that good. It uses a blind judge that is asked to output a score "0-1", which is a super unreliable task for an LLM. It only runs 3 times per task. The results are way too inaccurate. OP needs to run these tests at least 10-20 times per task and only use a deterministic calculation for the final score, not an LLM-based scoring. An LLM can classify or analyze the solution, and output a structured json with certain markers, which then get converted into a score with a script, but an LLM should NOT just output a random number from 0 to 1 without any reference.

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:

Reasoning Content: Set the maximum output length to 262,144 tokens.
Final Response: Set the maximum output length to 131,072 tokens.

These settings provide the necessary capacity for complex reasoning while ensuring ample space for high-quality final deliverables."

1

u/snugglezone 4h ago

Did I misread the chart? OpenCode scored higher than Pi for this model

1

u/Smungus05 3h ago

Its output cap is 32k tokens, qwen will reason for 40k tokens before outputing anything. Then it fails your tool call with a truncation message saying the output limit was reached. You need to change the output limit in opencode.

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

0

u/Character_Fix_5317 22m ago

I'll be curious to see if UkisAI does a Swift variant of 4-35b-a3b and how it fares. Their Swift-1.5 variants of 3.8-27b and 3.8-Flash-Next produce about half the thinking tokens and keep the same performance on benchmarks, indicating that they do, indeed, "overthink".

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/FeydRowan 8h ago

Yep checked and none found, but claude models are here just as a reference point to have sone sense of scale

1

u/UndulatingHedgehog 3h ago

What settings did you use for the Claude models?

1

u/BornInBostil 8h ago

u/FeydRowan add Hy4-Flash

1

u/FeydRowan 8h ago

It's less good than flash next and is bigger cant run it at a good speed on my pc

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/FeydRowan 8h ago

Have you tried the loopcd?

1

u/Bulky-Priority6824 7h ago

an unsloth model update isnt uncommon and i wonder how much time they had

1

u/FeydRowan 7h ago

For sure better versions will come out, but the general standings of this model is more or less as 3.8 27b, much faster and in something better. But will not be flash next level even on better quant i think

1

u/sicmek 6h ago

Actually I was hoping for 3.8 27B level, since that's already a pretty big jump. For a model that size it's really amazing

1

u/Bulky-Priority6824 6h ago

a faster 27b is fine with me, a better one though? I'm not seeing that just yet, im impressed with some aspects but im always skeptical of small moe models.. 27b is pretty solid ,for what I do, homelab assistant type stuff, so I tend not to like drift.

1

u/Holiday_Point_603 7h ago

Did you use engram at 4 bit or did you keep engram at q8 or higher?

2

u/FeydRowan 7h ago

Q8

1

u/Holiday_Point_603 6h ago

Appreciated, I'm also using this combo rn and it seems pretty good.

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/FeydRowan 8h ago

Well it will be below the 27b around gemma level no much doubt. Can't spend hours on it

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/sisyphus-cycle 8h ago

How hard was it to patch strata? I was disappointed that the default options with the latest PR were the .strata packs or up to Q4_K_XL unsloth. I have the exact same setup as you, but a 4090.

1

u/jkflying 8h ago

Pointed Opus at it and it just worked, I think I asked it to get the unsloth q8 quants into strata? There were a few hiccoughs along the way, and I was also experimenting with adding hadamard rotations on the into KV cache, but it didn't really change anything. But I'm also a C++/ML engineer so maybe I'm using the correct magic words...

1

u/sisyphus-cycle 7h ago

Sweet, most of the code is already setup for qwen4 anyways using the q4_lite strata geometry, so I’d bet even qfn could get it working. Ty

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:

  • Creating a file - pass.
  • Comparing files - saw overthinking here but passed
  • Creating a single file HTML Tetris-like gameplay - pass, one-shot.
  • Creating a basic image file with specific colors and blocks - pass, one-shot.
  • Creating a single file calculator - pass, one-shot.
    • Editing and adding features into the calculator app have been consistent with my requirements.
  • Rewrite and improve an ~2.3k lines of python app, It one-shoted my request, I am impressed, code compiles and the features i asked were implemented correctly without regression.

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

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

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.

2

u/stylome-ai-detection 4h ago

Notice: This comment appears to be AI generated.

AI-generated · confident · scan results

1

u/Nu11Alpha 3h ago

You're AI generated :P