mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3420
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1383
Author: @ischencheng
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:fix/launch-blocking-warning📝 Commits (1)
6e1d6f7generate: say that CUDA_LAUNCH_BLOCKING=1 hangs the verify windows (#1341 #964)📊 Changes
1 file changed (+20 additions, -2 deletions)
View changed files
📝
src/program/generate.cpp(+20 -2)📄 Description
The 2/2 hang reproduced in #1341 and the hang in #964 were both run with
CUDA_LAUNCH_BLOCKING=1, set to find a faulting kernel. That variable alone hangs the engine. A verify window's graph waits on the GPU for flags the host raises aftercudaGraphLaunchreturns, and with blocking launchescudaGraphLaunchreturns only when the graph is done. So the first window after any prompt waits forever and the #29 watchdog ends the engine, whatever the prompt length, GPU count or--pipeline-windows.This prints a warning at start when the variable is set, and the watchdog's line names it. Without the variable nothing changes. The server console still shows the
#267ERR line that follows the release, so the hint is in the engine log, which is what both reports quoted.Modal L40S 46 GB, Linux, driver 610.57, sm_89 portable build, IQ2_XS, upstream
e8ca9af, a fresh server per row:reading the prompt (verify windows), from token 2420--pipeline-windows 0--pipeline-windows 2(pipelined verify windows), from token 2421--pipeline-windows 2, ~12 GB expert cache per card--pipeline-windows 0, ~12 GB expert cache per card--pipeline-windows 2, all experts in VRAMThe 2-GPU rows use
"layer_split": "26"with--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto:32768 --trim-stage-weights; the 12 GB rows add--vram-reserve-mib 30000 --vram-reserve-later-mib 30000.With
STRATA_VERIFY_TRACE=1the stall report shows why: the host's last event isWINDOWwith noLAUNCHEDafter it (it is still insidecudaGraphLaunch), and the GPU breadcrumbs stop atlayer 1 group 0: pre(0), waiting for the host.Before/after on 1 GPU with the variable set, main logs nothing about it. This branch logs:
Without the variable, three fixed prompts at temperature 0 gave identical replies on main and this branch, and the engine logs match apart from the binary's path.
Not checked: Windows (the #1341 machine) and HIP. The check is skipped on HIP builds;
HIP_LAUNCH_BLOCKINGorAMD_SERIALIZE_KERNELmay do the same there, I have not tried. This does not explain the #1341 failures that ran without the variable (the 129k request that ended with an error, and the 107kprefill copy_i32illegal access in the batched reader). I could not get a hang without it on two L40S.Related to #1341, #964.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.