[GH-ISSUE #3813] [Engine] verify: layer N never rang / mtp draft: illegal instruction — reproduces on 0.1.48; after an engine restart the 2nd request always fails #1614

Open
opened 2026-11-04 01:52:38 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @Justsoso-W on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3813

[Engine] verify: layer N never rang / mtp draft: illegal instruction — reproduces on 0.1.48; after an engine restart the 2nd request always fails
What happened
The engine dies with illegal instruction (CUDA error 717) during the speculative-decoding
verify window or the MTP draft step. It is not a one-off: on this machine it reproduces on
every engine version from 0.1.41 to 0.1.48, with five different signatures.
The most reproducible pattern found today is:
After every engine restart, request #1 succeeds and request #2 fails.
The server then restarts the engine, and the cycle repeats.
This has been seen on this machine since 2026-10-13 (engine 0.1.41), so it is long-standing.
The signatures (all five, verbatim from the logs)
[strata] the engine reported an error: verify: layer 29 never rang (an illegal instruction was encountered)
[strata] the engine reported an error: verify: layer 28 never rang (an illegal memory access was encountered)
[strata] the engine reported an error: mtp draft: an illegal instruction was encountered
[strata] the engine reported an error: mtp draft step: an illegal instruction was encountered
strata serve: adaptive tier: copy of layer 28 into slot 1992 (CUDA0) failed: an illegal instruction was encountered
strata serve: adaptive swap copy failed (layer 44, slot 2090, pinned 0): an illegal instruction was encountered
prefill mmq: gather_native_group: an illegal instruction was encountered
Affected layers are random — 19 distinct values across the logs: 3, 5, 12, 13, 17, 19, 21,
23, 24, 25, 26, 28, 29, 32, 33, 34, 35, 46. Layer 29 alone appears 6 times.
The engine's own exit message:
[strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported:
verify: layer 29 never rang (an illegal instruction was encountered) - please report it at
github.com/Niko1221/Strata/issues with the log.
The pattern in the log
The failure happens right at the prefill → verify boundary, usually before a single token
is produced:
[strata] reading the prompt: 15,766 of 15,771 tokens, 27 s so far
[strata] thinking: 20 of budget 1536 (max 2048) tokens, 33.0 tok/s, 28 s
[strata] thinking: 248 of budget 1536 (max 2048) tokens, 31.6 tok/s, 35 s
[strata] the engine reported an error: verify: layer 13 never rang (an illegal instruction was encountered)
[strata] done: 274 tokens in 36 s (31.7 tok/s) (error, cancel=False)
and, in the worse case, before any output at all:
[strata] reading the prompt: 15,571 of 15,576 tokens, 26 s so far
[strata] the engine reported an error: verify: layer 46 never rang (an illegal instruction was encountered)
[strata] done: 0 tokens in 27 s (0.0 tok/s) (error, cancel=False)
Reproduction
A strict reproducer (a 15.5k-token prompt, thinking on, cache_prompt: false so every request
really re-prefills) fails 6 out of 12 requests on 0.1.48:
EP1 OK
EP2 ERR verify: layer 29 never rang
EP3 ERR the engine stopped unexpectedly (exit code 1) -> restart
EP4 OK
EP5 ERR mtp draft: an illegal instruction was encountered
EP6 ERR the engine stopped unexpectedly (exit code 1) -> restart
EP7 ERR verify: layer 3 never rang
EP8 ERR the engine stopped unexpectedly (exit code 1) -> restart
EP9 OK
EP10 OK
EP11 OK
EP12 OK
Note the shape: every OK is the first request after a restart, and every failure is the second.
With the normal prompt cache in play the situation is much better — 8 consecutive requests with a
15.5k prompt + thinking + tool calls all pass, because the later requests reuse the cached prompt
(cached_tokens: 15571) and never enter the prefill → verify path. The trigger is a real
re-prefill of a long prompt.
Versions tested
Engine
Result
0.1.41
reproduces (verify: layer 2 never rang, also broke setup.py --calibrate)
0.1.44.1
reproduces
0.1.45
reproduces (verify: layer 29 never rang, 2 crashes in ~7 requests)
0.1.47 (0.2.2)
reproduces (mtp draft step, verify: layer 33/34)
0.1.48 (0.2.3, current)
reproduces (verify: layer 29, verify: layer 3, mtp draft)
With reference to the note on #2813 ("Re-test on 0.2.0-beta, it may already be fixed") —
it is not fixed on 0.1.48 as of today (2026-10-23, 0.2.3 published 07:44 UTC).
Environment

  • Windows 11, driver 576.28 (older than 580, so the CUDA 12 engine build is used)
  • GPU: RTX 3080 Ti Laptop 16 GB (PCIe Gen3 x16, no ReBar), compute capability 8.6 (sm_86)
  • CPU: Xeon E5-2696 v3 (Haswell, no AVX-512, AVX-2 kernels), 18 physical cores
  • RAM: 128 GB DDR3L-1600, four channels
  • Model: Qwen3.8-Flash-Next, GSQ-RCO IQ3_S native pack (a native IQ pack)
  • Large pages confirmed working (large pages (2097152 B)), arena pinned 39.95 GiB / 97.1 % of
    the non-resident experts
  • Decode speed is otherwise excellent and stable between crashes (~46 tok/s warm decode, ~69 %
    expert-cache hit rate on this 16 GB card)
    Config used for the strict reproducer (a conservative variant)
    --pack F:\Strata-data\packs\iq3_s
    --native F:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf
    --ple-gguf F:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf
    --expert-profile F:\Strata\data\expert-profile.bin
    --expert-cache auto
    --prefill 4096
    --spec 2
    --mtp F:\Strata-data\mtp\rt
    --max-context 262144
    --kv int8
    --kv-resident 8192
    --spec-min-p 0.70
    --pool-workers 17
    --pool-tasks 256
    --adapt-every 1
    --adapt-swaps 160
    --adapt-decay 0.97
    --vram-reserve-mib 1472
    --adapt-async 0
    env: STRATA_KV_STAGE_OWN=1, STRATA_PF_FUSED=0, STRATA_KV_PREFETCH=1, STRATA_KV_HOST_DMA=1,
    STRATA_ARENA_PIN_GIB=40, STRATA_PIN_BY_NEED=1, STRATA_OWNED_PRICE=exact, STRATA_HOST_CORE=last
    The original, less conservative flags (--spec 4 --prefill auto:8192 --adapt-async 1) fail the
    same way.
    What was already tried (no effect)
    Attempt
    Result
    --spec 0 (disable speculative decoding)
    not possible: an IQ native pack requires --spec T (T >= 2); the engine exits with code 2
    --spec 2
    still reproduces
    --adapt-async 0
    still reproduces
    --prefill 4096 / 512 / auto:8192
    still reproduces
    --kv int8 → k8v4
    only delays it by one round (round 1 passes, round 2 fails)
    STRATA_KV_STAGE_OWN=1
    no effect — the log still says single existing staging pool, so it does not appear to take effect
    STRATA_PF_FUSED=0
    no effect
    STRATA_PF_STEP_SYNC=1/2/3
    lowers the rate only (diagnostic, per #1468)
    --pool-workers 17 → 24
    3 crashes in a row; higher worker counts make it more likely
    engine 0.1.41 → 0.1.45 → 0.1.47 → 0.1.48
    all reproduce
    Additional observations that may help
  • The Windows event log shows nvlddmkm TDR events (Id 13 / 153) on the same day, and an
    illegal memory access in the same place as the engine fault.
  • The engine's KV staging pool is still reported as single existing staging pool even with
    STRATA_KV_STAGE_OWN=1. Since #1468 points at the expert-cache slots being borrowed by the KV
    staging pool, and 0.2.3 fixed the Metal path with "the expert cache was borrowed in the prompt
    path; now it is not", the CUDA path may still have the same problem.
  • The restart-then-fail-once shape suggests that some CUDA resource (pinned host memory, a
    staging buffer, or the expert-cache slot table) is not fully re-initialised after an engine
    restart, and the second request hits it.
  • The fault also broke setup.py --calibrate on this machine: round 1/3 (PCIe share) completes,
    then the same error kills the tuning.
    Questions
  1. Is there a way to get the KV staging pool off the borrowed expert-cache slots on CUDA?
    (STRATA_KV_STAGE_OWN=1 does not appear to switch it on — the log line is unchanged.)
  2. Could the engine verify that the borrowed-slot state is clean after a restart?
  3. Is there any known-good configuration for a long prompt (>15k) with MTP enabled on a 16 GB card?
    Thanks for reading — happy to provide the full logs, the reproducer script, or to test a build.

issue-draft.md

Originally created by @Justsoso-W on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3813 [Engine] verify: layer N never rang / mtp draft: illegal instruction — reproduces on 0.1.48; after an engine restart the 2nd request always fails What happened The engine dies with illegal instruction (CUDA error 717) during the speculative-decoding verify window or the MTP draft step. It is not a one-off: on this machine it reproduces on every engine version from 0.1.41 to 0.1.48, with five different signatures. The most reproducible pattern found today is: After every engine restart, request #1 succeeds and request #2 fails. The server then restarts the engine, and the cycle repeats. This has been seen on this machine since 2026-10-13 (engine 0.1.41), so it is long-standing. The signatures (all five, verbatim from the logs) [strata] the engine reported an error: verify: layer 29 never rang (an illegal instruction was encountered) [strata] the engine reported an error: verify: layer 28 never rang (an illegal memory access was encountered) [strata] the engine reported an error: mtp draft: an illegal instruction was encountered [strata] the engine reported an error: mtp draft step: an illegal instruction was encountered strata serve: adaptive tier: copy of layer 28 into slot 1992 (CUDA0) failed: an illegal instruction was encountered strata serve: adaptive swap copy failed (layer 44, slot 2090, pinned 0): an illegal instruction was encountered prefill mmq: gather_native_group: an illegal instruction was encountered Affected layers are random — 19 distinct values across the logs: 3, 5, 12, 13, 17, 19, 21, 23, 24, 25, 26, 28, 29, 32, 33, 34, 35, 46. Layer 29 alone appears 6 times. The engine's own exit message: [strata] the engine stopped unexpectedly (exit code 1). The engine exited (code 1) after it reported: verify: layer 29 never rang (an illegal instruction was encountered) - please report it at github.com/Niko1221/Strata/issues with the log. The pattern in the log The failure happens right at the prefill → verify boundary, usually before a single token is produced: [strata] reading the prompt: 15,766 of 15,771 tokens, 27 s so far [strata] thinking: 20 of budget 1536 (max 2048) tokens, 33.0 tok/s, 28 s [strata] thinking: 248 of budget 1536 (max 2048) tokens, 31.6 tok/s, 35 s [strata] the engine reported an error: verify: layer 13 never rang (an illegal instruction was encountered) [strata] done: 274 tokens in 36 s (31.7 tok/s) (error, cancel=False) and, in the worse case, before any output at all: [strata] reading the prompt: 15,571 of 15,576 tokens, 26 s so far [strata] the engine reported an error: verify: layer 46 never rang (an illegal instruction was encountered) [strata] done: 0 tokens in 27 s (0.0 tok/s) (error, cancel=False) Reproduction A strict reproducer (a 15.5k-token prompt, thinking on, cache_prompt: false so every request really re-prefills) fails 6 out of 12 requests on 0.1.48: EP1 OK EP2 ERR verify: layer 29 never rang EP3 ERR the engine stopped unexpectedly (exit code 1) -> restart EP4 OK EP5 ERR mtp draft: an illegal instruction was encountered EP6 ERR the engine stopped unexpectedly (exit code 1) -> restart EP7 ERR verify: layer 3 never rang EP8 ERR the engine stopped unexpectedly (exit code 1) -> restart EP9 OK EP10 OK EP11 OK EP12 OK Note the shape: every OK is the first request after a restart, and every failure is the second. With the normal prompt cache in play the situation is much better — 8 consecutive requests with a 15.5k prompt + thinking + tool calls all pass, because the later requests reuse the cached prompt (cached_tokens: 15571) and never enter the prefill → verify path. The trigger is a real re-prefill of a long prompt. Versions tested Engine Result 0.1.41 reproduces (verify: layer 2 never rang, also broke setup.py --calibrate) 0.1.44.1 reproduces 0.1.45 reproduces (verify: layer 29 never rang, 2 crashes in ~7 requests) 0.1.47 (0.2.2) reproduces (mtp draft step, verify: layer 33/34) 0.1.48 (0.2.3, current) reproduces (verify: layer 29, verify: layer 3, mtp draft) With reference to the note on #2813 ("Re-test on 0.2.0-beta, it may already be fixed") — it is not fixed on 0.1.48 as of today (2026-10-23, 0.2.3 published 07:44 UTC). Environment - Windows 11, driver 576.28 (older than 580, so the CUDA 12 engine build is used) - GPU: RTX 3080 Ti Laptop 16 GB (PCIe Gen3 x16, no ReBar), compute capability 8.6 (sm_86) - CPU: Xeon E5-2696 v3 (Haswell, no AVX-512, AVX-2 kernels), 18 physical cores - RAM: 128 GB DDR3L-1600, four channels - Model: Qwen3.8-Flash-Next, GSQ-RCO IQ3_S native pack (a native IQ pack) - Large pages confirmed working (large pages (2097152 B)), arena pinned 39.95 GiB / 97.1 % of the non-resident experts - Decode speed is otherwise excellent and stable between crashes (~46 tok/s warm decode, ~69 % expert-cache hit rate on this 16 GB card) Config used for the strict reproducer (a conservative variant) --pack F:\Strata-data\packs\iq3_s --native F:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf F:\Strata-data\models\IQ3_S\Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf --expert-profile F:\Strata\data\expert-profile.bin --expert-cache auto --prefill 4096 --spec 2 --mtp F:\Strata-data\mtp\rt --max-context 262144 --kv int8 --kv-resident 8192 --spec-min-p 0.70 --pool-workers 17 --pool-tasks 256 --adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97 --vram-reserve-mib 1472 --adapt-async 0 env: STRATA_KV_STAGE_OWN=1, STRATA_PF_FUSED=0, STRATA_KV_PREFETCH=1, STRATA_KV_HOST_DMA=1, STRATA_ARENA_PIN_GIB=40, STRATA_PIN_BY_NEED=1, STRATA_OWNED_PRICE=exact, STRATA_HOST_CORE=last The original, less conservative flags (--spec 4 --prefill auto:8192 --adapt-async 1) fail the same way. What was already tried (no effect) Attempt Result --spec 0 (disable speculative decoding) not possible: an IQ native pack requires --spec T (T >= 2); the engine exits with code 2 --spec 2 still reproduces --adapt-async 0 still reproduces --prefill 4096 / 512 / auto:8192 still reproduces --kv int8 → k8v4 only delays it by one round (round 1 passes, round 2 fails) STRATA_KV_STAGE_OWN=1 no effect — the log still says single existing staging pool, so it does not appear to take effect STRATA_PF_FUSED=0 no effect STRATA_PF_STEP_SYNC=1/2/3 lowers the rate only (diagnostic, per #1468) --pool-workers 17 → 24 3 crashes in a row; higher worker counts make it more likely engine 0.1.41 → 0.1.45 → 0.1.47 → 0.1.48 all reproduce Additional observations that may help - The Windows event log shows nvlddmkm TDR events (Id 13 / 153) on the same day, and an illegal memory access in the same place as the engine fault. - The engine's KV staging pool is still reported as single existing staging pool even with STRATA_KV_STAGE_OWN=1. Since #1468 points at the expert-cache slots being borrowed by the KV staging pool, and 0.2.3 fixed the Metal path with "the expert cache was borrowed in the prompt path; now it is not", the CUDA path may still have the same problem. - The restart-then-fail-once shape suggests that some CUDA resource (pinned host memory, a staging buffer, or the expert-cache slot table) is not fully re-initialised after an engine restart, and the second request hits it. - The fault also broke setup.py --calibrate on this machine: round 1/3 (PCIe share) completes, then the same error kills the tuning. Questions 1. Is there a way to get the KV staging pool off the borrowed expert-cache slots on CUDA? (STRATA_KV_STAGE_OWN=1 does not appear to switch it on — the log line is unchanged.) 2. Could the engine verify that the borrowed-slot state is clean after a restart? 3. Is there any known-good configuration for a long prompt (>15k) with MTP enabled on a 16 GB card? Thanks for reading — happy to provide the full logs, the reproducer script, or to test a build. [issue-draft.md](https://github.com/user-attachments/files/33864957/issue-draft.md)
Author
Owner

@dandandelion commented on GitHub (Oct 23, 2026):

Same card, same pack, same verify: layer N never rang — Linux data, including one signature nobody has reported yet and a decoded GPU coredump that names the faulting instruction.

We are the other RTX 3080 Ti Laptop reporter in this thread family: the box behind the 2026-10-19 comments on #3134. Fedora 44, not Windows. We have been chasing this since 2026-10-13 with instrumentation of our own, and we now have four different fault signatures on one box. This is a report, not a "+1" — the parts that may be useful are the coredump, the per-layer trace ring dump of a fatal window, and one lever that measurably changed the fault rate.

Our box, and our rate

  this box
GPU / link RTX 3080 Ti Laptop 16 GB, Gen4 x8, BAR1 16 GB (ReBar on)
OS / driver Fedora 44; driver 610.57.04 (was 615.71.09, faults continued across the change), GSP on, nvidia-powerd masked, power limit 125 W (factory default)
kernel 7.2.8 → 7.2.11 (faults on both)
engine 0.1.44.1 → 0.2.2 (self-reports 0.1.47); both fault
CUDA 13.4 toolkit (cuda_13.4.r13 in the device code), sm_86
CPU / RAM 20 logical, 62 GB; engine RSS ~55 GB
model Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack, --spec 3 --mtp rt --max-context 262144 --kv int8 --expert-cache auto --vram-reserve-mib 944 --prefill auto --adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97, no --kv-resident, no --pool-workers (automatic: 13 workers)
rate, before 1 death per 3 h 44 min (measured on 0.1.44.1: 345 requests, 39.2 M prompt tokens, 255,725 generated tokens, 115,326 verify windows)
rate, now ~1 fault per 12 h of GPU-busy time; the faulting engine had a 19.05 h streak before it died

We have 21 of these events from earlier runs, and the 0x40702c values are not scattered: 17 of the 21 fall inside one band, 0x2048654…0x204f376 (27 KiB wide), and 4 of them inside a second, 0x2008cbb…0x2009d2b (4 KiB wide). Today's value sits in the first band. Whatever the driver is reading when it validates a launch descriptor, the bad words keep coming from the same neighbourhood, across two engine versions and two kernels.

The trace ring says exactly which launch died (STRATA_VERIFY_TRACE=1, #649)

Window 376626, steps 0…19 all RANG then SERVED with the handshake counters equal, then:

173584.0 RANG        v0x7ffeec8f4d20 window 376626 step 19 layer 19 aux 364 | seq 20 flag 19 A 19 B 19
173402.1 SERVED      v0x7ffeec8f4d20 window 376626 step 19 layer 19 aux 0   | seq 20 flag 19 A 20 B 20
     0.0 NEVER-RANG  v0x7ffeec8f4d20 window 376626 step 20 layer 20 aux 719 | seq 20 flag 20 A 20 B 20
GPU breadcrumbs (us after the window's first), the GPU got as far as layer 19:
  layer 18 group 0: pre(0)=8499.2 ... router+ring(17)=8715.3
  layer 19 group 0: ... (stamps present)          layer 20: nothing

The host had already served layer 20 (A 20 B 20) — the doorbell simply never came back, and the GPU's own stamps stop at layer 19. So the launch the driver rejected is the first kernel of layer 20 of that window, and the request had already decoded 464 tokens at 51–54 tok/s after a 54,018-token prompt read. That long-standing "the layer number is random" observation has a mechanism-shaped answer for this case: the host is not late and the layer is not special — the launch is refused.

Useful for sizing: the log's own capture lines show 5 captures per engine run (strata verify: captured the N-token window (upload no error, sync no error), N = 1…5), i.e. one instantiated graph exec per shape, and that run reached window 376,626 — so the same exec had been replayed on the order of 10⁵ times before the single bad launch. We do not know yet whether the descriptor image went bad at that instant or the words read on the way into the scheduler were bad; the engine exits on this error, so there is no "did the next replay fail too" answer.

The decoded coredump names a device instruction (this rules out the CPU-side guess)

@Justsoso-W raised a fair question — an "illegal instruction" on a Haswell part with no AVX-512 could be CPU-side. It is not. We have a driver-written CUDA coredump from an SM-class fault, and here is how to read one, since cuda-gdb --core <file> refuses these by design (the file is a section-based CUDA core: 171,217 section headers, e_phoff = 0, 40,960 .cudbg.regs.* and 40,960 .cudbg.local sections — that is the format, not damage):

cuda-gdb --batch -nx -ex "target cudacore cuda-7531.dump" -ex "info cuda kernels"

That gives: CUDA Exception: Warp Misaligned Address, PC 0x7f1cb8dea2d0, kernel native_mmvq_multi_kernel<Q6KTraits, 3, 4, 2, false, false>, grid 89,535, GridDim (320,1,1), BlockDim (32,4,1), all 58 SMs faulting identically. Disassembly of that instance (cuobjdump -sass -fun <mangled> engine/strata):

/*03c0*/  IMAD.WIDE R20, R21, 0x2, R24
/*03d0*/  LDG.E.U16.CONSTANT R9, [R24.64+0xd0]   <- error PC = instance base + 0x3d0

and the registers: R18/R19, R20/R21, R22/R23, R24/R25 all hold 0x7f23a7ce94fb — an odd address. [R24.64+0xd0] = 0x7f23a7cea5cb. Every offset that kernel uses is even, and Alloc::take rounds every block to 256 bytes, so the odd bit is in the pointer value itself, which is a launch parameter (const Traits::Block*, float*). Every CTA faulted identically, 49 s into a request that had already decoded 2,356 tokens. Same shape as the Oct 22 MMU fault: a wild value, not an off-by-N index.

For the record, a SKEDCHECK16_* rejection writes no coredump at all (no CUDBG exception is raised), so nobody should go looking for one — the trace ring and the ESR words are the whole evidence base for that class.

Two knobs that move the rate — one of them ours

  • STRATA_SH_STREAM=0 (turn the shared-expert fork off; verify.cpp:257-262 reads it, consumed at 1863/2108 in 0.2.2). On 0.1.44.1 that arm ran 1,992,045 tokens over 1,266 requests with 1 SM-class burst against ~6.1 expected from our own baseline (P(≤1 | 6.1) ≈ 6%) — about 6× fewer. It costs nothing: median 52.7 → 61.0 tok/s. On 0.2.2 + kernel 7.2.11 + fork off, the SKED class is down to ~1 per 12 h of GPU-busy against ~1 per 1.15 h in the fork-on era. Not a fix — the class came back at 19:54 — but a measured suppression of a device-side fork inside the verify window.
  • --pool-workers, from your report, is the other concurrency axis and we have never varied it (we run 13 automatic). Your numbers are the strongest single clue in this whole thread: 17 workers ≈ 1 crash per 15–20 requests, 24 workers = three in a row. A rate that rises with host worker count, plus a rate that falls when a device-side stream fork is switched off, both point at the same thing: the concurrency around the launch/command queue, not one kernel's code.

Build provenance, so you know which number came from what

  • Everything from 0.2.2 in this comment (both faults, the capture counts, the borrowed-slot figure) comes from a binary we built ourselves from tag v0.2.2 — cmake -DCMAKE_CUDA_ARCHITECTURES=86 -DCUDAToolkit_ROOT=/usr/local/cuda-13.4 -DSTRATA_NATIVE_EXPERTS=ON, 76,799,992 bytes, no local patches to any source file, only environment variables. It self-reports engine 0.1.47. We have not installed 0.2.3 yet; we will build it and report.
  • The 0.1.44.1 data comes from the prebuilt engine plus one local patch to src/core/verify.cpp that added (a) gap breadcrumbs inside a layer, (b) cudaGraphUpload before every replay behind STRATA_VERIFY_GRAPH_UPLOAD=1. Those two additions do not exist upstream and are not in anything quoted above from 0.2.2. The STRATA_VERIFY_TRACE=1 ring quoted above is upstream's own (#649) and works unmodified on 0.2.2.
  • The coredump in the section above was written on the patched 0.1.44.1 build, but the faulting code is stock: the instruments were in verify.cpp only, and the named kernel and its launch parameters are unmodified.

Per the tracker-reset note, #3134 is reopenable with /reopen now that we have re-tested on 0.2.x; we would rather keep the data in one place, so it is going here.

What we have ruled out, with the measurement

  • KV format is not the discriminator. --kv k8v4 → int8 did not change our fault class; your "only delays it by one round" agrees. The engine calls kv_gather_q8_step + kv_gather_q4_step from layer.cpp:1140-1142 either way.
  • Driver version: 615.71.09 → 610.57.04, faults continued. Kernel: 7.2.8 → 7.2.11, faults continued (the Xid 31 came 29 min into the first run on the new kernel). Engine: 0.1.41…0.1.44.1…0.2.2 all fault; 0.1.48 not installed here yet.
  • Not OOM: zero OOM records in any death; VRAM free was 525–535 MiB at both 0.2.2 faults, which is our normal busy state (79% of all GPU-busy samples have 512–767 MiB free).
  • Not thermals or the power cap: 58 °C at the fault moment, 125 W = factory default, throttle mask unchanged in the sample before.
  • Not the display co-residency: strata-vision running or not changed nothing in the fault rate.
  • Not a hanging GPU: except for the halt class below, the card stays readable; the server keeps serving and only the one request dies.

One other class we see on this box, which may or may not be the same animal: Xid 62 (µC halt) followed by Xid 154 (PF FLR) and 8 × Xid 45, with no Xid 13, no Xid 31, no SKEDCHECK and a near-empty coredump (8,732 bytes of tables, no registers). 18 such events since 2026-09-17; two of them within 9 h of GPU time in the last fortnight. Payload words repeat across days — e.g. two events on different days share the first word and four trailing words: 224c1547 … 202c3d4a 202c26c6 202c1d5c 202bfd44 202ad272.

Questions for you

  1. Given the ring (A 20 B 20, host served the step) and the driver's own CTA_THREAD_DIMENSION_ZERO verdict: what writes the launch descriptor for a node of an instantiated graph, and what could make the CTA/thread dimensions read as zero once in ~10⁵ replays? Could the engine re-read and validate a node's parameters (cudaGraphExecKernelNodeGetParams) before cudaGraphLaunch, and report the dimensions it thinks it asked for?
  2. Would you take a build behind an env that calls cudaGraphUpload before every replay rather than once after instantiate? That is the A/B we would most like to run; upstream calls it once at capture (verify.cpp:2437 in 0.2.2), ours did it per replay, and the patch does not survive the 0.2.2 rewrite of verify.cpp (+995/−179).
  3. Is the CUDA prompt path's borrowing of expert-cache slots for KV staging on the same list as the 0.2.3 Metal fix?
  4. Would a full-memory coredump (836 MB unpacked, all 40,960 thread register sets) and the Xid payload word families be useful to you? We can keep them, and we can run any instrumented build or a deliberate stress session (raise --pool-workers, fresh 15–20k prompts with no cache reuse) — on this box we get ~1 event per 12 h of GPU-busy, on @Justsoso-W's box you get one per 15 requests.
  5. --pool-workers on Linux: would you rather we lower it (13 → 4) or reproduce the increase (13 → 17/24) first?

One small thing that may save other people time: the CUDA coredump environment that works here is CUDA_ENABLE_COREDUMP_ON_EXCEPTION=1, CUDA_COREDUMP_FILE=<path>/cuda-%p.dump, CUDA_COREDUMP_GENERATION_FLAGS=gzip_compress (full memory — the skip_global_memory,skip_constbank_memory,faulted_contexts_only set is what we used first and it hid the registers we needed), CUDA_COREDUMP_SHOW_PROGRESS=1. And CUDA_COREDUMP_GENERATION_FLAGS=lightweight is not accepted by driver 615.71.09.

Times above are as printed by the source named; our log and gpu.csv carry +08:00 stamps and journalctl on this box prints one hour behind them, which is a quirk of our own setup, not of the fault.

<!-- gh-comment-id:6366249308 --> @dandandelion commented on GitHub (Oct 23, 2026): <!-- obsidian --><p>Same card, same pack, same <code>verify: layer N never rang</code> — Linux data, including one signature nobody has reported yet and a decoded GPU coredump that names the faulting instruction.</p> <p>We are the other RTX 3080 Ti Laptop reporter in this thread family: the box behind the 2026-10-19 comments on #3134. Fedora 44, not Windows. We have been chasing this since 2026-10-13 with instrumentation of our own, and we now have four different fault signatures on one box. This is a report, not a "+1" — the parts that may be useful are the coredump, the per-layer trace ring dump of a fatal window, and one lever that measurably changed the fault rate.</p> <h2 data-heading="Our box, and our rate">Our box, and our rate</h2>   | this box -- | -- GPU / link | RTX 3080 Ti Laptop 16 GB, Gen4 x8, BAR1 16 GB (ReBar on) OS / driver | Fedora 44; driver 610.57.04 (was 615.71.09, faults continued across the change), GSP on, nvidia-powerd masked, power limit 125 W (factory default) kernel | 7.2.8 → 7.2.11 (faults on both) engine | 0.1.44.1 → 0.2.2 (self-reports 0.1.47); both fault CUDA | 13.4 toolkit (cuda_13.4.r13 in the device code), sm_86 CPU / RAM | 20 logical, 62 GB; engine RSS ~55 GB model | Qwen3.8-Flash-Next GSQ-RCO IQ3_S native pack, --spec 3 --mtp rt --max-context 262144 --kv int8 --expert-cache auto --vram-reserve-mib 944 --prefill auto --adapt-every 1 --adapt-swaps 160 --adapt-decay 0.97, no --kv-resident, no --pool-workers (automatic: 13 workers) rate, before | 1 death per 3 h 44 min (measured on 0.1.44.1: 345 requests, 39.2 M prompt tokens, 255,725 generated tokens, 115,326 verify windows) rate, now | ~1 fault per 12 h of GPU-busy time; the faulting engine had a 19.05 h streak before it died <p>We have 21 of these events from earlier runs, and the <code>0x40702c</code> values are not scattered: <strong>17 of the 21 fall inside one band, <code>0x2048654…0x204f376</code></strong> (27 KiB wide), and 4 of them inside a second, <code>0x2008cbb…0x2009d2b</code> (4 KiB wide). Today's value sits in the first band. Whatever the driver is reading when it validates a launch descriptor, the bad words keep coming from the same neighbourhood, across two engine versions and two kernels.</p> <h2 data-heading="The trace ring says exactly which launch died (&#x60;STRATA_VERIFY_TRACE=1&#x60;, #649)">The trace ring says exactly which launch died (<code>STRATA_VERIFY_TRACE=1</code>, #649)</h2> <p>Window 376626, steps 0…19 all <code>RANG</code> then <code>SERVED</code> with the handshake counters equal, then:</p> <pre><code>173584.0 RANG v0x7ffeec8f4d20 window 376626 step 19 layer 19 aux 364 | seq 20 flag 19 A 19 B 19 173402.1 SERVED v0x7ffeec8f4d20 window 376626 step 19 layer 19 aux 0 | seq 20 flag 19 A 20 B 20 0.0 NEVER-RANG v0x7ffeec8f4d20 window 376626 step 20 layer 20 aux 719 | seq 20 flag 20 A 20 B 20 GPU breadcrumbs (us after the window's first), the GPU got as far as layer 19: layer 18 group 0: pre(0)=8499.2 ... router+ring(17)=8715.3 layer 19 group 0: ... (stamps present) layer 20: nothing </code></pre> <p>The host <strong>had already served layer 20</strong> (<code>A 20 B 20</code>) — the doorbell simply never came back, and the GPU's own stamps stop at layer 19. So the launch the driver rejected is the first kernel of layer 20 of that window, and the request had already decoded 464 tokens at 51–54 tok/s after a 54,018-token prompt read. That long-standing "the layer number is random" observation has a mechanism-shaped answer for this case: the host is not late and the layer is not special — the launch is refused.</p> <p>Useful for sizing: the log's own capture lines show <strong>5 captures per engine run</strong> (<code>strata verify: captured the N-token window (upload no error, sync no error)</code>, N = 1…5), i.e. one instantiated graph exec per shape, and that run reached window 376,626 — so the same exec had been replayed on the order of 10⁵ times before the single bad launch. We do not know yet whether the descriptor image went bad at that instant or the words read on the way into the scheduler were bad; the engine exits on this error, so there is no "did the next replay fail too" answer.</p> <h2 data-heading="The decoded coredump names a device instruction (this rules out the CPU-side guess)">The decoded coredump names a device instruction (this rules out the CPU-side guess)</h2> <p>@Justsoso-W raised a fair question — an "illegal instruction" on a Haswell part with no AVX-512 could be CPU-side. It is not. We have a driver-written CUDA coredump from an SM-class fault, and here is how to read one, since <code>cuda-gdb --core &#x3C;file></code> refuses these by design (the file is a section-based CUDA core: 171,217 section headers, <code>e_phoff = 0</code>, 40,960 <code>.cudbg.regs.*</code> and 40,960 <code>.cudbg.local</code> sections — that is the format, not damage):</p> <pre><code class="language-sh">cuda-gdb --batch -nx -ex "target cudacore cuda-7531.dump" -ex "info cuda kernels" </code></pre> <p>That gives: <code>CUDA Exception: Warp Misaligned Address</code>, PC <code>0x7f1cb8dea2d0</code>, kernel <code>native_mmvq_multi_kernel&#x3C;Q6KTraits, 3, 4, 2, false, false></code>, grid 89,535, GridDim (320,1,1), BlockDim (32,4,1), all 58 SMs faulting identically. Disassembly of that instance (<code>cuobjdump -sass -fun &#x3C;mangled> engine/strata</code>):</p> <pre><code>/*03c0*/ IMAD.WIDE R20, R21, 0x2, R24 /*03d0*/ LDG.E.U16.CONSTANT R9, [R24.64+0xd0] &#x3C;- error PC = instance base + 0x3d0 </code></pre> <p>and the registers: R18/R19, R20/R21, R22/R23, <strong>R24/R25 all hold <code>0x7f23a7ce94fb</code> — an odd address</strong>. <code>[R24.64+0xd0]</code> = <code>0x7f23a7cea5cb</code>. Every offset that kernel uses is even, and <code>Alloc::take</code> rounds every block to 256 bytes, so the odd bit is in the <strong>pointer value itself</strong>, which is a launch parameter (<code>const Traits::Block*, float*</code>). Every CTA faulted identically, 49 s into a request that had already decoded 2,356 tokens. Same shape as the Oct 22 MMU fault: a wild value, not an off-by-N index.</p> <p>For the record, a <code>SKEDCHECK16_*</code> rejection writes <strong>no</strong> coredump at all (no CUDBG exception is raised), so nobody should go looking for one — the trace ring and the ESR words are the whole evidence base for that class.</p> <h2 data-heading="Two knobs that move the rate — one of them ours">Two knobs that move the rate — one of them ours</h2> <ul> <li><strong><code>STRATA_SH_STREAM=0</code></strong> (turn the shared-expert fork off; <code>verify.cpp:257-262</code> reads it, consumed at 1863/2108 in 0.2.2). On 0.1.44.1 that arm ran 1,992,045 tokens over 1,266 requests with <strong>1</strong> SM-class burst against <strong>~6.1</strong> expected from our own baseline (P(≤1 | 6.1) ≈ 6%) — about <strong>6× fewer</strong>. It costs nothing: median 52.7 → 61.0 tok/s. On 0.2.2 + kernel 7.2.11 + fork off, the SKED class is down to ~1 per 12 h of GPU-busy against ~1 per 1.15 h in the fork-on era. Not a fix — the class came back at 19:54 — but a measured suppression of a device-side fork inside the verify window.</li> <li><strong><code>--pool-workers</code></strong>, from your report, is the other concurrency axis and we have never varied it (we run 13 automatic). Your numbers are the strongest single clue in this whole thread: 17 workers ≈ 1 crash per 15–20 requests, 24 workers = three in a row. A rate that rises with host worker count, plus a rate that falls when a device-side stream fork is switched off, both point at the same thing: <strong>the concurrency around the launch/command queue, not one kernel's code.</strong></li> </ul> <h2 data-heading="Build provenance, so you know which number came from what">Build provenance, so you know which number came from what</h2> <ul> <li>Everything from 0.2.2 in this comment (both faults, the capture counts, the borrowed-slot figure) comes from a binary <strong>we built ourselves from tag <code>v0.2.2</code></strong> — <code>cmake -DCMAKE_CUDA_ARCHITECTURES=86 -DCUDAToolkit_ROOT=/usr/local/cuda-13.4 -DSTRATA_NATIVE_EXPERTS=ON</code>, 76,799,992 bytes, no local patches to any source file, only environment variables. It self-reports <code>engine 0.1.47</code>. We have not installed 0.2.3 yet; we will build it and report.</li> <li>The 0.1.44.1 data comes from the prebuilt engine <strong>plus one local patch to <code>src/core/verify.cpp</code></strong> that added (a) gap breadcrumbs inside a layer, (b) <code>cudaGraphUpload</code> before every replay behind <code>STRATA_VERIFY_GRAPH_UPLOAD=1</code>. Those two additions do not exist upstream and are not in anything quoted above from 0.2.2. The <code>STRATA_VERIFY_TRACE=1</code> ring quoted above <em>is</em> upstream's own (#649) and works unmodified on 0.2.2.</li> <li>The coredump in the section above was written on the patched 0.1.44.1 build, but the faulting code is stock: the instruments were in <code>verify.cpp</code> only, and the named kernel and its launch parameters are unmodified.</li> </ul> <p>Per the tracker-reset note, #3134 is reopenable with <code>/reopen</code> now that we have re-tested on 0.2.x; we would rather keep the data in one place, so it is going here.</p> <h2 data-heading="What we have ruled out, with the measurement">What we have ruled out, with the measurement</h2> <ul> <li><strong>KV format is not the discriminator.</strong> <code>--kv k8v4 → int8</code> did not change our fault class; your "only delays it by one round" agrees. The engine calls <code>kv_gather_q8_step</code> + <code>kv_gather_q4_step</code> from <code>layer.cpp:1140-1142</code> either way.</li> <li><strong>Driver version</strong>: 615.71.09 → 610.57.04, faults continued. <strong>Kernel</strong>: 7.2.8 → 7.2.11, faults continued (the <code>Xid 31</code> came 29 min into the first run on the new kernel). <strong>Engine</strong>: 0.1.41…0.1.44.1…0.2.2 all fault; 0.1.48 not installed here yet.</li> <li><strong>Not OOM</strong>: zero OOM records in any death; VRAM free was 525–535 MiB at both 0.2.2 faults, which is our normal busy state (79% of all GPU-busy samples have 512–767 MiB free).</li> <li><strong>Not thermals or the power cap</strong>: 58 °C at the fault moment, 125 W = factory default, throttle mask unchanged in the sample before.</li> <li><strong>Not the display co-residency</strong>: <code>strata-vision</code> running or not changed nothing in the fault rate.</li> <li><strong>Not a hanging GPU</strong>: except for the halt class below, the card stays readable; the server keeps serving and only the one request dies.</li> </ul> <p>One other class we see on this box, which may or may not be the same animal: <code>Xid 62</code> (µC halt) followed by <code>Xid 154</code> (PF FLR) and 8 × <code>Xid 45</code>, with <strong>no</strong> <code>Xid 13</code>, <strong>no</strong> <code>Xid 31</code>, no SKEDCHECK and a near-empty coredump (8,732 bytes of tables, no registers). 18 such events since 2026-09-17; two of them within 9 h of GPU time in the last fortnight. Payload words repeat across days — e.g. two events on different days share the first word and four trailing words: <code>224c1547 … 202c3d4a 202c26c6 202c1d5c 202bfd44 202ad272</code>.</p> <h2 data-heading="Questions for you">Questions for you</h2> <ol> <li>Given the ring (<code>A 20 B 20</code>, host served the step) and the driver's own <code>CTA_THREAD_DIMENSION_ZERO</code> verdict: what writes the launch descriptor for a node of an instantiated graph, and what could make the CTA/thread dimensions read as zero <strong>once in ~10⁵ replays</strong>? Could the engine re-read and validate a node's parameters (<code>cudaGraphExecKernelNodeGetParams</code>) before <code>cudaGraphLaunch</code>, and report the dimensions it <em>thinks</em> it asked for?</li> <li>Would you take a build behind an env that calls <code>cudaGraphUpload</code> <strong>before every replay</strong> rather than once after instantiate? That is the A/B we would most like to run; upstream calls it once at capture (<code>verify.cpp:2437</code> in 0.2.2), ours did it per replay, and the patch does not survive the 0.2.2 rewrite of <code>verify.cpp</code> (+995/−179).</li> <li>Is the CUDA prompt path's borrowing of expert-cache slots for KV staging on the same list as the 0.2.3 Metal fix?</li> <li>Would a full-memory coredump (836 MB unpacked, all 40,960 thread register sets) and the <code>Xid</code> payload word families be useful to you? We can keep them, and we can run any instrumented build or a deliberate stress session (raise <code>--pool-workers</code>, fresh 15–20k prompts with no cache reuse) — on this box we get ~1 event per 12 h of GPU-busy, on @Justsoso-W's box you get one per 15 requests.</li> <li><code>--pool-workers</code> on Linux: would you rather we lower it (13 → 4) or reproduce the increase (13 → 17/24) first?</li> </ol> <p>One small thing that may save other people time: the CUDA coredump environment that works here is <code>CUDA_ENABLE_COREDUMP_ON_EXCEPTION=1</code>, <code>CUDA_COREDUMP_FILE=&#x3C;path>/cuda-%p.dump</code>, <code>CUDA_COREDUMP_GENERATION_FLAGS=gzip_compress</code> (full memory — the <code>skip_global_memory,skip_constbank_memory,faulted_contexts_only</code> set is what we used first and it hid the registers we needed), <code>CUDA_COREDUMP_SHOW_PROGRESS=1</code>. And <code>CUDA_COREDUMP_GENERATION_FLAGS=lightweight</code> is not accepted by driver 615.71.09.</p> <p>Times above are as printed by the source named; our log and <code>gpu.csv</code> carry <code>+08:00</code> stamps and <code>journalctl</code> on this box prints one hour behind them, which is a quirk of our own setup, not of the fault.</p>
Author
Owner

@mkemalemdar commented on GitHub (Oct 27, 2026):

Another data point, on an older engine than the range above (0.1.38) and on Blackwell, Linux.

What happened: a long agent session through the OpenAI API (pi coding agent). Requests at 147K, 148K, 150K tokens of context ran fine; the next one, at 151,443 tokens (151,438 reused + 5 read), failed 40 tokens into the thinking:

[strata] reading the prompt: 151,438 of 151,443 tokens, 1 s so far
[strata] thinking: 40 of max 106914 tokens, 47.0 tok/s, 2 s
[strata] the engine reported an error: verify: layer 37 never rang (an illegal memory access was encountered)
[strata] done: 64 tokens in 3 s (42.5 tok/s) (error, cancel=False)

The kernel logged an MMU fault for the engine at the same second:

NVRM: Xid (PCI:0000:01:00): 31, pid=8708, name=strata, channel 0x0000000a, intr 00000000. MMU Fault: ENGINE GRAPHICS GPC2 GPCCLIENT_T1_1 faulted @ 0x7e66_779b7000. Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ

The last successful request's stats, for the KV state at the time:

strata serve: prompt 150292 tokens = 149320 reused + 972 read in 1414 ms (687.3 tok/s), 395 generated in 8088 ms (48.8 tok/s), drafts accepted 206 of 295, 6 checkpoints
strata serve: KV streaming: 97.37% of 497372232 block reads hit VRAM, 52611.3 MiB read from RAM
strata serve: suffix drafts: 9 windows, 23 of 25 drafts accepted

Reproduction: seen once; first occurrence in this engine's log (11 engine starts). Not reproduced on demand. No sanitizer run yet.

Setup

  • Strata engine 0.1.38 (GET /v1/status), Docker image built from source at 99f3dbd, CUDA 13.0.48
  • RTX 5060 Ti 16 GB (sm_120), driver 595.91.07 (open kernel module) · Ryzen 7 7800X3D · 30 GB RAM · Ubuntu, kernel 7.0
  • Qwen3.8-Flash-Next GSQ-RCO IQ1_M pack, --max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --mtp ... --expert-cache auto --prefill auto --resident-experts --vision --vram-reserve-mib 700, min_free_vram_mib 15000
<!-- gh-comment-id:6452668945 --> @mkemalemdar commented on GitHub (Oct 27, 2026): Another data point, on an older engine than the range above (0.1.38) and on Blackwell, Linux. **What happened:** a long agent session through the OpenAI API (pi coding agent). Requests at 147K, 148K, 150K tokens of context ran fine; the next one, at 151,443 tokens (151,438 reused + 5 read), failed 40 tokens into the thinking: ``` [strata] reading the prompt: 151,438 of 151,443 tokens, 1 s so far [strata] thinking: 40 of max 106914 tokens, 47.0 tok/s, 2 s [strata] the engine reported an error: verify: layer 37 never rang (an illegal memory access was encountered) [strata] done: 64 tokens in 3 s (42.5 tok/s) (error, cancel=False) ``` The kernel logged an MMU fault for the engine at the same second: ``` NVRM: Xid (PCI:0000:01:00): 31, pid=8708, name=strata, channel 0x0000000a, intr 00000000. MMU Fault: ENGINE GRAPHICS GPC2 GPCCLIENT_T1_1 faulted @ 0x7e66_779b7000. Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ ``` The last successful request's stats, for the KV state at the time: ``` strata serve: prompt 150292 tokens = 149320 reused + 972 read in 1414 ms (687.3 tok/s), 395 generated in 8088 ms (48.8 tok/s), drafts accepted 206 of 295, 6 checkpoints strata serve: KV streaming: 97.37% of 497372232 block reads hit VRAM, 52611.3 MiB read from RAM strata serve: suffix drafts: 9 windows, 23 of 25 drafts accepted ``` **Reproduction:** seen once; first occurrence in this engine's log (11 engine starts). Not reproduced on demand. No sanitizer run yet. **Setup** - Strata engine 0.1.38 (`GET /v1/status`), Docker image built from source at 99f3dbd, CUDA 13.0.48 - RTX 5060 Ti 16 GB (sm_120), driver 595.91.07 (open kernel module) · Ryzen 7 7800X3D · 30 GB RAM · Ubuntu, kernel 7.0 - Qwen3.8-Flash-Next GSQ-RCO IQ1_M pack, `--max-context 262144 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --mtp ... --expert-cache auto --prefill auto --resident-experts --vision --vram-reserve-mib 700`, `min_free_vram_mib` 15000
Author
Owner

@dandandelion commented on GitHub (Oct 29, 2026):

Follow-up to my comment of 2026-10-23. Same machine (RTX 3080 Ti Laptop, sm_86, Linux, driver 615.78.08, GSP off),

same pack as yours (GSQ-RCO IQ3_S native), upstream prebuilt engine 0.1.50. New result: on this box the fault follows

the pack, and nothing else.

What I changed: only the pack

I ran the identical binary, flags and settings twice, changing only --pack/--native/--ple-gguf:

pack expert quantization exposure faults
ISTA-DASLab GSQ-RCO IQ3_S 6 expert types chosen per layer (4 gate/up + 2 down) ~548,000 tokens 4
agentionai Gyro-M (TQ2_T) one expert type in every layer 6,884,217 computed tokens, 2,821 requests, 13.0 h of compute 0

So three candidates remain, and I cannot separate them from here (unconfirmed): (1) per-layer expert variation —
different kernel and different blob size on every layer; (2) the IQ-family expert kernels themselves, which Gyro-M
never executes; (3) attention-side variety, which Gyro-M also never exercises.

A suggestion for this thread

Since you run the same pack, the discriminating test is cheap at your scale: run one uniform pack with the same
config. Either Gyro-M (one expert type) or ISTA-DASLab Q2_0 (uniform type-42 experts, attention still varied).
If the "second request always fails" pattern disappears, the per-layer mix in the pack is the trigger rather than the
prefill → verify boundary; if it persists, then the boundary is real and the pack only decides how often it trips.

One difference worth noting between our machines: your failures land on request 2 after a restart, mine needed
~150k tokens (or ~72k decode tokens) each time, and my restart-to-restart counts were 145k / 163k / 168k. Same pack,
same GPU, different frequency — so the configuration modulates how often it happens, not whether it can.

I can paste both engine logs (per-request prompt length, reused tokens, expert-cache hit rate, KV block reads), the
full Xid blocks and the tensor tables if that helps.

<!-- gh-comment-id:6486656348 --> @dandandelion commented on GitHub (Oct 29, 2026): <!-- obsidian --><p>Follow-up to my comment of 2026-10-23. Same machine (RTX 3080 Ti Laptop, sm_86, Linux, driver 615.78.08, GSP off),<br> same pack as yours (GSQ-RCO IQ3_S native), upstream prebuilt engine 0.1.50. New result: <strong>on this box the fault follows<br> the pack, and nothing else.</strong></p> <h2 data-heading="What I changed: only the pack">What I changed: only the pack</h2> <p>I ran the identical binary, flags and settings twice, changing only <code>--pack/--native/--ple-gguf</code>:</p> pack | expert quantization | exposure | faults -- | -- | -- | -- ISTA-DASLab GSQ-RCO IQ3_S | 6 expert types chosen per layer (4 gate/up + 2 down) | ~548,000 tokens | 4 agentionai Gyro-M (TQ2_T) | one expert type in every layer | 6,884,217 computed tokens, 2,821 requests, 13.0 h of compute | 0 <p>So three candidates remain, and I cannot separate them from here (<strong>unconfirmed</strong>): (1) per-layer expert variation —<br> different kernel and different blob size on every layer; (2) the IQ-family expert kernels themselves, which Gyro-M<br> never executes; (3) attention-side variety, which Gyro-M also never exercises.</p> <h2 data-heading="A suggestion for this thread">A suggestion for this thread</h2> <p>Since you run the same pack, the discriminating test is cheap at your scale: run one <strong>uniform</strong> pack with the same<br> config. Either Gyro-M (one expert type) or ISTA-DASLab <strong>Q2_0</strong> (uniform type-42 experts, attention still varied).<br> If the "second request always fails" pattern disappears, the per-layer mix in the pack is the trigger rather than the<br> prefill → verify boundary; if it persists, then the boundary is real and the pack only decides how often it trips.</p> <p>One difference worth noting between our machines: your failures land on request 2 after a restart, mine needed<br> ~150k tokens (or ~72k decode tokens) each time, and my restart-to-restart counts were 145k / 163k / 168k. Same pack,<br> same GPU, different frequency — so the configuration modulates how often it happens, not whether it can.</p> <p>I can paste both engine logs (per-request prompt length, reused tokens, expert-cache hit rate, KV block reads), the<br> full Xid blocks and the tensor tables if that helps.</p>
Author
Owner

@dandandelion commented on GitHub (Oct 30, 2026):

Clean IQ3_S runs underclocking memory clock at -300mhz as suggested by the findings in #4190

Reasons also explained in the thread

<!-- gh-comment-id:6518651676 --> @dandandelion commented on GitHub (Oct 30, 2026): Clean IQ3_S runs underclocking memory clock at `-300mhz` as suggested by the findings in #4190 Reasons also explained in the thread
Author
Owner

@ccmspringming commented on GitHub (Nov 7, 2026):

Related but distinct from the original report: a version regression I can pin to the new 12-token verify window.

Same machine, same pack, same flags — only the engine differs. 0.1.54 runs in production; 0.1.55 and 0.1.57 fault at startup:

engine 0.1.54 (works) engine 0.1.55 / 0.1.57 (faults)
verify window window up to 5 tokens, 69.7 MiB of device buffers window up to 12 tokens, 110.2 MiB of device buffers
captured sizes 1, 3, 4, 5 1, 2, 3, 4, 5, 12
startup serves illegal memory access before the first request

Environment

  • GPU: RTX 3090 24 GB, sm_86, driver 615.78.08, CUDA 13
  • CPU: i7-10700K (8C/16T), RAM 61.7 GiB
  • Model: Qwen3.8-Flash-Next IQ3_S native IQ pack (GSQ-RCO family, a locally abliterated variant, 83,549,259,040 bytes), pack built by the shipped iq_pack of the same version line
  • Config: --max-context 196608 --kv int8 --vision --parallel 1 --spec 3 --expert-cache 6800 --kv-resident 32768 --prefill 8192 --vram-reserve-mib 700
  • Images: strata:0.2.8 (engine 0.1.54, works), strata:0.2.9 (engine 0.1.55), strata:0.2.11 (engine 0.1.57)
  • Both the failing and the working images were built from the official component tarballs, SHA-256 verified, no local source patches.

What changed between the working and the failing engine

This is the whole difference I can see in the logs, at startup, same config, same pack, same machine:

engine 0.1.54 (works) engine 0.1.55 / 0.1.57 (faults)
verify window window up to 5 tokens, 69.7 MiB of device buffers window up to 12 tokens, 110.2 MiB of device buffers
window sizes actually captured 1, 3, 4, 5 1, 2, 3, 4, 5, 12
startup serves illegal memory access before the first request

Symptom (deterministic, 5/5 reboots)

strata verify: window up to 12 tokens, 110.2 MiB of device buffers
strata serve: 1814 MiB of VRAM free with everything loaded
strata serve: --lookup-max-t 12: MTP windows up to 3 tokens, window sizes 1,2,3,4,5,12
strata verify: capturing the 12-token window (1814 MiB of VRAM free)
strata verify: captured the 12-token window (upload no error, sync no error) in 22–45 ms
strata ab: GATE=STRATA_CPU_IQ_ALL_EXACT1 active=1
strata serve: verify: an illegal memory access was encountered

Note the shape: the capture succeeds and reports upload no error, sync no error; the fault comes when the window is executed. The launcher then reports probe_http_400 and exits with code 6.

Matrix (all 196608 context, KV int8, same pack)

engine settings result
0.1.55 expert-cache 6800 (241 MiB free) verify: layer 2 never rang
0.1.55 expert-cache 6200 (529 MiB free) verify: layer 26 never rang
0.1.55 6200 + STRATA_GDN_TC=0 + STRATA_GDN_CONVL2=0 same fault
0.1.57 spec 3, expert-cache 6200 (1814 MiB free) illegal memory access
0.1.57 spec 3 + STRATA_SH_STREAM=0 same fault
0.1.57 spec 3 + STRATA_CPU_IQ_ALL_EXACT1=0 same fault
0.1.57 spec 2 + prefill 2048 same fault (boot probe runs the 12-token window)
0.1.57 spec 2 + prefill 8192 boots (85 s), serves

Ruled out

  • VRAM headroom: 241, 529, and 1814 MiB free all fault. Not OOM.
  • STRATA_SH_STREAM=0: no effect on 0.1.57. (Separately, on 0.1.54 it is harmful on this pack — see below.)
  • STRATA_CPU_IQ_ALL_EXACT1=0: no effect. The GATE=… active=1 line still prints immediately before the fault.
  • The GDN tensor-core prompt kernels (new in 0.1.55): disabling both had no effect.
  • Pack corruption: the same pack, same file on disk, runs on 0.1.54 in production.

The one 0.1.57 configuration that boots still cannot serve long prompts

With spec 2 + prefill 8192 it comes up and behaves well on short and medium work:

  • vision: 3.91 s, correct on a two-colour card with an ID string
  • a 7-question quality suite: 6/7 (identical to 0.1.54)
  • a 6-question hard suite: 6/6 in 38.5 s, versus 44 s on 0.1.54 (faster)

But the first ~30K-token prompt kills it:

prefill copy_i32: an illegal memory access was encountered

Container exits (6). That is the #1468 family ("prefill copy_i32: illegal memory access on long prompts when the prefill chunk is large"), but here the chunk is 8192, not auto:32768.

Two side observations that may be worth separate issues

  1. --set no-capture is accepted and then silently dropped. The value lands in the preset's extra as "--no-capture": "", but the generated run args in state/strata/launch/<preset>.json do not contain it, and the log still says capturing …. Same for lookup-max-t. There is no way to reach --no-capture through strata launch, which makes the graph-replay A/B impossible from the container path.
  2. STRATA_SH_STREAM=0 breaks generation on 0.1.54 with this pack. With it set, a plain "describe the West Lake in three sentences" request returns finish_reason: stop, predicted_n: 1, empty content and empty reasoning_content. Unsetting it and restarting restores normal output (74 tokens on the same prompt). Since #3813 recommends this variable as a fault-rate lever, anyone on 0.1.54 should check their output before trusting it.

Asks

  1. Is the 12-token window path expected to work on sm_86, or is it gated by something I am missing (a capability check, a VRAM floor, a pack property)?
  2. Is there a supported way to cap the verify window on 0.1.55+ (--lookup-max-t 5, roughly what 0.1.54 did), so I can A/B the new prompt-path buffers without the wide window?
  3. Would a cudaGraphUpload-before-every-replay build (the A/B requested in #3813) be accepted upstream? That is the one experiment I cannot run from a released image.
  4. Should the 0.1.57 prefill copy_i32 fault at prefill 8192 be reported against #1468 instead of here?

Data I can attach

Full engine logs for every row of the matrix (0.1.54 startup, 0.1.55 ×3, 0.1.57 ×5), the exact docker run invocations, the preset JSONs, and the pack's native_experts.txt header. Say the word and I will paste them.

<!-- gh-comment-id:6701008171 --> @ccmspringming commented on GitHub (Nov 7, 2026): Related but distinct from the original report: **a version regression I can pin to the new 12-token verify window.** Same machine, same pack, same flags — only the engine differs. 0.1.54 runs in production; 0.1.55 and 0.1.57 fault at startup: | | engine 0.1.54 (works) | engine 0.1.55 / 0.1.57 (faults) | |---|---|---| | verify window | `window up to 5 tokens, 69.7 MiB of device buffers` | `window up to 12 tokens, 110.2 MiB of device buffers` | | captured sizes | 1, 3, 4, 5 | 1, 2, 3, 4, 5, **12** | | startup | serves | `illegal memory access` before the first request | --- ### Environment - GPU: RTX 3090 24 GB, sm_86, driver 615.78.08, CUDA 13 - CPU: i7-10700K (8C/16T), RAM 61.7 GiB - Model: Qwen3.8-Flash-Next **IQ3_S native IQ pack** (GSQ-RCO family, a locally abliterated variant, 83,549,259,040 bytes), pack built by the shipped `iq_pack` of the same version line - Config: `--max-context 196608 --kv int8 --vision --parallel 1 --spec 3 --expert-cache 6800 --kv-resident 32768 --prefill 8192 --vram-reserve-mib 700` - Images: `strata:0.2.8` (engine 0.1.54, **works**), `strata:0.2.9` (engine 0.1.55), `strata:0.2.11` (engine 0.1.57) - Both the failing and the working images were built from the official component tarballs, SHA-256 verified, no local source patches. ### What changed between the working and the failing engine This is the whole difference I can see in the logs, at startup, same config, same pack, same machine: | | engine 0.1.54 (works) | engine 0.1.55 / 0.1.57 (faults) | |---|---|---| | verify window | `window up to 5 tokens, 69.7 MiB of device buffers` | `window up to 12 tokens, 110.2 MiB of device buffers` | | window sizes actually captured | 1, 3, 4, 5 | 1, 2, 3, 4, 5, **12** | | startup | serves | `illegal memory access` before the first request | ### Symptom (deterministic, 5/5 reboots) ``` strata verify: window up to 12 tokens, 110.2 MiB of device buffers strata serve: 1814 MiB of VRAM free with everything loaded strata serve: --lookup-max-t 12: MTP windows up to 3 tokens, window sizes 1,2,3,4,5,12 strata verify: capturing the 12-token window (1814 MiB of VRAM free) strata verify: captured the 12-token window (upload no error, sync no error) in 22–45 ms strata ab: GATE=STRATA_CPU_IQ_ALL_EXACT1 active=1 strata serve: verify: an illegal memory access was encountered ``` Note the shape: **the capture succeeds and reports `upload no error, sync no error`; the fault comes when the window is executed.** The launcher then reports `probe_http_400` and exits with code 6. ### Matrix (all 196608 context, KV int8, same pack) | engine | settings | result | |---|---|---| | 0.1.55 | expert-cache 6800 (241 MiB free) | `verify: layer 2 never rang` | | 0.1.55 | expert-cache 6200 (529 MiB free) | `verify: layer 26 never rang` | | 0.1.55 | 6200 + `STRATA_GDN_TC=0` + `STRATA_GDN_CONVL2=0` | same fault | | 0.1.57 | spec 3, expert-cache 6200 (1814 MiB free) | `illegal memory access` | | 0.1.57 | spec 3 + `STRATA_SH_STREAM=0` | same fault | | 0.1.57 | spec 3 + `STRATA_CPU_IQ_ALL_EXACT1=0` | same fault | | 0.1.57 | spec 2 + prefill 2048 | same fault (boot probe runs the 12-token window) | | **0.1.57** | **spec 2 + prefill 8192** | **boots (85 s), serves** | ### Ruled out - **VRAM headroom**: 241, 529, and 1814 MiB free all fault. Not OOM. - **`STRATA_SH_STREAM=0`**: no effect on 0.1.57. (Separately, on 0.1.54 it is *harmful* on this pack — see below.) - **`STRATA_CPU_IQ_ALL_EXACT1=0`**: no effect. The `GATE=… active=1` line still prints immediately before the fault. - **The GDN tensor-core prompt kernels** (new in 0.1.55): disabling both had no effect. - **Pack corruption**: the same pack, same file on disk, runs on 0.1.54 in production. ### The one 0.1.57 configuration that boots still cannot serve long prompts With `spec 2 + prefill 8192` it comes up and behaves well on short and medium work: - vision: 3.91 s, correct on a two-colour card with an ID string - a 7-question quality suite: 6/7 (identical to 0.1.54) - a 6-question hard suite: **6/6 in 38.5 s, versus 44 s on 0.1.54** (faster) But the first ~30K-token prompt kills it: ``` prefill copy_i32: an illegal memory access was encountered ``` Container exits `(6)`. That is the #1468 family ("prefill copy_i32: illegal memory access on long prompts when the prefill chunk is large"), but here the chunk is 8192, not auto:32768. ### Two side observations that may be worth separate issues 1. **`--set no-capture` is accepted and then silently dropped.** The value lands in the preset's `extra` as `"--no-capture": ""`, but the generated run args in `state/strata/launch/<preset>.json` do not contain it, and the log still says `capturing …`. Same for `lookup-max-t`. There is no way to reach `--no-capture` through `strata launch`, which makes the graph-replay A/B impossible from the container path. 2. **`STRATA_SH_STREAM=0` breaks generation on 0.1.54 with this pack.** With it set, a plain "describe the West Lake in three sentences" request returns `finish_reason: stop`, `predicted_n: 1`, empty `content` and empty `reasoning_content`. Unsetting it and restarting restores normal output (74 tokens on the same prompt). Since #3813 recommends this variable as a fault-rate lever, anyone on 0.1.54 should check their output before trusting it. ### Asks 1. Is the 12-token window path expected to work on sm_86, or is it gated by something I am missing (a capability check, a VRAM floor, a pack property)? 2. Is there a supported way to cap the verify window on 0.1.55+ (`--lookup-max-t 5`, roughly what 0.1.54 did), so I can A/B the new prompt-path buffers without the wide window? 3. Would a `cudaGraphUpload`-before-every-replay build (the A/B requested in #3813) be accepted upstream? That is the one experiment I cannot run from a released image. 4. Should the 0.1.57 `prefill copy_i32` fault at prefill 8192 be reported against #1468 instead of here? ### Data I can attach Full engine logs for every row of the matrix (0.1.54 startup, 0.1.55 ×3, 0.1.57 ×5), the exact `docker run` invocations, the preset JSONs, and the pack's `native_experts.txt` header. Say the word and I will paste them.
Author
Owner

@ccmspringming commented on GitHub (Nov 7, 2026):

Related data point, different shape: I pinned a version regression in the same family on an RTX 3090 (sm_86, driver 615.78.08) with an IQ3_S native pack.

0.1.54 caps the verify window at 5 tokens and runs in production here. 0.1.55 and 0.1.57 add a 12-token window, and it faults deterministically at startup (captured ... upload no error, sync no error → illegal memory access). Full matrix, including the one 0.1.57 setting that boots but then dies in prefill copy_i32: #5449

One warning for anyone trying the STRATA_SH_STREAM=0 lever from this thread on 0.1.54: with it set, a plain request returns empty content, empty reasoning_content, finish_reason: stop, predicted_n: 1 on this pack. Unsetting it restores normal output. Worth checking generation before trusting the fault-rate win.

<!-- gh-comment-id:6701021854 --> @ccmspringming commented on GitHub (Nov 7, 2026): Related data point, different shape: I pinned a **version regression** in the same family on an RTX 3090 (sm_86, driver 615.78.08) with an IQ3_S native pack. 0.1.54 caps the verify window at 5 tokens and runs in production here. 0.1.55 and 0.1.57 add a **12-token window**, and it faults deterministically at startup (`captured ... upload no error, sync no error` → `illegal memory access`). Full matrix, including the one 0.1.57 setting that boots but then dies in `prefill copy_i32`: #5449 One warning for anyone trying the `STRATA_SH_STREAM=0` lever from this thread on **0.1.54**: with it set, a plain request returns empty `content`, empty `reasoning_content`, `finish_reason: stop`, `predicted_n: 1` on this pack. Unsetting it restores normal output. Worth checking generation before trusting the fault-rate win.
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#1614
No description provided.