mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1630] Windows HIP (RX 7900 XTX): a long prompt with --prefill 8192 / auto makes the commit charge jump ~70 GB in one second, the engine dies at the commit limit (0xC0000409); 7500 and below stay flat #655
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#655
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 @rekaXua on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1630
Summary from Opus 5.5
On Windows with the ready-made HIP engine (0.1.41) on an RX 7900 XTX, the first long prompt read with 8192-token
prompt chunks (
--prefill auto, which picks 8192 on this card, or--prefill 8192set by hand) makes the systemcommit charge jump by ~70 GB within one second.
strata.exe's own private bytes do not change, so the allocationis not visible in the process (driver / ROCm side?). The commit limit is then reached, Windows logs "Virtual Memory
Minimum Too Low", and the engine exits with
0xC0000409(once0xC0000005); the server answers 503.With smaller chunks the same prompts read fine and the commit charge stays flat. The threshold is between 7500 and
8192 on this PC.
Short prompts (which do not go through the chunked prompt path) are not affected, which is why this only showed up
with an agent client (OpenCode) sending ~20-30K-token first turns.
Environment
(AMD Software: Adrenalin Edition 26.9.2, 26.20.15.02-260921a1)
32.0.21045.11001
fb58e0d), ready-madestrata-windows-x64-hip.zip0.1.41 (ROCm 10.2.0a20260930,hipBLASLt 100500), Python 3.11.9
docs/ORCA.md(iq_pack.py --compat-bf16).Engine args (only
--prefillchanged between runs):Config:
"gpu": 1,"backend": "hip",STRATA_HIPBLASLT_TUNING=gfx1100-hipblaslt-100500.txt,"fit_max_tokens": true.Measurements
Same request each time: one chat completion with a 26,902-token prompt (
docs/DETAILS.mdtext as the system message),max_tokens64,reasoning_effortnone, fresh engine per row. Commit charge andstrata.exeprivate bytes sampledevery second (
Win32_OperatingSystem,Get-Process); the watcher killedstrata.exeabove 140 GB commit so thePC stayed usable.
--prefillstrata.exeprivateauto(log:prompt chunk auto: 8192 tokens, a 96-slot ring)auto, noSTRATA_HIPBLASLT_TUNING81927500614440962048512A 66,235-token prompt also passed at 6144 (708 tok/s) and 7500 (782 tok/s) with a flat commit charge.
The RX 6900 XT (gfx1030) in the same PC does not show it. Same engine and model, the card's own config
(
"gpu": 0,--max-context 65536, no hipBLASLt table),--prefill 8192: the prompt path borrows 1687 slots(3.42 GiB) and the commit charge stays flat (90.8 -> 91.7 GB at 26,902 tokens, 91.5 -> 91.9 GB at 54,578 tokens),
356-370 tok/s prompt read (114 tok/s at
--prefill 512). So it looks specific to gfx1100 (or to its driverbranch: the two cards run different driver builds, see Environment).
The jump happens within one sampling interval right after the prompt starts, i.e. at the first 8192-token chunk.
Disabling the hipBLASLt tuning table does not change it.
What the logs show
Engine log (
strata-orca-7900xtx.log) right after2357 MiB of VRAM free with everything loaded, with no requestline in between:
(These lines look like a consequence of the device being lost, not the cause: they appear after the commit jump.)
Windows event logs:
memory. Windows is increasing the size of your virtual memory paging file." - 15 s before the first crash.
strata.exe, faulting moduleucrtbase.dll10.0.19041.789, exception0xc0000409(twice), and once
Dbghelp.dll,0xc0000005.Other lines from every start, for context:
Workaround
--prefill 7500(or 6144 for margin) in the config's args. Withautothe engine picks 8192 on this card, so adefault setup on a 24 GB Windows AMD card may hit this on the first long prompt.
Not checked yet
long prompts at 8192).
Related: #1607 (engine dies silently at the Windows commit limit), #1130 (commit limits after allocation failure),
#1520 (Windows prefill staging and RAM).
@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you for the very careful table. In v0.1.42 a bare --prefill auto stops at 6144 tokens on Windows HIP builds (your 6144 row was 645 tok/s with a flat commit charge; 7500 was also flat). A chunk you name yourself is not changed, but 8192 and above now prints a WARNING that it crashed on Windows HIP. We have no 7900 XTX to confirm the root cause, so this is a guard, not a fix of the ~70 GB commit jump; if you can, please tell us whether auto at 6144 stays flat on your 26,902- and 66,235-token prompts, and whether the jump scales with the chunk (512K contexts were not run).
@rekaXua commented on GitHub (Oct 11, 2026):
Thanks! Re-measured on v0.1.42 (ready-made HIP engine 0.1.42, same PC, same Orca IQ3_XXS pack, RX 7900 XTX as HIP device 1,
--kv int8 --kv-resident 32768, hipBLASLt table gfx1100/100500). Fresh engine per run, the same 26,902-token prompt unless noted, commit charge sampled every second.1. Bare
--prefill autonow picks 6144 and stays flat (log:prompt chunk auto: 6144 tokens, a 96-slot ring):2. The ~70 GB jump is not the cause - it comes after the engine has already died. I logged the top processes once the commit rose: at the jump
strata.exestill shows 68.8 GB private and nothing else grows, and the Windows event log puts the engine's crash ~45 s before the jump:So the jump matches the crashed process's own ~69 GB, i.e. it looks like Windows Error Reporting snapshotting the dead engine (PssCaptureSnapshot-style clone), which then pushes the whole system to the commit limit. Same in two more 8192 runs (+69.2 GB). Earlier I had read it as the cause; it is a consequence.
3. The actual failure is a GPU fault, and it depends on chunk and context, not on chunk size alone. Every failing run first logs
unspecified launch failure/hipErrorLaunchFailure(once withcheckpoint save: conversation snapshot running-state copy: unspecified launch failure); 10240 r2 also logged a LiveKernelEvent (GPU reset) at that time.--prefill--max-contextSo it does not scale with the chunk: 8192 fails every time at 262K but never at 128K or 512K, 7936 fails at 262K, 10240 is intermittent. The RX 6900 XT (gfx1030) in the same PC ran 8192 at 64K without problems (earlier report). Whether the jump appears seems to depend on how the engine dies (Dbghelp crash handler -> WER), not on the chunk.
Side effect worth knowing: because WER clones the dead ~69 GB process, available RAM drops to 0 for a while and other applications on the PC crash too. A guard that keeps the default at <= 6144 on gfx1100 Windows avoids it.
I can run more combinations (e.g. 7936/8192 at 196608 or 229376 context, or with
STRATA_TRACE=1/ a specific kernel switch) if that helps narrow down the kernel.@rekaXua commented on GitHub (Oct 11, 2026):
Update, v0.1.43 (engine 0.1.43, #1712 in): 8192 at 262144 still fails 3/3. This time a guard watched the engine log and killed
strata.exe(and anyWerFault.exe) the moment the fault appeared, and the commit charge stayed at +0.0 GB in all three runs - which confirms the ~70 GB jump is the crash report of the dead process, not the prompt path. The first error the engine prints is now:so the fault surfaces at (or right before) the prompt chunk's int32 copy - the step records / token ids that #1712 moved to a pinned buffer.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.