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#3641
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/1741
Author: @architectds
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:fix/pl-service-fastpath📝 Commits (1)
462a79dverify: service returns before any CUDA call while nothing has rung📊 Changes
1 file changed (+9 additions, -0 deletions)
View changed files
📝
src/core/verify.cpp(+9 -0)📄 Description
Title
Issue: #1740 (the stall this addresses; one stall in ~50 requests cannot prove it gone quickly)
Summary
The pipelined decode loop asks both stages' windows for service on every pass. While a window waits on its doorbell,
Verifier::servicestill switched the device -OnDevice:cudaGetDeviceand twocudaSetDevice- before findingnothing to do: a few driver calls a pass, about a billion passes in a long session. In #1740 the serving thread
blocked inside one of those
cudaSetDevicecalls while both stages' windows waited on it, and Strata was down until theengine restarted.
Now
servicereturns 0 before any CUDA call when nothing has rung and neither the WDDM flush (2 ms) nor the timeout(20 s) is due - the answer the loop below gives in that case - so the waiting loop calls the driver only to serve a
layer, to flush, or to time out.
Measured on the PC of the issue (RTX 3060 + RTX 5070 Ti, layers 0-11 / 12-47, IQ3_S,
--pipeline-windows 2,STRATA_PREFILL_CPU_SHARE=auto): a coding agent's recorded conversation (a 100K-token start, then 8 turns of 1-6K tokensof code, 128 tokens written a turn), A B A B in one window: 130.7 / 128.6 s before, 128.0 / 128.3 s with this; writing
69.2 / 70.5 against 70.8 / 69.7 tok/s. With
STRATA_PREFILL_CPU_SHARE=autothe answers are not repeatable from run torun (the share is balanced by measured times), before and after alike; all four runs' answers read normally.
What changed
src/core/verify.cpp,Verifier::service: the early return above, before theOnDeviceguard.Extra Notes
cudaEventQuery/cudaStreamQueryevery 2 ms is the driver call left in the waiting loop.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.