mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1762] SYCL --batch 2: a prompt read in parts while another slot decodes leaves non-finite residuals (prompt-path cache-slot loan), unless --no-prefill-borrow #704
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#704
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 @leadgtr7 on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1762
(
batch-repro.py). The prompt path borrows 1036 cache slots (1.98 GiB); B's prompt is read in 3 parts with slot 0decoding between them (
the prompt was read in 3 parts, the slots decoding 8468 ms between them).STRATA_DBG_NAN=1:prompt end: last residual row 8 non-finite (max |x| 3.29e+38)for B's prompt.captured the batch window over slots 0,1, thenover slots 1; ~400 windows run (avg 1.73 rows, 62.71 ms/window ... emit 0.00) but neither client receives tokens (A stuck at ~100 tokens, B at 1).--no-prefill-borrowthe non-finite residuals are gone (last residual row 0 non-finiteon every prompt end),at a cost: the expert cache drops to 10,826 slots and B's prompt reads at 77 tok/s instead of ~550. (The run still
stalls: issue 2.)
parallel) never shows it: the loan only overlaps decoding when batch slots interleave a prompt.Guess: a borrowed cache slot (holding prompt buffers) is read by the other slot's batch window before the loan is
returned/refilled.
Engine log, 0.1.41 + STRATA_DBG_NAN=1 (excerpt)
Engine log, 0.1.41 + --no-prefill-borrow + STRATA_DBG_NAN=1 (excerpt)
Repro: batch-repro.py
@leadgtr7 commented on GitHub (Oct 9, 2026):
Companion issue (the stall that remains with
--no-prefill-borrow): #1763@leadgtr7 commented on GitHub (Oct 9, 2026):
Update after #1721 (which fixes the stall, #1763): with the server fix the request whose ~12K prompt triggers this print finishes, and its greedy reply is byte-identical to the single-slot reply (150 tokens), so the non-finite value has no visible effect on the output.
Where it appears: only under
"parallel": 2, only for the first two of the three parts the prompt is read in (the prompt was read in 3 parts); the last part'slast residual rowis finite (max |x| 5.36) and PLE history / GDN state are finite every time. Single-slot with the same prompt and borrow on:0 non-finite. The value (3.29e+38) looks like reinterpreted bytes rather than an overflow; one candidate is the debug copy itself: it readsm.Rthroughdpct::get_in_order_queue()afterm.cs->wait(), while the other slot's windows run between the parts and the prompt buffers sit in lent cache slots. I have not instrumented it; happy to run a build withn,T,p0added to that print if useful. Leaving this open for you to decide whether it is a debug-print artifact or a real but unused row.@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.