mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4053] [Engine] Long generation ratchets to !×256 at the 80,000 spin bound — 2× Arc Pro B60 (xe), engine 0.1.46.3 and 0.1.49.2 #1753
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#1753
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 @MaineTim on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4053
Reopen of #2500 (spin-bound ratchet; closed in the 0.2.0-beta tracker reset, not fixed).
Re-tested per the maintainer's reopen path: re-test on the current build, record what is seen, area-prefixed title, issue form, then
/reopen. This report is the record.Problem
A long generation collapses into a single-token repeat: lucid output throughout, then
!×256 in onewindow, ended by the server's repeat-stop guard. Same failure as #2500 (measured on this same box on
0.1.44). Reproduced again on engine 0.1.46.3 (run 1, full ratchet; run 2, partial 64-
!) and onengine 0.1.49.2 (run 3, full ratchet; run 2/3 death addendum, partial 6-
!), at the 80,000 spinbound, ordinary agentic workload, no fault injection.
Environment
3.1 GB/s, card 1 14.0 GB/s (same box and layout class as #2500).
--spec 4 --spec-min-p 0.5.sycl/serve/server_intel.py --engine strata, one slot.--layer-split 25(card 0: layers 0–24; card 1: 25–47 + head),--ple-io mmap,--stream-experts; 4,586 host-served experts on 0.1.46.3, 4,588 on 0.1.49.2 (11.12 GiB pinnedmirror).
STRATA_SPIN_MAX=80000(configlocal/strata-ud-iq4_xs-80k.json,--max-context 196608; env alsoSTRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=0 STRATA_STAGE_TRIM=1 STRATA_STAGER_THREADS=12 SYCL_CACHE_PERSISTENT=0).Reproduce
Start the server on this config and run one long pi coding session against it:
No fault injection, no process freezes: ordinary agentic workload.
Expected
A long generation completes with clean tokens; the 80,000 bound is the layout's chosen operating point.
Actual
Run 1 (0.1.46.3, 2026-10-22, one server, one engine; start 09:47:20). One full ratchet on the 20th
request of 20:
strata serve: prompt 55908 tokens = 55868 reused + 40 read in 898 ms (44.6 tok/s), 16488 generated in 531729 ms (31.0 tok/s), drafts accepted 8215 of 12373, 6 checkpoints. The16,488 tokens ran lucid to ~16,430 thinking tokens, then stepped into exactly 256
!tokens(client-side stream capture,
local/ratchet-decode-output-1.txt).the reply repeated one token ('!') 256 times in a row: ended as "length"(
local/ratchet-server-cli-output-1.txt).2,383 tokens) all ended clean with
(stop).Engine reset, no timed-out job, no hung card, no dmesg output for this failure.Run 2 (0.1.46.3, 2026-10-22, same config, same conversation resumed; 3 engine instances).
66,814 tokens generated (17 clean requests, 3 dying) ≈ 13,400 verify windows — more than double
run 1's exposure. One partial ratchet: one dying response ran lucid, then stepped into 64
!tokens (
local/failure-decode-run-2-2.txt) — the #2500 shape, 64 short of the guard; the enginedied (CCS death class, see the companion issue) before the guard fired. The three deaths are not
#2500 ratchets and are not pooled here.
Run 3 (0.1.49.2, 2026-10-24, same config unchanged, same box, fresh boot; 4 engine instances).
88 completed + 4 dying = 92 requests; 66,208 tokens ≈ 13,200 verify windows.
token 7,265, then exactly 256
!:the reply repeated one token ('!') 256 times in a row: ended as "length"; engine logdrafts accepted 4940 of 6294(78.5 %). The engine survived: the nextrequest (prompt 67,808) ran 1,742 clean tokens before dying in the CCS class.
run of 6
!(local/failure-decode-run3-2.txt, verbatim tail "…wait_ready + sleep. Finewith!!!!!!") — the repeat shape, recorded as a ratchet tail immediately before the flat + death. At
that size it is not separable from natural exclamation marks.
ends at 256 (
serve/server.py); the ratcheted response has no client-side stream capture (evidenceis the server CLI's guard line plus the engine log's serve line).
Why this is the #2500 signature, not #606 (same checks as the issue): lucid prefix with a single
step into the repeat; draft acceptance stayed partial up to the ratchet (66.4 % run 1; 65.1/65.9 % on
the two other long requests; 78.5 % run 3 — the same kind of partial acceptance, not one band);
short requests in the same sessions answered cleanly before and after the ratchet (the #606 tell);
the
!×256 burst is the exact shape of the server's single-token ×256 repeat-stop guard.Static checks (already checked, not re-derived)
sycl/include/strata/sycl_doorbell.hppis byte-identical between the 0.1.45 and 0.1.46 sources:default bound still 20,000 on
xe, sameSTRATA_SPIN_MAXoverride, still no per-window "wait ranto its bound" report (issue note 1). Not re-run against the 0.1.49 sources.
still single-token ×256.
Context from the same box (0.1.44, measured in the #2500 thread; not pooled)
STRATA_SPIN_MAXRead honestly: the 80,000 events landed at essentially the same token position as the single 40,000
event (16.4k vs 17.5k) and then earlier still on the newer engine (7.3k). Each is one event against
one event, and the natural rate on this box is known to be non-stationary (hot patches in the #2500
thread), so this does not show that 80k buys nothing over 40k — and it does not show that it
helps. It does show that 80,000 is not a floor on this layout. Cumulative at 80,000: two full +
two partial ratchets over ≈ 32,000 windows (run 1 ≈ 5,560; run 2 ≈ 13,400; run 3 ≈ 13,200), across
0.1.46.3 and 0.1.49.2.
Reproduction status
Reproduced locally on 0.1.46.3 and again on 0.1.49.2, no fault injection, ordinary workload.
Report produced by Qwen 3.8 under supervision and review of human poster.
@MaineTim commented on GitHub (Oct 25, 2026):
One more data point on this box, plus one correction.
New run:
STRATA_SPIN_MAX=2000000(2M), engine 0.1.49.2, 2026-10-25Same box, same layout, same model; the 80k config with only the bound changed to 2,000,000
(100× the 80k bound). One pi session, 4 engine instances, 84 clean + 3 dying = 87 requests,
65,084 tokens ≈ 13,000 verify windows.
!runs in the client captures, and the lastrequest of the run ended clean. At 80k the same box showed two full + two partial ratchets over
≈ 32,000 windows; at 2M, none over ≈ 13,000. One run, and the natural rate on this box is
non-stationary, so this is a data point, not a rate — but it is the cleanest support so far for
the spin bound being the cause: raise it 25× over the 80k operating point and the ratchet
disappears while everything else (including the separate CCS death class, 3 events in this run,
all card 0) continues unchanged.
ratcheted requests in the earlier runs — with no ratchet. Partial acceptance alone does not
trigger it; consistent with the answer outrunning the bound, not with the drafts.
ratchets: no
!runs in any of the dying responses (the first CCS deaths without ratchet tails).Not pooled here.
Correction — run 3 wall clock
The coredumps from run 3 carry kernel snapshot times: death 1 at 2026-10-24 21:44:26 UTC,
death 4 at 2026-10-25 00:49:15 UTC. The host clock was running UTC during run 3, so the
"engine-log clock 4 h behind host" note was a misdiagnosis — the log was right and the host
timezone was wrong. Run 3's events are at ≈ 21:44 / 22:03 / 22:19 / 00:49 UTC. Nothing in this
issue changes (the ratchet's position within its request is token-based, not clock-based), but
anyone re-deriving run 3's timeline from the captures should use UTC.
Still open
The ask is unchanged: a one-line report (or env switch) when a verify wait runs to its bound. The
2M run shows the workaround is effective (no ratchet at 100× the default bound), which also
suggests the report line could be an occasional, low-frequency event rather than per-window noise.
@demetree commented on GitHub (Oct 30, 2026):
Related but distinct: #4698. Same
!x256 symptom, different trigger - deterministic from the first token on a Windows SYCL build (engine 0.1.53, Arc Pro B70, IQ3_S) withSTRATA_VERIFY_NO_HOST=1and the experts in the pageable host arena;STRATA_VERIFY_NO_HOST=0answers correctly on the same config. This thread's runs useNO_HOST=0and fail only after long generation at a spin bound, so if they share a cause it is upstream of both. Leaving them separate for now; both link each other.