r/LocalLLaMA • • 1d ago

Discussion Qwen3.8-Flash-Next vs 27B on 60 DeepSWE coding tasks: 40 vs 23 solved

Follow-up to my post on bit-exact speculative decoding for Qwen3.8-27B: https://www.reddit.com/r/LocalLLaMA/comments/1x3sx3d/

I wanted to know if Qwen3.8-Flash-Next (125B plus a 51B n-gram embedding, 6B active) can replace the dense 27B behind my coding agent. Both run on one RTX PRO 6000 Max-Q (96 GB). I ran both on the same 60 DeepSWE v1.1 tasks through pi, one attempt per task, then on BFCL v4's 17 offline categories.

Flash-Next solved 40 of 60. The 27B solved 23. On BFCL, Flash-Next scored 2.9 points lower.

DeepSWE, 60 tasks, one attempt each:

DeepSWEFlash-Next EXL3 5.05bpwQwen3.8-27B BF16
solved40 / 60 (67%)23 / 60 (38%)
95% interval54 to 77%27 to 51%
median time per task16 min41 min
median output tokens per task95k133k
solved within 131k output tokens2913
ran out of the 262k token budget03
tool-call format errors0 of 7,891 requests0 of 9,523

By task: 18 both solved, 15 neither, 22 only Flash-Next, 5 only the 27B. Exact sign test on the 27 split tasks, one-sided p = 0.0008. The test (non-inferior within 10 points, then superior, one-sided alpha 0.05) was written down before any of the 60 runs, and nothing was stopped early. One 27B run was cut by a reboot 2 minutes in and started again from scratch.

Decode at 100k+ context, one request at a time, measured on one smoke task each: 151 t/s for Flash-Next, 62 for the 27B.

Qwen's cards say 58.7 vs 42.2 on DeepSWE 1.1. Flash-Next's 58.7 is the better of two agent setups, the 27B's 42.2 is from one. My 60 are a subset picked to separate models, so my numbers don't compare to theirs. The gap goes the same way.

How the 60 were picked:

  • DeepSWE v1.1 has 113 tasks. Samaritan Research flagged 23 for verifier false negatives, so I dropped those. The other 90 all pass their reference patch twice and fail with no change.
  • From the 90 I took the 60 that best separate models on DeepSWE's leaderboard trials. Neither model here is on the leaderboard, so neither one picked its own tasks. Qwen3.8-Max is one of the leaderboard models used.
  • Picking tasks that separate models makes gaps bigger. Don't read 67% as Flash-Next's DeepSWE score.

Setup:

  • Flash-Next: turboderp's EXL3 5.05bpw (Qwen3.8-Flash-Next-exl3, branch 5.05bpw_h6_ng6) with the 6-bit output head swapped for the original BF16 head. KL 0.0028 against a llama.cpp BF16 reference, top-1 agreement 98%. ExLlamaV3 1.6.1, MTP with 4 draft tokens, fp16 cache for 262k. 87.8 GiB on the GPU. The 51B n-gram embedding table stays off the GPU. ExLlamaV3 doesn't ship a server, so I wrote a small completions server for it.
  • 27B: BF16 on SGLang, deterministic mode, DFlash2 speculation. Same engine and draft model as my last post, with prefix caching on and a 262k memory plan. Checked to give the same tokens as no speculation on a 261,800-token prompt.
  • Both: pi 1.4.0 (@earendil-works/pi-coding-agent). The task's instruction is the only user prompt. No extensions, no skills. Thinking on, temp 1.0, top_p 0.95, top_k 20. Max 32,768 tokens per reply. 262,144 output tokens per task, thinking and compaction summaries included. pi compacts past about 221k prompt tokens. 4 hour wall cap. The task container has no internet.
  • The two models ship byte-identical chat template and tokenizer files, so both got the same prompts and the same tool-call parser.

BFCL v4, all 17 offline categories, 4,417 scored items:

BFCLFlash-Next27B
overall0.7340.763

Flash-Next was worse on 351 items and better on 223. The loss is 2.9 points (95% interval 1.8 to 4.0). My margin was 2 points, so by my own rule Flash-Next fails on tool calls.

Multi-turn is the biggest part, about 40% of the net loss. Over the 4 multi-turn categories (800 items) it's 6.6 points lower: missing parameter -15, base -9, long context -8.5, missing function +6. Also live_simple -6.6 and irrelevance -5.4.

An NVFP4 build of Flash-Next lost about the same (3.4 points, on a quarter of BFCL), and that build is 5x further from BF16 by KL. So I think the loss is the model's, not the quant's. I haven't run Flash-Next in BF16 to check.

One more format note. In an earlier run, the NVFP4 build failed 14 of 28 short coding tasks in mini-swe-agent's text format, all 14 ending on repeated format errors, mostly a stray > after the fence tag. The EXL3 build writes the same >, more often. pi uses native tool calls, and it had 0 format errors here.

The two benchmarks measure different things. BFCL checks each call against simulated APIs. DeepSWE runs the repo's hidden tests after the whole session. I don't know which one your agent's work looks more like.

What I did: I now run Flash-Next behind pi for long coding sessions. The 27B stays my default for everything else.

Not tested: other agents, more than one attempt per task, the full 113 tasks, Flash-Next in BF16, other GPUs.

34 Upvotes

20 comments sorted by

•

u/stylome-ai-detection 1d ago

Notice: This post appears to be AI generated.


Stylome AI detector · scan results

→ More replies (5)

16

u/MotokoAGI 1d ago

One attempt per task just gives you a foundation. you need at least 2 attempts per task where the 2nd attempt is a continuation if the first fails to see how these models shine with open weights. The difference can be ridiculous, for example, in aider benchmark, qwen3.8FlashNext scores 44.4% on first attempt and then 90% on second attempt. You should try it.

1

u/stargate425 6h ago

Fair point. I only ran one attempt per task, it's in the not-tested list. A second pass on the misses would be 20 tasks for Flash-Next and 37 for the 27B.

1

u/Dawley_Blau 6h ago

really clean methodology here. for the 5 tasks where only the 27b succeeded, did you notice if those were mostly multi-turn tool call failures from the larger model, or was it an actual reasoning gap on the code itself?

1

u/stargate425 6h ago

Code, not tool calls. On all 5, Flash-Next had 0 format errors, ended the session on its own, and had fewer tool errors than the 27B on the same tasks (30 vs 53). It broke none of the existing tests. It missed a few of the new feature tests on each: 3 of 59, 13 of 137, 2 of 79, 2 of 85 and 5 of 43. On both FastAPI tasks the misses are the same kind of case, a router-level setting that should override or nest, so it got the main behavior and missed the edge cases.

6

u/mr_Owner 1d ago

Conclusions / TLDR?

20

u/Evening_Ad6637 llama.cpp 1d ago

qwen 27b good, qfn better

2

u/aarong691 1d ago

flash-next solved more of this deliberately separating coding set, but its tool-call score missed the author's cutoff, so it isn't a clean replacement yet.

-4

u/SirSpix 1d ago

This.

2

u/Bright_Resolution_61 1d ago

Thank you. I'm also using the Qwen 3.8 27B, so this was very helpful.

1

u/PhilippeEiffel 5h ago

Great test, thanks.

Could you test the model from nvidia?

https://huggingface.co/nvidia/DeepSeek-V4.1-Flash-1017-NVFP4

0

u/sapient2k 1d ago

Max token cap and time taken make it invalid testing in my opinion. Are you testing accuracy or speed? Define what you are planning to test first.

1

u/stargate425 6h ago

The test is the solved count. Time is reported, not scored. The cap was 262k output tokens per task. The 27B hit it on 3 tasks and still passed one of them, so only 2 of its 37 misses came from the cap. Count both as solved and it's 25 vs 40. At a 131k cap it's 29 vs 13.

-1

u/henbone11 1d ago

not for nothing, but this can be filed under, "no shit". even without exl3, qfn is generally faster and smarter than 27b. god I wish I had a rtx6000 to waste like this. lol