[GH-ISSUE #5142] [Benchmark] RX 7900 XTX (Win11): stock 0.1.55 x4 + branch oct3/KV probe, Windows lessons #2408

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

Originally created by @raufaser on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5142

Results PR: https://github.com/Niko1221/Strata/pull/5141 (four results-only folders, template READMEs). Related: #4736 (same XXS config on 0.1.54), #4954.

What was measured

Machine: Ryzen 9 7900X, 63 GB RAM, RX 7900 XTX 24 GB (gfx1100, HIP device 0), Microsoft Windows 11 Pro version 10.0.26200, driver 32.0.32015.12012. GPU tuning (recorded variable, Adrenalin): max clock 3000 MHz, 1000 mV (stock voltage is 1150 mV).

Two clean-room programs on 2026-11-03, same evening, same tuning:

A. Stock engine 0.1.55, strata bench run, track default (results folders in the linked PR):

Arm Launch Prompt 4K / 16K tok/s Decode short / 4K / 16K tok/s Sanity
XXS --model IQ3_XXS --context 128k --kv int8 --vision off 1077.6 / 1339.0 87.7 / 73.4 / 78.2 12/12
Coder IQ1_M --family coder --model IQ1_M --context 128k --kv int8 --vision off 1816.9 / 1894.3 85.6 / 83.3 / 75.8 12/12
Swift XXS --family swift --model IQ3_XXS --context 128k --kv int8 --vision off 1071.4 / 1335.7 83.7 / 83.1 / 85.5 12/12
IQ3_S (vision on) --model IQ3_S --context 128k --kv int8 839.5 / 1073.8 61.7 / 57.9 / 58.0 12/12

21/21 requests each. Beats the published #4736 numbers (0.1.54) on the identical XXS config, so 0.1.55 >= 0.1.54 here.

B. Branch engine (pr/oct3-gfx1100 @ e243df39, TheRock 10.2.0a20260930 build, table tools/hip/gfx1100-hipblaslt-100500.txt), agent-shaped probe: ~9.65K-token prompt (one fixed ~35-token paragraph x274 plus a varying one-line instruction, prompt_n 9646-9660), max_tokens: 1500, temperature: 0, warm-up 1x Say OK. then 3 measured runs, third run counts, cached_tokens: 0 verified every run (usage.prompt_tokens_details):

Arm Prefill Decode
IQ3_S oct3 256K 1299.4 50.1
XXS oct3 256K 1180.6 61.8
Coder oct3 256K 1600.4 75.1
Swift oct3 256K 1390.2 60.9
XXS 256K int8 / q4_0 / k8v4 / fp16 1180.8 / 1203.8 / 1183.1 / 1120.6 60.0 / 59.0 / 60.8 / 57.6

Decode moves with output content (e.g. XXS reps: 45.1 / 55.6 / 61.8); prefill is the stable comparator. Full per-request data in the linked results folders (A) and available on request (B).

Real-life table (what these numbers mean in use)

Use Shape Measured
Chat turn ~80-token prompt, short answer 60-90 tok/s decode (A short case)
Agent turn ~9.6K prompt, ~1K reasoning+answer ~1200-1600 prefill, ~50-75 decode (B)
Long read + long write 5.5K prompt / 16.5K decode 781 prefill / 37.2 decode (web UI, branch 10.1-era)

Lessons (each cost at least one failed load)

  1. Commit, not VRAM, is the Windows limit. 63 GB RAM + 25.6 GB pagefile vs 47 GB pinned arena + ~20 GB VRAM-backed commit = 0.5 GB free, then failures wearing four masks (cudaHostRegister FAILED, 40 KB alloc refused, profile-fill unspecified launch failure, shrink loop 5356->452). Fix: --mmap-experts (--set mmap-experts=1 on launch; setup flag --low-ram mmap preferred). Update: the IQ3_S 128K/int8/vision-on load that was expected to fail loaded fine on 0.1.55 this evening — the limit moved or setup now handles it.
  2. The Adrenalin driver's System32\amdhip64_7.dll shadows TheRock's (loader order: app dir > System32 > PATH), and the 10.2-built engine dies with 0xC0000139 on the driver's copy. Fix: copy TheRock 10.2's amdhip64_7.dll next to strata.exe, and pin HIP_PATH/ROCM_PATH to the 10.2 dist in the serve config. Repro: strata.exe --version dies with -1073741511 under a 10.2-first PATH without the copy, prints 0.1.56 with it.
  3. Prefix cache poisons A/B. Identical back-to-back prompts report garbage prefill (seen: 1.1 tok/s). Vary the instruction per run, keep token count fixed, verify cached_tokens == 0 (usage.prompt_tokens_details).
  4. Warm-up takes 2-3 long prompts after a restart (profile fill thrashes the page cache: ~550 -> ~800 -> ~1170). Never record runs 1-2.
  5. Model-family details don't transfer: Swift needs ple shard 1 (holds PLE + per_layer_token_embd), stock needs shard 2; Coder needs expert-profile-coder.bin (48x256) not the stock 48x512. Setup finds these by scan; hand-copied configs don't.
  6. --prefill auto:32768 can commit-crash Windows (engine warning cites #1630; chunks >=8192 jump commit ~70 GB). Bare --prefill auto (stops at 6144) is safe; seen on coder+oct3.
  7. strata launch has no --vram-reserve-mib / --expert-profile / --mmap-experts (setup-level; reserve 2048 baked in at install). Engine-only keys go through --set key=value; accepted ones appear verbatim in the engine command line at the top of launch/*.engine.log.
  8. This box is bandwidth-bound, not clock-bound: 2500->3000 MHz bought +4% prefill / +8% decode; 3500 MHz at 1000 mV just bounces clocks (variance up, decode -12%).

Command library

:: stock bench (Terminal's bundled python, run from terminal\current)
python\python.exe strata.py launch --model IQ3_XXS --context 128k --kv int8 --vision off --yes --no-tui
python\python.exe strata.py bench run --url http://127.0.0.1:8080 --track default --track-notes "<release>, <setup choices>, RX 7900 XTX Windows"
python\python.exe strata.py launch --stop

:: branch serve (any shell; cwd must be the terminal folder for -m serve.server)
<term>\python\python.exe -m serve.server --engine strata --config "<config.json>" --host 127.0.0.1 --port 8080 --parallel 1
curl -s http://127.0.0.1:8080/health          :: loop until "loaded": true (1-5 min cold, ~15 s warm)
powershell -ExecutionPolicy Bypass -Command "Get-Process python,strata"   :: PIDs, then taskkill //F //PID <pid>
:: NEVER taskkill //IM python.exe. Confirm death: curl must refuse AND no PIDs remain.

:: rebuild branch engine after a tip move (needs VS BuildTools + ninja; flags from the branch docs)
call "C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
set "ROCM=<TheRock dist>"; set "BUILD=<build dir>"
cmake -G Ninja -S <src> -B %BUILD% -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_BUILD_TESTS=OFF -DSTRATA_PREFILL_MMQ=ON -DSTRATA_NATIVE_EXPERTS=ON -DSTRATA_PORTABLE=ON "-DCMAKE_HIP_ARCHITECTURES=gfx1100" "-DCMAKE_C_COMPILER=%ROCM%/lib/llvm/bin/clang.exe" "-DCMAKE_CXX_COMPILER=%ROCM%/lib/llvm/bin/clang++.exe" "-DCMAKE_HIP_COMPILER=%ROCM%/lib/llvm/bin/clang++.exe" "-DCMAKE_HIP_COMPILER_ROCM_ROOT=%ROCM%" "-DCMAKE_PREFIX_PATH=%ROCM%" "-DCMAKE_HIP_FLAGS=--rocm-path=%ROCM% --rocm-device-lib-path=%ROCM%/lib/llvm/amdgcn/bitcode"
cmake --build %BUILD% --target strata strata-device

Branch serve recipe (all B arms): --kv-resident 65536 --prefill auto:32768 --spec 5 --spec-min-p 0.5 --parallel 1 --mmap-experts --vram-reserve-mib 2048, env STRATA_PA_OCT/HIP_WMMA/RDNA_Q6K/GR_RDNA/SELECT_WMMA/PF_FUSED/PF_GEMM/PF_PAD/PF_HCDOWN=1, STRATA_SPEC_CUM=0.4, STRATA_HIPBLASLT_TUNING=<100500 table>, plus HIP_PATH/ROCM_PATH = the 10.2 dist and the DLL copy from lesson 2.

Build provenance (so nobody re-derives it)

destroyor/Strata@pr/oct3-gfx1100 @ e243df39 (author's v0.2.10-era rebase; oct3 kernel re-ported as prompt_attn_oct_kernel). 10.1 build in build-hip-win/ (TheRock 10.1.0, table 100401); 10.2-nightly house stack in build-hip-win-102n/ (TheRock 10.2.0a20260930, table 100500). build-hip-win-102/ is the rc1 negative control (table 100500 measured -26% vs plain hipBLAS on rc1, vindicated on nightly): do not serve, do not delete. The "10.2 regression" was the rc1 build, not the runtime line: nightly 10.2 ~= 10.1 within 1% (1172 vs 1183 prefill).

Reproduction status: Measured locally (all runs on the machine above, 2026-11-03).

Originally created by @raufaser on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5142 Results PR: https://github.com/Niko1221/Strata/pull/5141 (four results-only folders, template READMEs). Related: #4736 (same XXS config on 0.1.54), #4954. ## What was measured Machine: Ryzen 9 7900X, 63 GB RAM, RX 7900 XTX 24 GB (gfx1100, HIP device 0), Microsoft Windows 11 Pro version 10.0.26200, driver 32.0.32015.12012. GPU tuning (recorded variable, Adrenalin): max clock 3000 MHz, 1000 mV (stock voltage is 1150 mV). Two clean-room programs on 2026-11-03, same evening, same tuning: **A. Stock engine 0.1.55, `strata bench run`, track default** (results folders in the linked PR): | Arm | Launch | Prompt 4K / 16K tok/s | Decode short / 4K / 16K tok/s | Sanity | |---|---|---|---|---| | XXS | `--model IQ3_XXS --context 128k --kv int8 --vision off` | 1077.6 / 1339.0 | 87.7 / 73.4 / 78.2 | 12/12 | | Coder IQ1_M | `--family coder --model IQ1_M --context 128k --kv int8 --vision off` | 1816.9 / 1894.3 | 85.6 / 83.3 / 75.8 | 12/12 | | Swift XXS | `--family swift --model IQ3_XXS --context 128k --kv int8 --vision off` | 1071.4 / 1335.7 | 83.7 / 83.1 / 85.5 | 12/12 | | IQ3_S (vision on) | `--model IQ3_S --context 128k --kv int8` | 839.5 / 1073.8 | 61.7 / 57.9 / 58.0 | 12/12 | 21/21 requests each. Beats the published #4736 numbers (0.1.54) on the identical XXS config, so 0.1.55 >= 0.1.54 here. **B. Branch engine (`pr/oct3-gfx1100` @ `e243df39`, TheRock 10.2.0a20260930 build, table `tools/hip/gfx1100-hipblaslt-100500.txt`), agent-shaped probe: ~9.65K-token prompt (one fixed ~35-token paragraph x274 plus a varying one-line instruction, `prompt_n` 9646-9660), `max_tokens: 1500`, `temperature: 0`, warm-up 1x `Say OK.` then 3 measured runs, third run counts, `cached_tokens: 0` verified every run (`usage.prompt_tokens_details`):** | Arm | Prefill | Decode | |---|---|---| | IQ3_S oct3 256K | 1299.4 | 50.1 | | XXS oct3 256K | 1180.6 | 61.8 | | Coder oct3 256K | 1600.4 | 75.1 | | Swift oct3 256K | 1390.2 | 60.9 | | XXS 256K int8 / q4_0 / k8v4 / fp16 | 1180.8 / 1203.8 / 1183.1 / 1120.6 | 60.0 / 59.0 / 60.8 / 57.6 | Decode moves with output content (e.g. XXS reps: 45.1 / 55.6 / 61.8); prefill is the stable comparator. Full per-request data in the linked results folders (A) and available on request (B). ## Real-life table (what these numbers mean in use) | Use | Shape | Measured | |---|---|---| | Chat turn | ~80-token prompt, short answer | 60-90 tok/s decode (A short case) | | Agent turn | ~9.6K prompt, ~1K reasoning+answer | ~1200-1600 prefill, ~50-75 decode (B) | | Long read + long write | 5.5K prompt / 16.5K decode | 781 prefill / 37.2 decode (web UI, branch 10.1-era) | ## Lessons (each cost at least one failed load) 1. **Commit, not VRAM, is the Windows limit.** 63 GB RAM + 25.6 GB pagefile vs 47 GB pinned arena + ~20 GB VRAM-backed commit = 0.5 GB free, then failures wearing four masks (`cudaHostRegister FAILED`, 40 KB alloc refused, profile-fill `unspecified launch failure`, shrink loop 5356->452). Fix: `--mmap-experts` (`--set mmap-experts=1` on launch; setup flag `--low-ram mmap` preferred). Update: the IQ3_S 128K/int8/vision-on load that was expected to fail **loaded fine** on 0.1.55 this evening — the limit moved or setup now handles it. 2. **The Adrenalin driver's `System32\amdhip64_7.dll` shadows TheRock's** (loader order: app dir > System32 > PATH), and the 10.2-built engine dies with `0xC0000139` on the driver's copy. Fix: copy TheRock 10.2's `amdhip64_7.dll` next to `strata.exe`, and pin `HIP_PATH`/`ROCM_PATH` to the 10.2 dist in the serve config. Repro: `strata.exe --version` dies with `-1073741511` under a 10.2-first PATH without the copy, prints `0.1.56` with it. 3. **Prefix cache poisons A/B.** Identical back-to-back prompts report garbage prefill (seen: 1.1 tok/s). Vary the instruction per run, keep token count fixed, verify `cached_tokens == 0` (`usage.prompt_tokens_details`). 4. **Warm-up takes 2-3 long prompts after a restart** (profile fill thrashes the page cache: ~550 -> ~800 -> ~1170). Never record runs 1-2. 5. **Model-family details don't transfer:** Swift needs ple shard **1** (holds PLE + `per_layer_token_embd`), stock needs shard 2; Coder needs `expert-profile-coder.bin` (48x256) not the stock 48x512. Setup finds these by scan; hand-copied configs don't. 6. **`--prefill auto:32768` can commit-crash Windows** (engine warning cites #1630; chunks >=8192 jump commit ~70 GB). Bare `--prefill auto` (stops at 6144) is safe; seen on coder+oct3. 7. **`strata launch` has no `--vram-reserve-mib` / `--expert-profile` / `--mmap-experts`** (setup-level; reserve 2048 baked in at install). Engine-only keys go through `--set key=value`; accepted ones appear verbatim in the engine command line at the top of `launch/*.engine.log`. 8. **This box is bandwidth-bound, not clock-bound:** 2500->3000 MHz bought +4% prefill / +8% decode; 3500 MHz at 1000 mV just bounces clocks (variance up, decode -12%). ## Command library ```cmd :: stock bench (Terminal's bundled python, run from terminal\current) python\python.exe strata.py launch --model IQ3_XXS --context 128k --kv int8 --vision off --yes --no-tui python\python.exe strata.py bench run --url http://127.0.0.1:8080 --track default --track-notes "<release>, <setup choices>, RX 7900 XTX Windows" python\python.exe strata.py launch --stop :: branch serve (any shell; cwd must be the terminal folder for -m serve.server) <term>\python\python.exe -m serve.server --engine strata --config "<config.json>" --host 127.0.0.1 --port 8080 --parallel 1 curl -s http://127.0.0.1:8080/health :: loop until "loaded": true (1-5 min cold, ~15 s warm) powershell -ExecutionPolicy Bypass -Command "Get-Process python,strata" :: PIDs, then taskkill //F //PID <pid> :: NEVER taskkill //IM python.exe. Confirm death: curl must refuse AND no PIDs remain. :: rebuild branch engine after a tip move (needs VS BuildTools + ninja; flags from the branch docs) call "C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Auxiliary\Build\vcvars64.bat" set "ROCM=<TheRock dist>"; set "BUILD=<build dir>" cmake -G Ninja -S <src> -B %BUILD% -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DSTRATA_BUILD_TESTS=OFF -DSTRATA_PREFILL_MMQ=ON -DSTRATA_NATIVE_EXPERTS=ON -DSTRATA_PORTABLE=ON "-DCMAKE_HIP_ARCHITECTURES=gfx1100" "-DCMAKE_C_COMPILER=%ROCM%/lib/llvm/bin/clang.exe" "-DCMAKE_CXX_COMPILER=%ROCM%/lib/llvm/bin/clang++.exe" "-DCMAKE_HIP_COMPILER=%ROCM%/lib/llvm/bin/clang++.exe" "-DCMAKE_HIP_COMPILER_ROCM_ROOT=%ROCM%" "-DCMAKE_PREFIX_PATH=%ROCM%" "-DCMAKE_HIP_FLAGS=--rocm-path=%ROCM% --rocm-device-lib-path=%ROCM%/lib/llvm/amdgcn/bitcode" cmake --build %BUILD% --target strata strata-device ``` Branch serve recipe (all B arms): `--kv-resident 65536 --prefill auto:32768 --spec 5 --spec-min-p 0.5 --parallel 1 --mmap-experts --vram-reserve-mib 2048`, env `STRATA_PA_OCT/HIP_WMMA/RDNA_Q6K/GR_RDNA/SELECT_WMMA/PF_FUSED/PF_GEMM/PF_PAD/PF_HCDOWN=1`, `STRATA_SPEC_CUM=0.4`, `STRATA_HIPBLASLT_TUNING=<100500 table>`, plus `HIP_PATH`/`ROCM_PATH` = the 10.2 dist and the DLL copy from lesson 2. ## Build provenance (so nobody re-derives it) `destroyor/Strata@pr/oct3-gfx1100` @ `e243df39` (author's v0.2.10-era rebase; oct3 kernel re-ported as `prompt_attn_oct_kernel`). 10.1 build in `build-hip-win/` (TheRock 10.1.0, table 100401); 10.2-nightly house stack in `build-hip-win-102n/` (TheRock 10.2.0a20260930, table 100500). `build-hip-win-102/` is the rc1 negative control (table 100500 measured -26% vs plain hipBLAS on rc1, vindicated on nightly): do not serve, do not delete. The "10.2 regression" was the rc1 *build*, not the runtime line: nightly 10.2 ~= 10.1 within 1% (1172 vs 1183 prefill). Reproduction status: Measured locally (all runs on the machine above, 2026-11-03).
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658857072 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
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#2408
No description provided.