mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5148] [Engine] Windows HIP gfx1201: IQ3_S decode stuck at ~30 tok/s — CPU pool "jobs" wait on the FileExpertSource path (IQ3_XXS arena: 90 tok/s); plus two start failures #3060
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3060
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jordan01236 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5148
Summary
On an RX 9070 XT (16 GB) + 64 GB RAM under Windows, IQ3_XXS decodes at 78–98 tok/s with the full expert arena, but IQ3_S is stuck at ~30 tok/s in every configuration I could start.
STRATA_DECODE_TIMING=1shows the difference is almost entirely the CPU expert-pooljobswait (37–53 ms/window for IQ3_S vs 0.04 ms for IQ3_XXS). IQ3_S's 46.8 GiB arena doesn't fit beside Windows on 64 GB, so it runs throughFileExpertSource(--mmap-experts, or--resident-experts), and that path appears to be the bottleneck rather than the GPU kernels, the GPU cache hit rate (~80% for both) or the CPU per-expert cost (42–57 µs for both).While testing I also hit two start failures on engine 0.1.56 (details below):
--resident-expertswith IQ3_S:unspecified launch failureduring the first checkpoint save (worked on 0.1.54).cudaHostRegisterof the whole arena fails, 43 of 50.3 GB get pinned in slices, thenthe embedding buffer failedand the engine exits — rather than falling back to the file path.Environment
windows-x86_64-hip-rx9070, app v0.2.10); also checked on 0.1.54qwen/IQ3_XXSandqwen/IQ3_S(ISTA-DASLab GSQ-RCO), DFlash2 drafter (default)Common launch settings (
strata launch ... --no-tui):Test request: one chat completion, 69-token prompt, 700 tokens out,
reasoning_effort: low,temperature: 0, sent twice.Decode timing, same request, engine 0.1.56
IQ3_XXS (arena,
ArenaExpertSource) — 90–93 tok/s:IQ3_S (
--mmap-experts,FileExpertSource) — 28–32 tok/s:jobsCPUThe PCIe-share calibration reports a similar CPU cost per missed expert for both (
the CPU pool takes 42–57 us per missed expert), so the ~40 ms ofjobsper window looks like time spent getting the expert bytes through the file-backed path rather than compute.What I tried for IQ3_S
--mmap-experts, 256K context, 0.1.54--mmap-experts, 128K, 0.1.54vram-reserve-mib 1024,STRATA_HIPBLASLT_TABLE=on, 0.1.54--resident-experts(42.1 GiB page-locked, "0 blob reads from the file"), 0.1.54adapt-*/spec-min-p/pcie-frac--mmap-experts, 0.1.56 (DFlash2)--pool-cores 1-15(15 workers on SMT siblings), 0.1.56jobsup to 177 ms — worseconversation-cache-mib 512, 0.1.56--resident-experts, 0.1.56Interesting point:
--resident-expertson 0.1.54 removed all file reads but did not improve decode, so it may be theFileExpertSourceCPU path itself (vsArenaExpertSource) rather than page faults. I didn't get aDECODE_TIMINGprofile of resident mode because of failure 1.Failure 1 —
--resident-experts+ IQ3_S on 0.1.56Same flags as the table above plus
--set resident-experts=on(engine args include--mmap-experts --resident-experts --kv-resident 32768 --max-context 131072 --vram-reserve-mib 1024,STRATA_HIPBLASLT_TABLE=on). The same setup worked on 0.1.54.I haven't isolated whether
STRATA_HIPBLASLT_TABLE=onor DFlash2 is involved — happy to rerun with either off.Failure 2 — full arena for IQ3_S on 64 GB (0.1.56)
Expected this to be too tight, but given #4846 (fall back to file reads when RAM is short at the arena), I'd expect a fallback to
--mmap-expertshere instead ofEngineDied.Questions
jobstime on theFileExpertSourcepath expected to be ~1000× the arena path for the same number of CPU experts? Is there a knob (e.g.STRATA_POOL_SPIN_US,STRATA_POOL_UMWAIT,STRATA_ADAPT_OVERLAP_RESIDENT=1) worth trying on Windows?--resident-budget-gib) supported for the native ISTA packs, or only for the Unsloth budget files?Happy to run any build or switch combination and post
STRATA_DECODE_TIMINGoutput.