[PR #440] [CLOSED] bench: community report, RTX 5090 + Ryzen 9 9950X3D, IQ3_S at the full 262K window; prefill auto:32768 A/B; conversation-cache 32 GiB demo #2641

Closed
opened 2026-11-04 02:01:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/440
Author: @Ambolio
Created: 10/2/2026
Status: ❌ Closed

Base: main ← Head: bench-community-rtx-5090-iq3s-262k


📝 Commits (10+)

  • 12fd16c ple: --ple-io ram locks the n-gram table in RAM (no SSD read on the prompt/token path)
  • 9ec069b ple: --ple-io ram: refused on Windows (no mlock), 'locked' only when mlock succeeded else 'loaded (not locked)', neutral comments + --help (review)
  • cf0d12c perf(prefill): allow explicit routed-only staging for large chunks
  • 85049da WSL2: survive the driver's ~1 GiB pinned host budget with 3 GPUs
  • 2152c8f Show prefill speed alongside decode speed in dashboard
  • f2b5b1c setup: the 3-bit models' 262K context is counted against RAM, not a fixed 90 GB
  • 853aa46 generate: zero session state for a native pack before the prompt path
  • 9086c36 tests: bitwise check of native_mmvq's multi_exact contract, with a negative control (#148; CMake on the backend variables, CUDA-only)
  • ec64796 generate: the session state is zeroed for every pack in CLI generate mode (#167 follow-up); no .pi/ ignore line
  • 89d423f A fatal CUDA fault in the prompt path exits at once instead of hanging until the watchdog (#224); CMake warns when sm_120 is built with CUDA < 13.0 (#220, #224); iq_pack writes native_experts.txt under a temporary name, so a stop part-way leaves no partial pack (#172)

📊 Changes

11 files changed (+937 additions, -0 deletions)

View changed files

➕ bench/results/2026-10-02-community-rtx-5090-iq3s/README.md (+131 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/bench-prefill32k.out (+30 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/bench.out (+30 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/bench.py (+159 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/config.json (+57 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/conversation_cache_demo.py (+79 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/demo.json (+57 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/demo.out (+7 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/needles.json (+83 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/needles.out (+10 -0)
➕ bench/results/2026-10-02-community-rtx-5090-iq3s/runs-prefill32k.json (+294 -0)

📄 Description

Community benchmark report under bench/results/2026-10-02-community-rtx-5090-iq3s/, results only (no engine changes), in the docs/COMMUNITY_BENCHMARKS.md format.

Hardware: RTX 5090 32 GB (Windows 11, WDDM, driver 617.14). The 4K desktop sits on a second GPU, so the 5090 carries no graphics clients — relevant to #279: --vram-reserve-mib 100 shows no stalls here. Ryzen 9 9950X3D (AVX-512), 96 GB RAM, NVMe.

Software: engine 0.1.33 release binary (BUILD.json: CUDA 13.0, sm_75/86/89/120+PTX), serve wrapper 0.1.30.

Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S (2 GGUF shards + PLE), MTP rt, shipped expert profile, vision on CPU (16 threads).

Configuration: --expert-cache auto --prefill auto:32768 --spec 4 --spec-min-p 0.70 --mtp rt --max-context 262144 --kv int8 --kv-resident 65536 --vram-reserve-mib 100 --pcie-frac 0.35 --conversation-cache-mib 32768 --conversation-cache-slots 8, fit_max_tokens on. Expert cache 12,439 slots / 23.61 GiB. Full config in config.json.

Findings:

  1. Speed sweep (community method: fresh prompt per run — cache_n = 0 in every measured run — greedy, 256 out, 1 warm-up + 3): prefill 999 / 2,439 / 5,045 / 6,004 tok/s at 1K/4K/32K/128K; decode 144 / 149 / 142 / 125; drafts accepted 75-76%.
  2. A/B of --prefill auto:32768 (the auto:32768 form from the help; PR #282's idea): 32K 4,168 -> 5,045 (+21%), 128K 4,450 -> 6,004 (+35%). Larger than #282's +15% at IQ2_XS — consistent with their note that bigger experts gain more. Decode unchanged.
  3. needle_bench.py 9 of 9 found at 32k/128k/256k x depths 10/50/90 — the 256k rows are 261,669-261,670 prompt tokens, the edge of the 262,144 window, on one 5090.
  4. Conversation-cache demo (conversation_cache_demo.py): the engine default is off (--conversation-cache-mib 0, 4 slots). With 32 GiB / 8 slots, follow-ups on two interleaved ~65k-token conversations cost 0.6-1.2 s instead of 11-13 s (10-20x); the engine restores 66,251 tokens in 82 ms and a live 160,978-token agent session in 186 ms; after an LRU eviction the partial path still reused 30,560 tokens and read 25,500 fresh at 5,002 tok/s. Parked bytes ~ 30 KB/token; 8 conversations (largest 162k tokens, 3.85 GB) sat in ~20.8 GB.
  5. Observation: with auto:32768 the engine warns "0 MiB of VRAM free with everything loaded — add --vram-reserve-mib 612". The prompt-path loan (7,736 slots / 14.64 GiB) peaks during prompt processing; idle free is 485 MiB and no stalls appeared across the full sweep. Is the warning conservative for this shape, or should the loan cap account for the reserve?

Limitations: one machine, single stream, greedy, prompts built from repo text; TTFT measured client-side on a FIFO server (includes queue time); the baseline per-run JSON was overwritten by the A/B run (its per-run lines are in bench.out); no quality suite beyond the needle checks.

Measurements and write-up put together with Claude Code on my machine and checked by me.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/440 **Author:** [@Ambolio](https://github.com/Ambolio) **Created:** 10/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bench-community-rtx-5090-iq3s-262k` --- ### 📝 Commits (10+) - [`12fd16c`](https://github.com/Niko1221/Strata/commit/12fd16c63d61fd046e53dfc0375fbf8d9b43b770) ple: --ple-io ram locks the n-gram table in RAM (no SSD read on the prompt/token path) - [`9ec069b`](https://github.com/Niko1221/Strata/commit/9ec069b49c128941e4ba9e2a85ab0dccc348a705) ple: --ple-io ram: refused on Windows (no mlock), 'locked' only when mlock succeeded else 'loaded (not locked)', neutral comments + --help (review) - [`cf0d12c`](https://github.com/Niko1221/Strata/commit/cf0d12c3501e7ef631f24c63b2fb0326947d40ff) perf(prefill): allow explicit routed-only staging for large chunks - [`85049da`](https://github.com/Niko1221/Strata/commit/85049dac34472eecf2ad45ce8248d3acc1a8931f) WSL2: survive the driver's ~1 GiB pinned host budget with 3 GPUs - [`2152c8f`](https://github.com/Niko1221/Strata/commit/2152c8fb3fbefdcf71c6016fbf5ba379e066010a) Show prefill speed alongside decode speed in dashboard - [`f2b5b1c`](https://github.com/Niko1221/Strata/commit/f2b5b1c665e5554d9af6998fb3d501cc8f607ee5) setup: the 3-bit models' 262K context is counted against RAM, not a fixed 90 GB - [`853aa46`](https://github.com/Niko1221/Strata/commit/853aa465585a7a8b699be0178e620e42fddbfa1a) generate: zero session state for a native pack before the prompt path - [`9086c36`](https://github.com/Niko1221/Strata/commit/9086c36bb2910f20dea31bc8e9818e202afc892f) tests: bitwise check of native_mmvq's multi_exact contract, with a negative control (#148; CMake on the backend variables, CUDA-only) - [`ec64796`](https://github.com/Niko1221/Strata/commit/ec647965e6a4e0d93dd6c04781652d23a29c4cdf) generate: the session state is zeroed for every pack in CLI generate mode (#167 follow-up); no .pi/ ignore line - [`89d423f`](https://github.com/Niko1221/Strata/commit/89d423f48159d215a83082601bd5aae64c97ab0f) A fatal CUDA fault in the prompt path exits at once instead of hanging until the watchdog (#224); CMake warns when sm_120 is built with CUDA < 13.0 (#220, #224); iq_pack writes native_experts.txt under a temporary name, so a stop part-way leaves no partial pack (#172) ### 📊 Changes **11 files changed** (+937 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/README.md` (+131 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/bench-prefill32k.out` (+30 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/bench.out` (+30 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/bench.py` (+159 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/config.json` (+57 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/conversation_cache_demo.py` (+79 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/demo.json` (+57 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/demo.out` (+7 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/needles.json` (+83 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/needles.out` (+10 -0) ➕ `bench/results/2026-10-02-community-rtx-5090-iq3s/runs-prefill32k.json` (+294 -0) </details> ### 📄 Description Community benchmark report under `bench/results/2026-10-02-community-rtx-5090-iq3s/`, results only (no engine changes), in the `docs/COMMUNITY_BENCHMARKS.md` format. **Hardware:** RTX 5090 32 GB (Windows 11, WDDM, driver 617.14). The 4K desktop sits on a second GPU, so the 5090 carries no graphics clients — relevant to #279: `--vram-reserve-mib 100` shows no stalls here. Ryzen 9 9950X3D (AVX-512), 96 GB RAM, NVMe. **Software:** engine 0.1.33 release binary (BUILD.json: CUDA 13.0, sm_75/86/89/120+PTX), serve wrapper 0.1.30. **Model:** Qwen3.8-Flash-Next GSQ-RCO **IQ3_S** (2 GGUF shards + PLE), MTP `rt`, shipped expert profile, vision on CPU (16 threads). **Configuration:** `--expert-cache auto --prefill auto:32768 --spec 4 --spec-min-p 0.70 --mtp rt --max-context 262144 --kv int8 --kv-resident 65536 --vram-reserve-mib 100 --pcie-frac 0.35 --conversation-cache-mib 32768 --conversation-cache-slots 8`, `fit_max_tokens` on. Expert cache 12,439 slots / 23.61 GiB. Full config in `config.json`. **Findings:** 1. Speed sweep (community method: fresh prompt per run — `cache_n = 0` in every measured run — greedy, 256 out, 1 warm-up + 3): prefill **999 / 2,439 / 5,045 / 6,004 tok/s** at 1K/4K/32K/128K; decode **144 / 149 / 142 / 125**; drafts accepted 75-76%. 2. **A/B of `--prefill auto:32768`** (the `auto:32768` form from the help; PR #282's idea): 32K 4,168 -> **5,045 (+21%)**, 128K 4,450 -> **6,004 (+35%)**. Larger than #282's +15% at IQ2_XS — consistent with their note that bigger experts gain more. Decode unchanged. 3. **`needle_bench.py` 9 of 9 found** at 32k/128k/256k x depths 10/50/90 — the 256k rows are **261,669-261,670 prompt tokens**, the edge of the 262,144 window, on one 5090. 4. **Conversation-cache demo** (`conversation_cache_demo.py`): the engine default is off (`--conversation-cache-mib 0`, 4 slots). With 32 GiB / 8 slots, follow-ups on two interleaved ~65k-token conversations cost **0.6-1.2 s instead of 11-13 s (10-20x)**; the engine restores 66,251 tokens in 82 ms and a live 160,978-token agent session in 186 ms; after an LRU eviction the partial path still reused 30,560 tokens and read 25,500 fresh at 5,002 tok/s. Parked bytes ~ 30 KB/token; 8 conversations (largest 162k tokens, 3.85 GB) sat in ~20.8 GB. 5. Observation: with `auto:32768` the engine warns "0 MiB of VRAM free with everything loaded — add `--vram-reserve-mib 612`". The prompt-path loan (7,736 slots / 14.64 GiB) peaks during prompt processing; idle free is 485 MiB and no stalls appeared across the full sweep. Is the warning conservative for this shape, or should the loan cap account for the reserve? **Limitations:** one machine, single stream, greedy, prompts built from repo text; TTFT measured client-side on a FIFO server (includes queue time); the baseline per-run JSON was overwritten by the A/B run (its per-run lines are in `bench.out`); no quality suite beyond the needle checks. Measurements and write-up put together with Claude Code on my machine and checked by me. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2641
No description provided.