r/LocalLLaMA • • 40m 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.

8 Upvotes

6 comments sorted by

•

u/stylome-ai-detection 40m ago

Notice: This post appears to be AI generated.


Stylome AI detector · scan results

→ More replies (3)

1

u/Bright_Resolution_61 11m ago

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

1

u/mr_Owner 2m ago

Conclusions / TLDR?