r/LocalLLaMA • u/stargate425 • 8d 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:
| DeepSWE | Flash-Next EXL3 5.05bpw | Qwen3.8-27B BF16 |
|---|---|---|
| solved | 40 / 60 (67%) | 23 / 60 (38%) |
| 95% interval | 54 to 77% | 27 to 51% |
| median time per task | 16 min | 41 min |
| median output tokens per task | 95k | 133k |
| solved within 131k output tokens | 29 | 13 |
| ran out of the 262k token budget | 0 | 3 |
| tool-call format errors | 0 of 7,891 requests | 0 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:
| BFCL | Flash-Next | 27B |
|---|---|---|
| overall | 0.734 | 0.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.
•
u/stylome-ai-detection 8d ago
Notice: This post appears to be AI generated.
Stylome AI detector · scan results
19
u/MotokoAGI 7d 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/Dawley_Blau 7d 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?
6
u/mr_Owner 8d ago
Conclusions / TLDR?
2
u/Bright_Resolution_61 8d ago
Thank you. I'm also using the Qwen 3.8 27B, so this was very helpful.
1
u/PhilippeEiffel 6d ago
Great test, thanks.
Could you test the model from nvidia?
https://huggingface.co/nvidia/DeepSeek-V4.1-Flash-1017-NVFP4
1
u/L8W8 6d ago
Did you run either Qwen setup with speculative decoding both on and off? I’m curious how much it changed total task time in Pi. In my much smaller test of eight JSON-wrapped Python edits, enabling native MTP on DeepSeek V4.1 Flash cut total API time from 23.86 to 14.46 minutes. I’d be interested to see whether that kind of speedup carries over to longer, multi-turn tasks.
0
u/sapient2k 8d 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.
0
u/henbone11 7d 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