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, RTX 5070 Ti + Ryzen 7 9800X3D on Windows 11, IQ3_S, 5K to 164K prompt tokens (#832)
Zauberio18bce49fed62
diff --git a/bench/results/2026-10-04-community-rtx-5070ti-windows/BUILD.json b/bench/results/2026-10-04-community-rtx-5070ti-windows/BUILD.jsonnew file mode 100644index 000000000..094eac94c--- /dev/null+++ b/bench/results/2026-10-04-community-rtx-5070ti-windows/BUILD.json@@ -0,0 +1,20 @@+{+ "version": "0.1.39",+ "source": "release",+ "archs": [+ 75,+ 86,+ 89,+ 120+ ],+ "vision_archs": [+ 75,+ 86,+ 89,+ 120+ ],+ "ptx": true,+ "cuda": "13.0",+ "vision": "gpu",+ "portable": true+}\ No newline at end of filediff --git a/bench/results/2026-10-04-community-rtx-5070ti-windows/README.md b/bench/results/2026-10-04-community-rtx-5070ti-windows/README.mdnew file mode 100644index 000000000..50ed37318--- /dev/null+++ b/bench/results/2026-10-04-community-rtx-5070ti-windows/README.md@@ -0,0 +1,131 @@+# Community benchmark: RTX 5070 Ti, Ryzen 7 9800X3D, Windows 11++Measured on 2026-10-04 by [Zauberio](https://github.com/Zauberio), on a native-Windows+machine. This tests Strata 0.1.39 (the `strata-windows-x64.zip` release build) with the+IQ3_S native pack, one GPU, and a 262,144-token context limit. The machine is a daily+driver: it answers real requests all day, so the numbers below are the engine's own+per-request lines from its log, not client walls (a foreign request can queue in front of+a probe; the engine-side line cannot lie about its own work).++Prefill ran at **3,012 tok/s at 5,213 prompt tokens, 3,487 at 41,411, 3,523 at 131,186+and 3,442 at 164,055**. Decode after those prompts was **75.8 / 74.7 / 82.8 / 79.6+tok/s** (medians of 3). These are synthetic code-explanation requests with greedy+decoding and a 256-token output cap. They do not establish general answer quality or+performance on other workloads.++## Hardware and software++- NVIDIA GeForce RTX 5070 Ti; 16,303 MiB reported VRAM; 300 W power limit. The engine's+ startup transfer probe reported 57.9 GB/s host-to-device (PCIe Gen 5). GPU clocks were+ not fixed for this test.+- AMD Ryzen 7 9800X3D; 8 cores, 16 logical CPUs. The engine used 7 expert-pool workers+ plus its host thread.+- 64 GB installed RAM (Windows reports 61.7 GiB of physical memory). Model files on a+ Lexar NM710 2 TB NVMe; the OS is on the same disk.+- Windows 11 Pro, build 10.0.26300; NVIDIA driver 617.14.+- Engine 0.1.39 from the release zip, digest verified against the release asset's sha256+ at install time; local `strata.exe` sha256+ `d4c3a51f60d7a35abab8ab335fb20a0ff325c508a1e59d14a15f22c0d64afd0c`. BUILD.json: CUDA+ 13.0, archs 75/86/89/120, PTX, GPU vision, portable. See [BUILD.json](BUILD.json).+- Python 3.14.2; the CUDA runtime comes from the pip `nvidia/cu13` wheels. Installed+ packages are in [python-packages.txt](python-packages.txt).+- The engine updates itself: each release is applied within an hour of publication+ (digest-checked, full rollback on failure), so this box tracks `main` releases closely.++## Model and configuration++Model: `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, revision+`ed59f92082b1e93c0e96d60a8b11aab089b52f09`:++- `IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf`+- `IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf`+- `mmproj-Qwen3.8-Flash-Next-BF16.gguf`++All three local GGUF SHA-256 hashes matched the revision's published LFS hashes+(re-verified on 2026-10-04; see [model-provenance.json](model-provenance.json)). The+native IQ3_S pack and the PLE shard are used as installed by setup; MTP was fetched by+the installer from `Qwen/Qwen3.8-Flash-Next` with per-tensor hashes kept in its manifest.++- Context 262,144; Q4_0 KV; 32,768 KV cells per attention layer resident on GPU;+ 800 MiB VRAM reserved.+- Expert cache `auto`: 4,234 slots, 8.08 GiB of VRAM, profile-prefilled (24,576 ranked+ pairs), no eviction. Decode hit rate during this session: 68–74%.+- Prefill `auto:32768`: the bisection picked chunks of **20,224 tokens** with a 512-slot+ ring; the prompt path borrows 3,789 cache slots (7.22 GiB).+- MTP `--spec 4 --spec-min-p 0.70`; built-in suffix drafting enabled; draft vocab: the+ shipped English/code subset.+- `--pcie-frac 0.35` (calibrated on this box; see the appendix).+- Engine env: `STRATA_PF_FUSED=1`, `STRATA_PF_FUSED_TILE=128`, `STRATA_GR_DOWN_MAX4=1`+ (all measured on this machine; see the appendix).++## The battery++Each row: 3 runs, unique marker at the front of every prompt (defeats the prompt cache),+greedy, 256-token cap. Numbers are the engine's own `prompt N tokens = … read in X ms+(… tok/s), 256 generated in Y ms (… tok/s)` lines. Raw lines: [battery.json](battery.json);+the harness that issued the requests: [battery.ps1](battery.ps1).++| prompt tokens | prefill tok/s (3 runs) | median | decode tok/s (3 runs) | median | drafts accepted |+|---|---|---|---|---|---|+| 5,213–5,217 | 3012 / 3022 / 3001 | **3,012** | 74.4 / 76.5 / 75.8 | **75.8** | 92–112 of 115–148 |+| 41,411–41,413 | 3487 / 3486 / 3490 | **3,487** | 73.8 / 74.7 / 83.3 | **74.7** | 98–105 of 135–140 |+| 131,186–131,188 | 3526 / 3521 / 3523 | **3,523** | 81.0 / 83.1 / 82.8 | **82.8** | 91–113 of 126–153 |+| 164,055–164,058 | 3443 / 3442 / 3442 | **3,442** | 82.3 / 69.6 / 79.6 | **79.6** | 86–103 of 117–132 |++Prefill is stable to ±0.2% run-to-run. Decode spreads a few percent with foreign load+and draft acceptance; the filler prompts used here accept ~69–85% of MTP drafts, while+highly repetitive synthetic prompts (counting text) reach ~96% and inflate decode by+15–20%. Decode numbers are therefore workload-shaped; prefill numbers are not.++## Appendix: measured levers on this machine++Every line below was A/B'd on this box with alternating boots or within-boot sweeps,+never inferred. Cross-boot variance on this machine is ~±2–5% for decode and ~±5% for a+whole boot's prefill; effects under ~2% need replication on two or more fresh processes.+The method for patch-vs-stock pairs is ABBA swap-boot with a null-control band (a prompt+size where the patch provably cannot change the code path, whose delta is pure build-pair+drift).++### Engine versions (same config, alternating boots)++| step | prefill | decode | note |+|---|---|---|---|+| 0.1.35 → 0.1.36 | ~0% | +4.4% @104K, +7.5% @130K | the sm_90+ cluster decode kernels; turning them off returns to 0.1.35 exactly |+| 0.1.36 → 0.1.37 | 0% | 0% | update for fixes, not speed |+| 0.1.37 → 0.1.38 | +45–62% (24K: 2295→3341) | ~0% | the prompt-path rewrite (Q4_0 K/V tensor cores, DeltaNet, PLE) |+| 0.1.38 → 0.1.39 | ~0% | +4.5% short, +6.2% after 130K | ABBA vs a 0.1.38 build that already carried PR #603's wide top-k patched in, so the delta is 0.1.39's other changes (#603 itself shipped upstream in 0.1.39) |++### Env and flag levers (kept on this box)++| lever | effect | method |+|---|---|---|+| `STRATA_PF_FUSED=1` | prefill +5.5% @104K (0.1.36), +7.8% @24K (0.1.38, n=6/arm 2×ABAB) | alternating boots |+| `STRATA_PF_FUSED_TILE=128` | +1.5–2.2% over the auto tile at ~24K prompts | alternating boots |+| `STRATA_GR_DOWN_MAX4=1` | decode +2.8% short, +3.5% after 130K (couplets +3.6/+4.4) | 8-boot ABBA |+| `--pcie-frac 0.35` | on 0.1.38: 94.7 vs 90.6 at 0.20, 92.0 at 0.50, 86.3 at 0.75 (tok/s after 130K); on 0.1.39 the 0.35–0.65 range is indistinguishable and 0.20 is still bad | within-boot `strata_tune` sweep, re-checked on 0.1.39 |+| prefill cap `auto:32768` | bisection picks 20,224 here; +0.5% vs cap 16,384 at 104K/130K; plain `auto` (8,192) is ~4–5% slower there | ABBA |+| the three env levers together, on 0.1.39 | prefill @130K +6.9%, decode after 130K +8.1%, short decode +2.6% vs all off (every couplet positive) | 8-leg ABBA, 2026-10-04 |++### Measured and rejected++| lever | result | why it stays off |+|---|---|---|+| `STRATA_ADAPT_NOWAIT=1` | +0.6% = noise (clean ABBA couplets −1.8/−0.1/+2.0/+2.0) | trades the #463 determinism fix for nothing |+| `IQ_PREFETCH=8192` | −0.7% (3/4 couplets negative) | shipped 2,048 default stays |+| `--pcie-mode dma` / `direct` | 84.0 / 77.7 vs kernel (auto) ~90.3 tok/s | ABCCBA; dma balloons the CPU-row wait, direct slows the grouped span |+| a stage-overlap patch (fork staging copy onto the copy stream inside the captured window) | mechanism verified (waitB 4.29→0.08 ms) but wall +0.6% = noise | decode here is paced by host-side work; the concurrent copy contends for SMs |+| router-lookahead predictive prefetch (probe build) | recall 27–34%, precision ~8% on the fetch set | best case hides ~28% of the PCIe wait for ~12x wasted bandwidth; closed |++### Equal-chunk prefill splitting (the PR #693 idea, rebased variant)++On this box, splitting a prompt into equal chunks instead of full chunks + a stub tail+measured **+4.3% at 22.6K tokens** and +1.9% at 26.6K; a 40.6K band where the chunk+layout is provably identical between builds drifted +1.1%, which is the noise floor for+that build pair. Details and method in the PR #693 thread.++## What this machine is not++Not isolated: it serves an OpenAI-compatible API to a home lab all day (vision on, MCP+attached). Foreign requests inflate client-side walls; they do not touch the engine's own+per-request lines used above. The box also self-updates hourly, so these numbers belong+to 0.1.39 specifically.diff --git a/bench/results/2026-10-04-community-rtx-5070ti-windows/battery.json b/bench/results/2026-10-04-community-rtx-5070ti-windows/battery.jsonnew file mode 100644index 000000000..6b8264147--- /dev/null+++ b/bench/results/2026-10-04-community-rtx-5070ti-windows/battery.json@@ -0,0 +1,28 @@+{+ "date": "2026-10-04",+ "engine": "0.1.39",+ "method": "box-side PowerShell issuing POSTs to the local serve with a unique GUID marker at the front of every prompt (defeats the prompt cache), temperature 0, max_tokens 256; numbers below are the engine's own per-request log lines (prompt N tokens = 0 reused + N read in X ms (R tok/s), 256 generated in Y ms (G tok/s))",+ "runs": [+ {"band": "4K", "prompt_tokens": 5213, "prefill_tok_s": 3012.3, "decode_tok_s": 74.4, "drafts": "92/131"},+ {"band": "4K", "prompt_tokens": 5216, "prefill_tok_s": 3021.6, "decode_tok_s": 76.5, "drafts": "112/148"},+ {"band": "4K", "prompt_tokens": 5217, "prefill_tok_s": 3000.6, "decode_tok_s": 75.8, "drafts": "98/115"},+ {"band": "32K", "prompt_tokens": 41411, "prefill_tok_s": 3486.6, "decode_tok_s": 73.8, "drafts": "105/140"},+ {"band": "32K", "prompt_tokens": 41413, "prefill_tok_s": 3485.6, "decode_tok_s": 74.7, "drafts": "98/135"},+ {"band": "32K", "prompt_tokens": 41413, "prefill_tok_s": 3490.0, "decode_tok_s": 83.3, "drafts": "104/135"},+ {"band": "104K","prompt_tokens": 131186,"prefill_tok_s": 3525.6, "decode_tok_s": 81.0, "drafts": "91/126"},+ {"band": "104K","prompt_tokens": 131188,"prefill_tok_s": 3520.6, "decode_tok_s": 83.1, "drafts": "108/153"},+ {"band": "104K","prompt_tokens": 131187,"prefill_tok_s": 3522.7, "decode_tok_s": 82.8, "drafts": "113/138"},+ {"band": "130K","prompt_tokens": 164057,"prefill_tok_s": 3443.1, "decode_tok_s": 82.3, "drafts": "103/125"},+ {"band": "130K","prompt_tokens": 164058,"prefill_tok_s": 3441.7, "decode_tok_s": 69.6, "drafts": "91/132"},+ {"band": "130K","prompt_tokens": 164055,"prefill_tok_s": 3441.6, "decode_tok_s": 79.6, "drafts": "86/117"}+ ],+ "session_state": {+ "expert_cache_slots": 4234,+ "expert_cache_vram_gib": 8.08,+ "prompt_chunk_auto_tokens": 20224,+ "prompt_ring_slots": 512,+ "prompt_borrowed_slots": 3789,+ "decode_hit_rate_range": "68.2-73.6% over the session",+ "kv_streaming_vram_hit": "~97%"+ }+}diff --git a/bench/results/2026-10-04-community-rtx-5070ti-windows/battery.ps1 b/bench/results/2026-10-04-community-rtx-5070ti-windows/battery.ps1new file mode 100644index 000000000..43cffe90c--- /dev/null+++ b/bench/results/2026-10-04-community-rtx-5070ti-windows/battery.ps1@@ -0,0 +1,24 @@+# bench_battery.ps1 — house-protocol battery on the live serve (stock 0.1.39)+# 4K/32K/104K/130K prompts, greedy, 256-token cap, unique nonce per run.+$ErrorActionPreference = "Continue"+$h = Invoke-RestMethod -Uri http://127.0.0.1:8080/health -TimeoutSec 5+$model = $h.model+"battery start $(Get-Date -Format 'HH:mm:ss') model=$model" | Out-File -Append -Encoding ascii C:\Strata\bench-battery.log+$base = "Explain what this function does, name its edge cases, and describe how you would test it. "+$sizes = @{ "4K" = 270; "32K" = 2175; "104K" = 6900; "130K" = 8630 }+foreach ($name in @("4K","32K","104K","130K")) {+ $rep = $sizes[$name]+ foreach ($i in 1..3) {+ $prompt = ("Run marker " + [guid]::NewGuid().ToString() + ". ") + ($base * $rep)+ $body = @{ model = $model; messages = @(@{ role = "user"; content = $prompt }); max_tokens = 256; temperature = 0 } | ConvertTo-Json -Depth 5+ $sw = [System.Diagnostics.Stopwatch]::StartNew()+ try {+ $r = Invoke-RestMethod -Uri http://127.0.0.1:8080/v1/chat/completions -Method Post -Body $body -ContentType "application/json" -TimeoutSec 600+ $sw.Stop()+ ("{0} run{1}: wall {2:N2}s ptok {3} gen {4}" -f $name, $i, $sw.Elapsed.TotalSeconds, $r.usage.prompt_tokens, $r.usage.completion_tokens) | Out-File -Append -Encoding ascii C:\Strata\bench-battery.log+ } catch {+ ("{0} run{1}: ERROR {2}" -f $name, $i, $_.Exception.Message) | Out-File -Append -Encoding ascii C:\Strata\bench-battery.log+ }+ }+}+"battery done $(Get-Date -Format 'HH:mm:ss')" | Out-File -Append -Encoding ascii C:\Strata\bench-battery.logdiff --git a/bench/results/2026-10-04-community-rtx-5070ti-windows/model-provenance.json b/bench/results/2026-10-04-community-rtx-5070ti-windows/model-provenance.jsonnew file mode 100644index 000000000..524ce960c--- /dev/null+++ b/bench/results/2026-10-04-community-rtx-5070ti-windows/model-provenance.json@@ -0,0 +1,38 @@+{+ "model_repo": "ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF",+ "revision": "ed59f92082b1e93c0e96d60a8b11aab089b52f09",+ "verified_on": "2026-10-04",+ "files": [+ {+ "path": "IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf",+ "bytes": 54817524224,+ "sha256_local": "4c1eb2ceb4915e1192f4f386021897bde56a97f40a0bb78bb86465e0f7d2aca3",+ "sha256_lfs_published": "4c1eb2ceb4915e1192f4f386021897bde56a97f40a0bb78bb86465e0f7d2aca3",+ "match": true+ },+ {+ "path": "IQ3_S/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf",+ "bytes": 28800138432,+ "sha256_local": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113",+ "sha256_lfs_published": "316b46f3a2dbd68c900f43136ab9449f9dcc3725dfd8c794847c204bc161e113",+ "match": true+ },+ {+ "path": "mmproj-Qwen3.8-Flash-Next-BF16.gguf",+ "bytes": 907543008,+ "sha256_local": "b1a82259702816a5330d7bd7607cd9676b11780e79ff7348c21103ff3ce49bd0",+ "sha256_lfs_published": "b1a82259702816a5330d7bd7607cd9676b11780e79ff7348c21103ff3ce49bd0",+ "match": true+ }+ ],+ "engine": {+ "version": "0.1.39",+ "source": "release asset strata-windows-x64.zip",+ "asset_sha256_verified_at_install": true,+ "local_exe_sha256": "d4c3a51f60d7a35abab8ab335fb20a0ff325c508a1e59d14a15f22c0d64afd0c"+ },+ "mtp": {+ "source": "Qwen/Qwen3.8-Flash-Next (installer tensor-range download)",+ "note": "per-tensor output hashes retained in the installer's mtp-manifest.json on the box; the full upstream BF16 shards were not downloaded or independently hash-verified"+ }+}diff --git a/bench/results/2026-10-04-community-rtx-5070ti-windows/python-packages.txt b/bench/results/2026-10-04-community-rtx-5070ti-windows/python-packages.txtnew file mode 100644index 000000000..02855e0d6--- /dev/null+++ b/bench/results/2026-10-04-community-rtx-5070ti-windows/python-packages.txt@@ -0,0 +1,18 @@+certifi==2026.7.22+charset-normalizer==3.5.1+cmake==4.4.3+colorama==0.4.6+idna==3.20+Jinja2==3.1.6+MarkupSafe==3.0.3+ninja==1.13.2+numpy==2.5.3+nvidia-cublas==13.0.2.14+nvidia-cuda-runtime==13.0.96+pillow==12.3.0+psutil==7.2.2+PyYAML==6.0.3+regex==2026.9.10+requests==2.34.2+tqdm==4.70.1+urllib3==2.8.0