[GH-ISSUE #5377] [Engine] 0.1.50 and later decode ~4x slower than 0.1.48 on sm_89 (RTX 6000 Ada) under Windows - bisected to v0.2.5, persists through 0.1.57 #3206

Open
opened 2026-11-07 14:38:52 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ShinjiOhnishi on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5377

Summary

On a Windows 11 PC with an RTX 6000 Ada Generation (sm_89), serving Qwen3.8-Flash-Next IQ3_S (~78 GB, RAM expert arena on a 48 GB card), decode collapsed from ~120-126 tok/s (engine 0.1.47/0.1.48) to ~25-36 tok/s (engine 0.1.50 and every engine since, up to 0.1.57). Prompt speed, TTFT, sanity and draft acceptance are unchanged or better. I bisected the engine binaries and instrumented the decode path with STRATA_DECODE_TIMING=1; the whole gap sits in per-layer host CPU time inside verify windows, not in expert supply.

Hardware / setup

  • NVIDIA RTX 6000 Ada Generation 48 GB (sm_89), driver 580.x, CUDA 13 engine packages
  • Intel Xeon w9-3495X (56c), 127 GB RAM, Windows 10.0.26200
  • PCIe probe at engine start: 25.1 GB/s host->device
  • Model: Qwen3.8-Flash-Next IQ3_S (ISTA-DASLab), native pack + --ple-gguf, --expert-cache auto, --kv int8 --kv-resident 32768, --mtp ... --spec 4, parallel: 2, --vram-reserve-mib 16384, max-context 131072
  • Started via python -m serve.server with an identical run config; only the engine binary changes between arms (0.1.47 … 0.1.57 from the official signed feeds, SHA-256 verified)

Bisect (official strata bench run, standard-v1, median of 3)

engine release decode short tok/s decode 16k-prompt tok/s prefill 16k tok/s sanity
0.1.47 0.2.2 125.9 119.1 4013 12/12
0.1.48 0.2.3 125.2 (warm rounds 115-148) 125.5 3744 12/12
0.1.50 0.2.5 31.6 34.1 3795 12/12
0.1.52 0.2.7 29.5 34.1 3833 12/12
0.1.57 0.2.11 33.3 34.5 3996 12/12

0.2.4 did not rebuild the Qwen engine packages (identical files to 0.1.48), so the regression landed exactly in the 0.1.50 rebuild shipped with v0.2.5. Since then it persists through 0.1.57.

What is NOT the problem

  • expert supply: decode expert cache hit rate is higher on the slow engines (92-96% VRAM hits vs 86-92% on 0.1.47); PCIe reads are 0.1-0.4% of routed lookups
  • speculation: drafts accepted 65-86%, avg ~1.9-3.1 tokens/window, MTP draft time 1.5-2.1 ms/window
  • PLE: STRATA_PLE_AUTO_RAM=0 (direct read probe 43k-68k rows/s "fine") changes nothing
  • prefill / TTFT / arena / KV streaming: normal or improved

Where the time goes (STRATA_DECODE_TIMING=1, 0.1.57)

strata decode timing: 103 windows, avg T 3.15, 2.79 tokens/window,
  92.30 ms/window = adapt wait 1.34
    + verify 88.78 (GPU-reach wait 9.81
        + per-layer host 78.09 [plan 0.23 actq 0.24 jobs 0.04 CPU 77.54]
        + stage 0.02)
    + commit/emit 0.18 + draft 1.92 + adapt join 0.07
  per layer-window: CPU experts 3.82 (4.42 entries), VRAM hits 26.79, PCIe 0.25; 21.6 swaps/window
  • The dominant term is per-layer host CPU during verify: 45-87 ms/window (0.1.47's own shutdown stats for the whole window were ~24 ms at 126 tok/s).
  • Forcing the CPU expert share to zero (STRATA_BATCH_DECODE_SHARE=0) drops CPU-expert work to 3.82 ms/window but the per-layer host CPU stays at 66-87 ms and decode stays ~26 tok/s - so this is not the CPU/PCIe expert split policy; it is per-layer host-side overhead in the batch/verify path itself (the Windows host-arena path; cf. #5037's note that the parallel-slot/GDN stacks were never measured on "Windows (own host-arena path)").
  • Occasional windows still run at the old speed: within one slow bench run, sanity-R3 hit 135.9 tok/s and its telemetry window shows 47.35 ms/window, per-layer host 33.38 [CPU 32.92] - i.e. the same engine on the same model occasionally falls back to a ~2.5x cheaper verify path, which suggests a mode/state the engine gets stuck out of, not a static kernel-table mis-tune.

Switches tried on 0.1.57 (bench each, none restored speed)

switch decode tok/s
(none, defaults) 32.2
STRATA_PLE_AUTO_RAM=0 33.6 / 25.8 (RAM vs direct, both ~30 band)
STRATA_MMVQ_IL_89=0 33.3
STRATA_DEFAULTS=026 32.2
STRATA_FUSE_DECODE=0 + STRATA_ADAPT_ASYNC=0 27.6
STRATA_BATCH_DECODE_SHARE=0 27.5
STRATA_VERIFY_ASYNC_LAUNCH=1 + STRATA_SPEC_ADAPT_SM86=0 23.2 (per-layer host CPU still 78-90 ms)

STRATA_DEFAULTS=026 does not cover v0.2.5-era changes, which fits the 0.1.50 boundary.

v0.2.5 items that plausibly contain the regression

The v0.2.5 notes list three decode-path changes on by default, and 0.1.50 was a full rebuild of the Qwen packages:

  • "Fewer GPU launches per layer" (per-layer batching/merge in the decode/verify path)
  • "on one CUDA GPU with all experts in RAM, the engine now tries the asynchronous tier itself" (auto probe; our PC is exactly "one CUDA GPU with all experts in RAM")
  • "RTX 40 cards (sm_89) take the sm_86 package" (kernel-table routing for sm_89; cf. #3659, #3453 about sm_86 switch sets on Ada)
  • #4778 (sm_89 Windows decode -7..-14% 0.1.52->0.1.54, IQ3_S) - same card family, milder, different boundary
  • #5328 (Ada sm_89 0.1.57 vs 0.1.56 warning) - same family
  • #5115, #4841 - decode regressions on other arches around 0.1.54-0.1.56
  • #5037 - states the parallel-slot / GDN stacks were validated only on Linux CUDA, not on the Windows host-arena path
  • #3245 - "log which batch-row switches are on at start-up" (would have made this hunt much shorter)

Asks

  1. Gate the v0.2.5 per-layer batching (or whatever drives the verify per-layer host CPU) so sm_89 on Windows can fall back, and/or measure the sm_86 switch set on real Ada hardware under Windows before defaulting it (#3659's ask, same root).
  2. If a documented env switch exists to restore the 0.1.48 verify path, please note it in the release notes; none of the STRATA_* switches above helped.
  3. Happy to re-run any A/B matrix (0.1.48 vs 0.1.50 boots are ~4 min each) - I have the full standard-v1 reports for all arms.
Originally created by @ShinjiOhnishi on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5377 ## Summary On a Windows 11 PC with an **RTX 6000 Ada Generation (sm_89)**, serving Qwen3.8-Flash-Next **IQ3_S** (~78 GB, RAM expert arena on a 48 GB card), decode collapsed from **~120-126 tok/s (engine 0.1.47/0.1.48)** to **~25-36 tok/s (engine 0.1.50 and every engine since, up to 0.1.57)**. Prompt speed, TTFT, sanity and draft acceptance are unchanged or better. I bisected the engine binaries and instrumented the decode path with `STRATA_DECODE_TIMING=1`; the whole gap sits in **per-layer host CPU time inside verify windows**, not in expert supply. ## Hardware / setup - NVIDIA RTX 6000 Ada Generation 48 GB (sm_89), driver 580.x, CUDA 13 engine packages - Intel Xeon w9-3495X (56c), 127 GB RAM, Windows 10.0.26200 - PCIe probe at engine start: 25.1 GB/s host->device - Model: Qwen3.8-Flash-Next IQ3_S (ISTA-DASLab), native pack + `--ple-gguf`, `--expert-cache auto`, `--kv int8 --kv-resident 32768`, `--mtp ... --spec 4`, `parallel: 2`, `--vram-reserve-mib 16384`, max-context 131072 - Started via `python -m serve.server` with an identical run config; **only the engine binary changes between arms** (0.1.47 … 0.1.57 from the official signed feeds, SHA-256 verified) ## Bisect (official `strata bench run`, standard-v1, median of 3) | engine | release | decode short tok/s | decode 16k-prompt tok/s | prefill 16k tok/s | sanity | |---|---|---|---|---|---| | 0.1.47 | 0.2.2 | 125.9 | 119.1 | 4013 | 12/12 | | 0.1.48 | 0.2.3 | 125.2 (warm rounds 115-148) | 125.5 | 3744 | 12/12 | | **0.1.50** | **0.2.5** | **31.6** | **34.1** | 3795 | 12/12 | | 0.1.52 | 0.2.7 | 29.5 | 34.1 | 3833 | 12/12 | | 0.1.57 | 0.2.11 | 33.3 | 34.5 | 3996 | 12/12 | 0.2.4 did not rebuild the Qwen engine packages (identical files to 0.1.48), so the regression landed **exactly in the 0.1.50 rebuild shipped with v0.2.5**. Since then it persists through 0.1.57. ## What is NOT the problem - expert supply: decode expert cache hit rate is *higher* on the slow engines (92-96% VRAM hits vs 86-92% on 0.1.47); PCIe reads are 0.1-0.4% of routed lookups - speculation: drafts accepted 65-86%, `avg ~1.9-3.1 tokens/window`, MTP draft time 1.5-2.1 ms/window - PLE: `STRATA_PLE_AUTO_RAM=0` (direct read probe 43k-68k rows/s "fine") changes nothing - prefill / TTFT / arena / KV streaming: normal or improved ## Where the time goes (`STRATA_DECODE_TIMING=1`, 0.1.57) ``` strata decode timing: 103 windows, avg T 3.15, 2.79 tokens/window, 92.30 ms/window = adapt wait 1.34 + verify 88.78 (GPU-reach wait 9.81 + per-layer host 78.09 [plan 0.23 actq 0.24 jobs 0.04 CPU 77.54] + stage 0.02) + commit/emit 0.18 + draft 1.92 + adapt join 0.07 per layer-window: CPU experts 3.82 (4.42 entries), VRAM hits 26.79, PCIe 0.25; 21.6 swaps/window ``` - The dominant term is **per-layer host CPU during verify: 45-87 ms/window** (0.1.47's own shutdown stats for the whole window were ~24 ms at 126 tok/s). - Forcing the CPU expert share to zero (`STRATA_BATCH_DECODE_SHARE=0`) drops CPU-expert work to 3.82 ms/window but the per-layer host CPU stays at 66-87 ms and decode stays ~26 tok/s - so this is **not** the CPU/PCIe expert split policy; it is per-layer host-side overhead in the batch/verify path itself (the Windows host-arena path; cf. #5037's note that the parallel-slot/GDN stacks were never measured on "Windows (own host-arena path)"). - Occasional windows still run at the old speed: within one slow bench run, sanity-R3 hit **135.9 tok/s** and its telemetry window shows `47.35 ms/window, per-layer host 33.38 [CPU 32.92]` - i.e. the same engine on the same model occasionally falls back to a ~2.5x cheaper verify path, which suggests a mode/state the engine gets stuck out of, not a static kernel-table mis-tune. ## Switches tried on 0.1.57 (bench each, none restored speed) | switch | decode tok/s | |---|---| | (none, defaults) | 32.2 | | `STRATA_PLE_AUTO_RAM=0` | 33.6 / 25.8 (RAM vs direct, both ~30 band) | | `STRATA_MMVQ_IL_89=0` | 33.3 | | `STRATA_DEFAULTS=026` | 32.2 | | `STRATA_FUSE_DECODE=0` + `STRATA_ADAPT_ASYNC=0` | 27.6 | | `STRATA_BATCH_DECODE_SHARE=0` | 27.5 | | `STRATA_VERIFY_ASYNC_LAUNCH=1` + `STRATA_SPEC_ADAPT_SM86=0` | 23.2 (per-layer host CPU still 78-90 ms) | `STRATA_DEFAULTS=026` does not cover v0.2.5-era changes, which fits the 0.1.50 boundary. ## v0.2.5 items that plausibly contain the regression The v0.2.5 notes list three decode-path changes on by default, and 0.1.50 was a full rebuild of the Qwen packages: - "Fewer GPU launches per layer" (per-layer batching/merge in the decode/verify path) - "on one CUDA GPU with all experts in RAM, the engine now tries the asynchronous tier itself" (auto probe; our PC is exactly "one CUDA GPU with all experts in RAM") - "RTX 40 cards (sm_89) take the sm_86 package" (kernel-table routing for sm_89; cf. #3659, #3453 about sm_86 switch sets on Ada) ## Related issues - #4778 (sm_89 Windows decode -7..-14% 0.1.52->0.1.54, IQ3_S) - same card family, milder, different boundary - #5328 (Ada sm_89 0.1.57 vs 0.1.56 warning) - same family - #5115, #4841 - decode regressions on other arches around 0.1.54-0.1.56 - #5037 - states the parallel-slot / GDN stacks were validated only on Linux CUDA, not on the Windows host-arena path - #3245 - "log which batch-row switches are on at start-up" (would have made this hunt much shorter) ## Asks 1. Gate the v0.2.5 per-layer batching (or whatever drives the verify per-layer host CPU) so sm_89 on Windows can fall back, and/or measure the sm_86 switch set on real Ada hardware under Windows before defaulting it (#3659's ask, same root). 2. If a documented env switch exists to restore the 0.1.48 verify path, please note it in the release notes; none of the `STRATA_*` switches above helped. 3. Happy to re-run any A/B matrix (0.1.48 vs 0.1.50 boots are ~4 min each) - I have the full standard-v1 reports for all arms.
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#3206
No description provided.