[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

Open
opened 2026-11-04 01:53:46 +07:00 by bsakaguchi · 2 comments
Owner

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 one
window, 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 on
engine 0.1.49.2 (run 3, full ratchet; run 2/3 death addendum, partial 6-!), at the 80,000 spin
bound, ordinary agentic workload, no fault injection.

Environment

  • 2× Intel Arc Pro B60 24 GB (8086:e211), xe driver, compute runtime 1.17.39758; card 0 PCIe probe
    3.1 GB/s, card 1 14.0 GB/s (same box and layout class as #2500).
  • Ryzen 5 5600XT (AVX-2), 64 GB DDR4, CachyOS.
  • Qwen3.8-Flash-Next UD-IQ4_XS (3-part GGUF + pack), MTP draft, --spec 4 --spec-min-p 0.5.
  • SYCL AOT build; server sycl/serve/server_intel.py --engine strata, one slot.
  • Layout: --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 pinned
    mirror).
  • Bound: STRATA_SPIN_MAX=80000 (config local/strata-ud-iq4_xs-80k.json,
    --max-context 196608; env also STRATA_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:

uv run ../sycl/serve/server_intel.py --engine strata --config strata-ud-iq4_xs-80k.json --port 8080

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:

  • Engine log: 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. The
    16,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).
  • Server guard: the reply repeated one token ('!') 256 times in a row: ended as "length"
    (local/ratchet-server-cli-output-1.txt).
  • First ratchet at ≈ 3,290 windows (≈16.4k generated tokens, ~5 tokens/window).
  • The other 19 requests (prompt context 6,526 → 55,908, incl. two other long generations of 6,294 and
    2,383 tokens) all ended clean with (stop).
  • No 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 engine
died (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.

  • One full ratchet (instance 3, prompt 65,884): a 7,521-token tool-call response ran clean to
    token 7,265, then exactly 256 !: the reply repeated one token ('!') 256 times in a row: ended as "length"; engine log drafts accepted 4940 of 6294 (78.5 %). The engine survived: the next
    request (prompt 67,808) ran 1,742 clean tokens before dying in the CCS class.
  • One partial ratchet in a dying response (instance 2, its layer-4 death): the stream ended on a
    run of 6 ! (local/failure-decode-run3-2.txt, verbatim tail "…wait_ready + sleep. Fine
    with!!!!!!") — the repeat shape, recorded as a ratchet tail immediately before the flat + death. At
    that size it is not separable from natural exclamation marks.
  • The four deaths are the CCS death class, not #2500 ratchets; not pooled here.
  • The 7,265 clean-token position is derived from the guard, which counts runs of one token id and
    ends at 256 (serve/server.py); the ratcheted response has no client-side stream capture (evidence
    is 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.hpp is byte-identical between the 0.1.45 and 0.1.46 sources:
    default bound still 20,000 on xe, same STRATA_SPIN_MAX override, still no per-window "wait ran
    to its bound" report (issue note 1). Not re-run against the 0.1.49 sources.
  • The #879 non-finite guard is still absent from the SYCL port; the server's repeat-stop guard is
    still single-token ×256.

Context from the same box (0.1.44, measured in the #2500 thread; not pooled)

STRATA_SPIN_MAX first ratchet, measured
10,000 ≈ 41–49 windows (2/2 requests)
20,000 (default) ≈ 608 and ≈ 1,200 windows (two independent runs)
30,000 (direct) ≈ 1,138 windows
40,000 ≈ 3,500 windows (17,513 tokens, one event)
80,000 (run 1, 0.1.46.3) ≈ 3,290 windows (16,425–16,488 tokens, one event)
80,000 (run 3, 0.1.49.2) ≈ 1,211 windows (7,265 tokens, one event)

Read 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.

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 one window, 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 on **engine 0.1.49.2** (run 3, full ratchet; run 2/3 death addendum, partial 6-`!`), at the 80,000 spin bound, ordinary agentic workload, no fault injection. ## Environment - 2× Intel Arc Pro B60 24 GB (8086:e211), xe driver, compute runtime 1.17.39758; card 0 PCIe probe 3.1 GB/s, card 1 14.0 GB/s (same box and layout class as #2500). - Ryzen 5 5600XT (AVX-2), 64 GB DDR4, CachyOS. - Qwen3.8-Flash-Next UD-IQ4_XS (3-part GGUF + pack), MTP draft, `--spec 4 --spec-min-p 0.5`. - SYCL AOT build; server `sycl/serve/server_intel.py --engine strata`, one slot. - Layout: `--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 pinned mirror). - Bound: **`STRATA_SPIN_MAX=80000`** (config `local/strata-ud-iq4_xs-80k.json`, `--max-context 196608`; env also `STRATA_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: ```sh uv run ../sycl/serve/server_intel.py --engine strata --config strata-ud-iq4_xs-80k.json --port 8080 ``` 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: - Engine log: `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`. The 16,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`). - Server guard: `the reply repeated one token ('!') 256 times in a row: ended as "length"` (`local/ratchet-server-cli-output-1.txt`). - First ratchet at ≈ **3,290 windows** (≈16.4k generated tokens, ~5 tokens/window). - The other 19 requests (prompt context 6,526 → 55,908, incl. two other long generations of 6,294 and 2,383 tokens) all ended clean with `(stop)`. - No `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 engine died (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. - **One full ratchet** (instance 3, prompt 65,884): a 7,521-token tool-call response ran clean to token 7,265, then exactly 256 `!`: `the reply repeated one token ('!') 256 times in a row: ended as "length"`; engine log `drafts accepted 4940 of 6294` (78.5 %). The engine **survived**: the next request (prompt 67,808) ran 1,742 clean tokens before dying in the CCS class. - **One partial ratchet** in a dying response (instance 2, its layer-4 death): the stream ended on a run of 6 `!` (`local/failure-decode-run3-2.txt`, verbatim tail "…wait_ready + sleep. Fine with!!!!!!") — the repeat shape, recorded as a ratchet tail immediately before the flat + death. At that size it is not separable from natural exclamation marks. - The four deaths are the CCS death class, not #2500 ratchets; not pooled here. - The 7,265 clean-token position is **derived from the guard**, which counts runs of one token id and ends at 256 (`serve/server.py`); the ratcheted response has no client-side stream capture (evidence is 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.hpp` is byte-identical between the 0.1.45 and 0.1.46 sources: default bound still 20,000 on `xe`, same `STRATA_SPIN_MAX` override, still no per-window "wait ran to its bound" report (issue note 1). **Not re-run against the 0.1.49 sources.** - The #879 non-finite guard is still absent from the SYCL port; the server's repeat-stop guard is still single-token ×256. ## Context from the same box (0.1.44, measured in the #2500 thread; not pooled) | `STRATA_SPIN_MAX` | first ratchet, measured | |---|---| | 10,000 | ≈ 41–49 windows (2/2 requests) | | 20,000 (default) | ≈ 608 and ≈ 1,200 windows (two independent runs) | | 30,000 (direct) | ≈ 1,138 windows | | 40,000 | ≈ 3,500 windows (17,513 tokens, one event) | | **80,000 (run 1, 0.1.46.3)** | **≈ 3,290 windows (16,425–16,488 tokens, one event)** | | 80,000 (run 3, 0.1.49.2) | ≈ 1,211 windows (7,265 tokens, one event) | Read 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.
Author
Owner

@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-25

Same 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.

  • Zero ratchets. No ×256 guard line, no partial ! runs in the client captures, and the last
    request 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.
  • Draft acceptance across the run averaged 71.2 % (40,381/56,749) — the same partial band as the
    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.
  • The 3 dying requests are the CCS class (verify layers 15, 7, 23 — all card 0) and are not
    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.

<!-- gh-comment-id:6401667965 --> @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-25 Same 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. - **Zero ratchets.** No ×256 guard line, no partial `!` runs in the client captures, and the last request 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. - Draft acceptance across the run averaged 71.2 % (40,381/56,749) — the same partial band as the 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. - The 3 dying requests are the CCS class (verify layers 15, 7, 23 — all card 0) and are **not** 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.
Author
Owner

@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) with STRATA_VERIFY_NO_HOST=1 and the experts in the pageable host arena; STRATA_VERIFY_NO_HOST=0 answers correctly on the same config. This thread's runs use NO_HOST=0 and 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.

<!-- gh-comment-id:6521372405 --> @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) with `STRATA_VERIFY_NO_HOST=1` and the experts in the **pageable host arena**; `STRATA_VERIFY_NO_HOST=0` answers correctly on the same config. This thread's runs use `NO_HOST=0` and 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1753
No description provided.