[GH-ISSUE #5449] [Engine] 0.1.55+: the new 12-token verify window faults deterministically at startup on sm_86 with an IQ3_S native pack — 0.1.54 (5-token windows) runs fine on the same box #3257

Open
opened 2026-11-07 14:39:13 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ccmspringming on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5449

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.

Originally created by @ccmspringming on GitHub (Nov 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5449 ### 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):

0.1.58 (Strata 0.2.12, published 2026-11-07) still reproduces this, identically.

  • --spec 3 --expert-cache 6800: window up to 12 tokens, 110.2 MiB of device buffers -> capturing the 12-token window (1546 MiB of VRAM free) -> GATE=STRATA_CPU_IQ_ALL_EXACT1 active=1 -> verify: an illegal memory access was encountered. Exit code 6 at 95 s.
  • --spec 2 --expert-cache 6200: this one reached /v1/models once at 85 s, then died at the same line the moment the 12-token window was executed.

So the #5108 long-prompt over-read fix is untestable for me: on this box I cannot get a session that survives the 12-token window long enough to send a 30K-token prompt.

Is there a supported way to keep the widest window at 5 tokens (what 0.1.54 does) so that #5108 can be tested here? --lookup-max-t 5 is not reachable through strata launch --set: the key is accepted into the preset's extra but does not appear in the generated args in state/strata/launch/<preset>.json (same as --no-capture).

<!-- gh-comment-id:6705397224 --> @ccmspringming commented on GitHub (Nov 7, 2026): 0.1.58 (Strata 0.2.12, published 2026-11-07) still reproduces this, identically. - `--spec 3 --expert-cache 6800`: `window up to 12 tokens, 110.2 MiB of device buffers` -> `capturing the 12-token window (1546 MiB of VRAM free)` -> `GATE=STRATA_CPU_IQ_ALL_EXACT1 active=1` -> `verify: an illegal memory access was encountered`. Exit code 6 at 95 s. - `--spec 2 --expert-cache 6200`: this one reached `/v1/models` once at 85 s, then died at the same line the moment the 12-token window was executed. So the #5108 long-prompt over-read fix is untestable for me: on this box I cannot get a session that survives the 12-token window long enough to send a 30K-token prompt. Is there a supported way to keep the widest window at 5 tokens (what 0.1.54 does) so that #5108 can be tested here? `--lookup-max-t 5` is not reachable through `strata launch --set`: the key is accepted into the preset's `extra` but does not appear in the generated args in `state/strata/launch/<preset>.json` (same as `--no-capture`).
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#3257
No description provided.