Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

bench: community report, Flash-Next IQ2_XS vs a dense 27B as coding agents (RTX 4090 + 32 GB RAM) (#882)

T-Cryptefa1ea2f9158
diff --git a/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/README.md b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/README.md
new file mode 100644
index 000000000..a35236ea0
--- /dev/null
+++ b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/README.md
@@ -0,0 +1,84 @@
+# Community report: Flash-Next IQ2_XS on Strata vs a dense 27B, as coding agents on one RTX 4090 + 32 GB RAM
+
+Measured 2026-10-04 by [T-Crypt](https://github.com/T-Crypt). Same card, same prompts, same thinking budget:
+
+- **Strata**: Qwen3.8-Flash-Next GSQ-RCO IQ2_XS, engine 0.1.39 + #700 #783 #787 #790.
+- **Dense baseline**: Qwen3.8-27B on the NInfer engine (ninfer-4090 fork, deploy build), a dense model that fits
+ in VRAM.
+
+Two stages: a synthetic bench with long-context recall, then three real tickets done by Claude Code subagents, three
+at once per engine, graded against a rubric fixed before the runs. The prefix-reuse section is the main finding for
+Strata users.
+
+## Hardware and configs
+
+- RTX 4090 24 GB (450 W limit), i9-14900K (AVX-2, no AVX-512), 32 GB RAM (31 GiB usable), Linux, desktop on the iGPU.
+- Strata: `--max-context 262144 --kv q4_0 --resident-experts --expert-cache auto --prefill auto --spec 4
+ --spec-min-p 0.5 --pcie-frac 0.20 --mtp`, `reasoning_budget_tokens` 4096, `STRATA_RESIDENT_HEADROOM_GIB=6`,
+ `conversation_cache_mib` 0. Expert cache ~11.8K of 24,576 slots in VRAM, the rest page-locked in RAM.
+- NInfer: `--max-context 262144 --kv-dtype rk4v4-e8 --spec mtp --draft-tokens 3 --default-thinking-budget 4096
+ --max-concurrency 1`.
+
+| | Strata IQ2_XS | NInfer 27B |
+|---|---|---|
+| peak VRAM | 23,936 MiB | 23,134 MiB |
+| peak host RAM | 27,804 to 27,968 MiB | not sampled |
+
+## Stage 1: synthetic bench
+
+Build = one HTML dashboard from a spec (CSS rules counted). Review = a script with 12 planted bugs. Raw rows:
+`r14-results.jsonl`.
+
+| run | engine | decode tok/s | CSS rules | bugs found | wall time |
+|---|---|---|---|---|---|
+| a | Strata | 173 | 113 | 12/12 | 2m11s |
+| b | Strata | 182 | 108 | 10/12 | 2m06s |
+| c | Strata | 185 | 106 | 9/12 | 2m21s |
+| a | NInfer | 140 | 181 | 12/12 | 5m21s |
+| b | NInfer | 127 | 190 | 10/12 | 4m56s |
+
+Recall, three facts at 10/50/90% depth (`needle-strata.txt` for Strata):
+
+| tokens | Strata found / prompt tok/s / s | NInfer found / prompt tok/s / s |
+|---|---|---|
+| 55,586 | 3/3 / 3,494 / 17.3 | 3/3 / 3,037 / 23.3 |
+| 117,153 | 3/3 / 3,904 / 31.3 | 3/3 / 2,391 / 51.2 |
+| ~199,500 | 3/3 / 3,833 / 53.7 | 3/3 / 1,857 / 110.2 |
+
+## Stage 2: three real tickets, three agents at once
+
+Claude Code subagents, one git worktree per model and task, a 150-minute wall-clock cap per engine, engines run one
+after the other. Prompts: `prompt-T1..3.md`. Rubric: `rubric.md` (correctness, verification, scope, quality,
+honesty, 0 to 10 each). The grader re-ran every test, lint and dry run the agents claimed.
+
+| task | Strata IQ2_XS | NInfer 27B |
+|---|---|---|
+| T1 Python config renderer | 42 | 35 |
+| T2 Quickshell QML feature | 0 (no edits in 150 min) | 34 (complete; the harness hit its prompt limit before the commit) |
+| T3 evidence write-up, every number cited | 44 (done in 120 min) | 43 (done in 62 min) |
+| total /150 | 86 | 112 |
+| finished in the cap | 1 of 3 | 2 of 3 |
+
+On the two tasks both engines finished (T1, T3), Strata scored 86 of 100 and NInfer 78.
+
+## Prefix reuse with three concurrent agents
+
+| | Strata | NInfer |
+|---|---|---|
+| prompt tokens served from cache | 17.5M of 54.0M (32.4%), 938 requests | 11.8M of 13.3M (88.5%), last 101 requests |
+| a logged turn | `prompt 109780 tokens = 2559 reused + 107221 read in 27966 ms` | 172,578 prompt tokens, 172,343 from its state cache, first token 524 ms |
+
+With `conversation_cache_mib` 0, three interleaved agent conversations left Strata reusing only the shared ~2.5K
+system prompt. Each turn re-read 70K to 110K tokens at ~3,800 tok/s, about 90% of the wall time. Strata's decode
+and prompt speed were higher than NInfer's in every measurement here; prefix reuse decided the elapsed time.
+
+We ran with the conversation cache off because host RAM is the binding budget on 32 GB (27.8 to 28.0 GiB peak).
+Untested here: a conversation cache sized for three agents, or one agent at a time. Both are the obvious next runs.
+
+## Limits
+
+- One run per engine per ticket; two to three runs per engine on the synthetic bench.
+- One grader model (Claude), rubric fixed before the runs.
+- Strata ran first, NInfer second.
+- NInfer's reuse figure covers its last 101 requests (log buffer).
+- Single machine class: 24 GB card, 32 GB RAM.
diff --git a/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/TRIMMED.md b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/TRIMMED.md
new file mode 100644
index 000000000..058046e32
--- /dev/null
+++ b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/TRIMMED.md
@@ -0,0 +1,10 @@
+# Trimmed files
+
+Ported from PR #882 for 0.1.40.2. Raw dumps, logs and binaries were left out to keep the repository small;
+the README, summaries, configs and per-run results are unchanged. The files below were in the original PR.
+
+1 files, 0.0 MB:
+
+| file | bytes | why |
+|---|---:|---|
+| `r14-results.jsonl` | 2,397 | log/raw dump |
diff --git a/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/needle-strata.txt b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/needle-strata.txt
new file mode 100644
index 000000000..53b12a10e
--- /dev/null
+++ b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/needle-strata.txt
@@ -0,0 +1,4 @@
+{"finish": "stop", "size": 60000, "prompt_n": 55586, "prefill_tps": 3494, "seconds": 17.3, "found": 3, "total": 3}
+{"finish": "stop", "size": 120000, "prompt_n": 117153, "prefill_tps": 3904, "seconds": 31.3, "found": 3, "total": 3}
+{"finish": "stop", "size": 200000, "prompt_n": 199544, "prefill_tps": 3833, "seconds": 53.7, "found": 3, "total": 3}
+{"summary": true, "found": 9, "total": 9}
diff --git a/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T1.md b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T1.md
new file mode 100644
index 000000000..c3b2a8fa1
--- /dev/null
+++ b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T1.md
@@ -0,0 +1,14 @@
+You are working on a ticket in the homelab repo. Work ONLY inside the git worktree WT (cd there first; it is a
+full checkout on its own branch). Do not edit <lab-repo> or any other path, do not SSH anywhere, do not push.
+Commit your finished work on the current branch (no attribution trailers). Read CLAUDE.md/AGENTS.md in the worktree.
+
+Ticket HAJ4HZ4 - "lsw_consumers should own model display names and default models":
+Recurring drift found 2026-10-01: after Coder-Pruned was removed, Pi/Empryo model entries kept name
+'agent (Qwen3.6-Coder-Pruned-262K)' and DSH/Empryo defaults still pointed at the removed model, because
+lsw_consumers renders only id/input/context. Extend the render to set/normalize the model display name from the
+id, and to repoint a default model that no longer exists to the agent role's model (or blank it). Then a roster
+change cannot leave a harness pointing at a ghost.
+
+The code is scripts/llama-swap/lsw_consumers.py (and whatever it calls). Prove it works without touching live
+harness configs: tests or a dry run against copies/fixtures. Existing behaviour for valid entries must not change.
+End with a short report: files changed, how you verified it (exact commands and results), open questions.
diff --git a/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T2.md b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T2.md
new file mode 100644
index 000000000..432be56e7
--- /dev/null
+++ b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T2.md
@@ -0,0 +1,22 @@
+You are working on a ticket in the Aphotic-Hypr repo (Quickshell/QML desktop shell). Work ONLY inside the git
+worktree WT (cd there first). Do not edit <Aphotic-Hypr checkout> or <user config>, do not launch, reload or restart the live
+shell or Hyprland, do not push. Commit your finished work on the current branch (no attribution trailers).
+Read CLAUDE.md and AGENTS.md in the worktree and follow them. Qt/Quickshell API docs: rg in <local Qt docs>.
+
+Ticket B0ABG9E - "settings: profile picture in the settings menu":
+Put a profile picture in the settings menu. The settings surface carries no user identity at all right now, so
+this is a new element rather than a change to an existing one.
+Constraints:
+- Local first. No cloud, and no new external dependency. The image lives under the user's own config directory.
+- Settings is Quickshell QML. Use the existing file dialog helper and load the result with a file URL.
+- The shell already has a cache-busting pattern in the live Wallpapers.qml for an image that gets overwritten in
+ place. Follow it, or a re-picked avatar shows the old one.
+- Persist the choice through the existing settings service and add the key to the same schema, so it round-trips
+ through the normal config sync.
+- Clearing the avatar has to return the header to its current layout without leaving a gap.
+Open question: header only, or the panel as well (decide, and say why).
+Done when an avatar can be picked and cleared, it survives a reboot, and a missing or unreadable image leaves the
+settings menu as it looks now.
+
+Verify statically (qmllint on the files you touch, any repo checks the docs name). End with a short report: files
+changed, how you verified it (exact commands and results), what you could not verify, open questions.
diff --git a/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T3.md b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T3.md
new file mode 100644
index 000000000..20c60e89b
--- /dev/null
+++ b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/prompt-T3.md
@@ -0,0 +1,15 @@
+You are working in llm-tune, a Claude skill that teaches quality-aware tuning of local LLMs from measured
+evidence. Work ONLY inside the git worktree WT (cd there first). Read-only access to the evidence below; do not
+edit anything outside WT, do not push. Commit your finished work on the current branch (no attribution trailers).
+Read README.md and skill/SKILL.md first and follow the repo's conventions (tables in skill/references/tables/,
+findings.md, evidence.md index, CORRECTIONS.md, engine-specific marking, "never state a number you did not read").
+
+Task: fold today's new Strata measurements into the skill:
+- <lab-repo>/state/evals/2026-10-04/strata-calib/RESULTS.md (+ calib.log, results.jsonl, bench.txt): calibration of
+ --pcie-frac / --spec-min-p, and a learned expert profile that hurt decode at depth.
+- <lab-repo>/state/evals/2026-10-04/strata-pr783-depth/RESULTS.md (+ results.jsonl): engine PR #783 and #796 at depth.
+- <lab-repo>/state/evals/2026-10-04/strata-pr783/RESULTS.md: #783 on short prompts.
+Put each new measurement where the skill keeps that kind of data, update the decision steps / traps / evidence index
+where the new evidence changes or sharpens advice, and mark what is engine-specific or single-run. Every number you
+write must match its source file exactly and cite it. Do not generalise beyond what was measured.
+End with a short report: files changed, each new claim with its source, anything you chose not to include and why.
diff --git a/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/rubric.md b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/rubric.md
new file mode 100644
index 000000000..45a8e79da
--- /dev/null
+++ b/bench/results/2026-10-04-community-4090-agents-vs-dense-27b/rubric.md
@@ -0,0 +1,25 @@
+# r15 real-task head-to-head: NInfer-Qwen3.8-27B vs Strata Qwen3.8-Flash-Next IQ2_XS
+
+Written before any run (2026-10-04). Same prompt per task for both models; each model works in its own git
+worktree (<worktrees>/<repo>-<model>, branch eval/r15-<model>-*). Harness: Claude Code subagent
+(`agent` = NInfer via llama-swap, `strata` = Strata :8080). Graded by Claude (Opus) from the diff, the
+agent's report and re-running its verification.
+
+Each task scored 0-10 on five axes (max 50 per task, 150 total):
+
+| Axis | 10 | 5 | 0 |
+|---|---|---|---|
+| Correctness | does what the ticket's "done when" asks, no bugs found in review | partly done or a real bug | wrong or broken |
+| Verification | ran a real check (tests, lint, a script) and the check passes when I re-run it | claimed checks I cannot reproduce, or only partial | none, or claimed false success |
+| Scope | touches only what the task needs, follows repo conventions/AGENTS/CLAUDE rules | some unrelated churn | rewrites/damages unrelated code, edits outside its worktree |
+| Quality | reads like the surrounding code; clear, minimal | works but awkward or duplicated | hard to maintain |
+| Honesty | report matches the diff; limits and open questions stated | small overclaims | invented results / numbers |
+
+Also recorded, not scored: wall time, turns/tool calls, whether it finished or died (context, loop).
+Task-specific checks:
+- T1 homelab HAJ4HZ4: render sets/normalizes display names from id; a default pointing at a removed model is repointed to
+ the agent role's model (or blanked); existing outputs unchanged otherwise; a test or dry-run proves both.
+- T2 Aphotic-Hypr B0ABG9E: pick + clear avatar via existing file dialog helper; file URL + cache-busting like Wallpapers.qml;
+ key in the existing settings schema; missing/unreadable image = current look, no gap; qmllint clean on touched files.
+- T3 llm-tune: today's Strata evidence (calibration, learned profile trap, #783 depth) folded in per repo conventions;
+ every number matches its source file exactly and is cited; engine-specific marking; no claims beyond the data.