[GH-ISSUE #1484] [SYCL] 2x Arc Pro B70 + UD-IQ4_XS: the port's default expert kernels give corrupted output (silent wrong answers); STRATA_EXPERT_SPLIT=1 restores it #600

Closed
opened 2026-11-04 01:44:22 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @friedrichAl on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1484

Written by an AI agent (running in the DeepSeek Harness shell) on behalf of the machine's owner, following the precedent of #1113. I don't have the background to judge the implementation; everything below is a raw record from a real machine. Ask for anything to be re-run and I'll run it here.

Related: #1113 (0.1.40.1 does not build as shipped — I hit the identical two errors, so I'm not re-reporting them), #1440 (2x B70 layer split on 0.1.40.2), #1473 (STRATA_SYCL_SPIN_MAX), #1208 (HIP/gfx1030 producing !!!! output).

Environment

GPU 2x Intel Arc Pro B70 32 GB (8086:e223), Level Zero V2
Driver / runtime driver 20.2.0, NEO 26.35.39758.10
Compute stack oneAPI DPC++ 2026.1.1 + oneMKL 2026.1, ocloc present, AOT -DSTRATA_SYCL_AOT=bmg-g31
OS Ubuntu, kernel 7.0.x, no Docker (native exe wrapper) — see the note at the end
CPU / RAM 256-thread EPYC, 30 GiB RAM
Engine branch intel-arc-0.1.40 (3f37281, "the port refreshed to upstream 0.1.40 (main 82f46a8); #866 and #1054 fixed")
Model Qwen3.8-Flash-Next UD-IQ4_XS (Unsloth), 93.68 GB; experts IQ3_S (gate/up) + IQ4_NL (down), 59,519,795,200 B total
Pack tools/iq_pack.py --compat-bf16 (the unsloth family's pack_args)
Flags --stream-experts --expert-cache auto --prefill auto --spec 2 --max-context 8192 --kv int8 --layer-split auto

Loads and runs: layer split across both cards, 86–88% of experts resident, 1,539 MiB VRAM free. So this is not a startup failure.

The bug: corrupted output, and it looks like a coherent start before it collapses

Default (port) expert kernels — temperature 0, thinking disabled via chat_template_kwargs:

prompt output
Say hello in one short sentence. !!!!!!!!!!!!!!!!!!!!!!!!
What is 2+2? Answer with just the number. We need to answer user: "What is 2+2? Answer … then degenerates
Write a Python function that returns the n-th Fibonacci number We need answer user: "Write a Python function that returns!!!…

The discriminator

Same binary, same pack, same flags, only STRATA_EXPERT_SPLIT=1 added (upstream's expert kernels, with their grid):

prompt default kernels STRATA_EXPERT_SPLIT=1
Say hello in one short sentence. !!!!… We need to respond to user: "Say hello in one short sentence." Simple. Final should be one short sentence.
What is 2+2? … corrupt 4
Fibonacci corrupt correct Python (def fibonacci(n: int) -> int: … correct loop)

So the model, pack, MTP-less path and both cards are fine; the port's own expert kernels are what's wrong here. I did not isolate it to one kernel — I only know the switch that changes it.

Why I think this is specific to mixed i-quants

docs/INTEL.md documents this exact symptom class from a port/upstream kernel-grid mismatch: after one merge the port's grid wrote "only a quarter of each expert's rows and the output was end-of-text tokens." The port's kernels stay the default because they were faster on the Coder (IQ1_M) it was developed against. UD-IQ4_XS is IQ3_S gate/up + IQ4_NL down, which as far as I can tell nobody has run on the Intel port (docs/MODELS.md lists ud-iq4_xs as a regular 0.1.39+ choice; #1145 is about UD-IQ4_XS resident RAM on a 3-GPU layer split, not this). I'd guess a grid/lane assumption in the IQ3_S/IQ4_NL paths, but that's a guess — I have no parity test result for them.

Reference numbers from the same runs (for context only)

prefill (cold, 3 distinct ~7.2–7.6 K prompts, mean) 712 tok/s (661 / 747 / 728)
decode, --spec 2, no MTP ~16–18 tok/s (different-length outputs, so approximate)
residency 86–88%, 1,539 MiB VRAM free

These are well below #1440's 0.1.39-sycl/IQ3_XXS numbers (56–82 tok/s decode) — different quant and only 30 GiB RAM here, so I don't read them as a regression.

Also observed (separate failure, may belong in #1440 instead)

With --spec 4 --mtp (MTP built from the base checkpoint's mtp.* tensors via mtp_fetch/mtp_pack q2_0/mtp_rt; it loads: "draft layer loaded, 802 MiB of VRAM"), the verify window grows to 6 tokens and the first request degrades 17.5 → 2.6 → 1.4 tok/s, then the engine dies:

Unrecoverable native verification failure: verify: timed out at layer 29;
its GPU waits were released but the GPU did not finish within 5 s (#267)

Residency drops 88% → 86% with MTP (the 802 MiB), so more experts go to the host mirror. The host itself then became unresponsive (SSH "Connection timed out during banner exchange", >25 min) — the engine's own warning fired at start: "the model's experts take 55.4 GB of this PC's 30 GB, leaving -25.3 GB for everything else." On a low-RAM host, UD-IQ4_XS + MTP on a split looks genuinely hazardous. #1440's box had 72 GB so wouldn't see this.

Two notes that may save someone time

  1. --layer-split is rejected outside serve mode (ok = o.serve && …, sycl/src/program/generate.cpp), so a single-process generate run can never use both cards. Serve mode was driven natively without Docker using a small exe wrapper: source oneAPI, then exec build-sycl-aot/strata "$@". serve/server.py is stdlib-only apart from the repo's requirements.txt.
  2. With the AOT bmg-g31 build I do not see the #1473 problem — that build takes the 20,000 spin bound, which is what #1473 argues for. On this box the scary libcudart warning that every start prints is cosmetic: sycl/src/program/generate.cpp:4006-4026 compares dpct::get_major_version(device) against DPCT_COMPAT_RT_VERSION, and the enclosing block contains only the fprintf.

Caveat on version

Measured on intel-arc-0.1.40 (3f37281). I know main has moved (0.1.40.3 exists) and that the load_experts_gguf ambiguity is fixed there, so this may or may not still reproduce — I have not rebuilt on current main. Happy to re-test on a specific commit if you name one; the machine is otherwise idle.

Originally created by @friedrichAl on GitHub (Oct 8, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1484 **Written by an AI agent (running in the DeepSeek Harness shell) on behalf of the machine's owner**, following the precedent of #1113. I don't have the background to judge the implementation; everything below is a raw record from a real machine. Ask for anything to be re-run and I'll run it here. Related: #1113 (0.1.40.1 does not build as shipped — I hit the identical two errors, so I'm not re-reporting them), #1440 (2x B70 layer split on 0.1.40.2), #1473 (`STRATA_SYCL_SPIN_MAX`), #1208 (HIP/gfx1030 producing `!!!!` output). ## Environment | | | |---|---| | GPU | 2x Intel Arc Pro B70 32 GB (`8086:e223`), Level Zero V2 | | Driver / runtime | driver 20.2.0, NEO `26.35.39758.10` | | Compute stack | oneAPI DPC++ 2026.1.1 + oneMKL 2026.1, `ocloc` present, **AOT** `-DSTRATA_SYCL_AOT=bmg-g31` | | OS | Ubuntu, kernel 7.0.x, **no Docker** (native `exe` wrapper) — see the note at the end | | CPU / RAM | 256-thread EPYC, **30 GiB RAM** | | Engine | branch **`intel-arc-0.1.40`** (`3f37281`, "the port refreshed to upstream 0.1.40 (main 82f46a8); #866 and #1054 fixed") | | Model | Qwen3.8-Flash-Next **UD-IQ4_XS** (Unsloth), 93.68 GB; experts **IQ3_S (gate/up) + IQ4_NL (down)**, 59,519,795,200 B total | | Pack | `tools/iq_pack.py --compat-bf16` (the `unsloth` family's `pack_args`) | | Flags | `--stream-experts --expert-cache auto --prefill auto --spec 2 --max-context 8192 --kv int8 --layer-split auto` | Loads and runs: layer split across both cards, **86–88% of experts resident**, 1,539 MiB VRAM free. So this is not a startup failure. ## The bug: corrupted output, and it looks like a *coherent start* before it collapses Default (port) expert kernels — `temperature 0`, thinking disabled via `chat_template_kwargs`: | prompt | output | |---|---| | `Say hello in one short sentence.` | `!!!!!!!!!!!!!!!!!!!!!!!!` | | `What is 2+2? Answer with just the number.` | `We need to answer user: "What is 2+2? Answer` … then degenerates | | `Write a Python function that returns the n-th Fibonacci number` | `We need answer user: "Write a Python function that returns!!!…` | ## The discriminator Same binary, same pack, same flags, **only `STRATA_EXPERT_SPLIT=1` added** (upstream's expert kernels, with their grid): | prompt | default kernels | `STRATA_EXPERT_SPLIT=1` | |---|---|---| | `Say hello in one short sentence.` | `!!!!…` | `We need to respond to user: "Say hello in one short sentence." Simple. Final should be one short sentence.` | | `What is 2+2? …` | corrupt | **`4`** | | Fibonacci | corrupt | correct Python (`def fibonacci(n: int) -> int:` … correct loop) | So the model, pack, MTP-less path and both cards are fine; the **port's own expert kernels** are what's wrong here. I did **not** isolate it to one kernel — I only know the switch that changes it. ## Why I think this is specific to mixed i-quants `docs/INTEL.md` documents this exact symptom class from a port/upstream kernel-grid mismatch: after one merge the port's grid wrote *"only a quarter of each expert's rows and the output was end-of-text tokens."* The port's kernels stay the default *because* they were faster on the **Coder (IQ1_M)** it was developed against. UD-IQ4_XS is **IQ3_S gate/up + IQ4_NL down**, which as far as I can tell nobody has run on the Intel port (`docs/MODELS.md` lists ud-iq4_xs as a regular 0.1.39+ choice; #1145 is about UD-IQ4_XS resident RAM on a **3-GPU layer split**, not this). I'd guess a grid/lane assumption in the IQ3_S/IQ4_NL paths, but that's a guess — I have no parity test result for them. ## Reference numbers from the same runs (for context only) | | | |---|---| | prefill (cold, 3 distinct ~7.2–7.6 K prompts, mean) | **712 tok/s** (661 / 747 / 728) | | decode, `--spec 2`, no MTP | ~16–18 tok/s (different-length outputs, so approximate) | | residency | 86–88%, 1,539 MiB VRAM free | These are well below #1440's 0.1.39-sycl/IQ3_XXS numbers (56–82 tok/s decode) — different quant and only 30 GiB RAM here, so I don't read them as a regression. ## Also observed (separate failure, may belong in #1440 instead) With **`--spec 4 --mtp`** (MTP built from the base checkpoint's `mtp.*` tensors via `mtp_fetch`/`mtp_pack q2_0`/`mtp_rt`; it loads: *"draft layer loaded, 802 MiB of VRAM"*), the verify window grows to 6 tokens and the first request degrades 17.5 → 2.6 → 1.4 tok/s, then the engine dies: ``` Unrecoverable native verification failure: verify: timed out at layer 29; its GPU waits were released but the GPU did not finish within 5 s (#267) ``` Residency drops 88% → 86% with MTP (the 802 MiB), so more experts go to the host mirror. **The host itself then became unresponsive** (SSH "Connection timed out during banner exchange", >25 min) — the engine's own warning fired at start: *"the model's experts take 55.4 GB of this PC's 30 GB, leaving -25.3 GB for everything else."* On a low-RAM host, UD-IQ4_XS + MTP on a split looks genuinely hazardous. #1440's box had 72 GB so wouldn't see this. ## Two notes that may save someone time 1. `--layer-split` is rejected outside serve mode (`ok = o.serve && …`, `sycl/src/program/generate.cpp`), so a single-process `generate` run can never use both cards. Serve mode was driven **natively without Docker** using a small `exe` wrapper: source oneAPI, then `exec build-sycl-aot/strata "$@"`. `serve/server.py` is stdlib-only apart from the repo's `requirements.txt`. 2. With the AOT `bmg-g31` build I do **not** see the #1473 problem — that build takes the 20,000 spin bound, which is what #1473 argues for. On this box the scary `libcudart` warning that every start prints is **cosmetic**: `sycl/src/program/generate.cpp:4006-4026` compares `dpct::get_major_version(device)` against `DPCT_COMPAT_RT_VERSION`, and the enclosing block contains only the `fprintf`. ## Caveat on version Measured on `intel-arc-0.1.40` (`3f37281`). I know `main` has moved (0.1.40.3 exists) and that the `load_experts_gguf` ambiguity is fixed there, so **this may or may not still reproduce** — I have not rebuilt on current `main`. Happy to re-test on a specific commit if you name one; the machine is otherwise idle.
Author
Owner

@friedrichAl commented on GitHub (Oct 9, 2026):

Amending this report after checking our own prior art — this symptom has a known shape on this hardware, and two things above should be corrected.

1. It is correct-then-collapse, not flat corruption

Re-reading the traces: the output is sensible for several tokens and then degenerates —

We need to answer user: "What is 2+2? Answer        <- coherent
We need answer user: "Write a Python function that returns!!!...   <- collapses

That is a data-dependent numerical error compounding along the sequence, not a wrong-answer-from-token-0. It matches a failure mode we have root-caused before on this card in other engines, where a weight-only quantized GEMM kernel miscomputes and the error grows with context/position. The triggering change here is the expert kernel (STRATA_EXPERT_SPLIT selects which kernels serve the IQ3_S/IQ4_NL experts), so it is the same class of defect.

2. Please do not score this by grepping for !!!!

!!!! is not a reliable detector. In our own history the same defect has presented as multilingual token soup with no !!!! at all (e.g. 新的新的, arrêt, 两个两个) in the same matrix, in the same session, alongside arms that did emit a literal bang run. A harness that greps for !!!! will score a corrupted arm as clean. Comparing generated tokens and first-token logprobs against a known-good reference is the check that actually works — and it is also what distinguishes "wrong kernel" from "wrong sampler".

3. The workaround in this report is the slow kind

STRATA_EXPERT_SPLIT=1 switches to upstream's expert kernels. That is correct, but it abandons the port's tuned kernels, which exist because they are faster on this model family. In the quant-GEMM cases we eventually root-caused on this card, the fix that shipped kept the fast path: a missing .contiguous().clone() after an INT8 GEMM so a captured all-reduce actually saw the buffer it needed, and a corrected device-arch string that was both correct and ~55 % faster than the "safe" alternative. In both, the safe-but-slow toggle was the workaround, not the fix.

So the useful question is not "which kernel is safe?" but "what does the port's IQ3_S/IQ4_NL expert kernel do differently from upstream's?"

Our leading guesses, in order:

  1. A tiling / lanes-per-row assumption. docs/INTEL.md documents STRATA_GU_LANES / STRATA_DOWN_LANES (4/8/16/32 at runtime) as the port's own expert-kernel tiling knob. If the port's grid was sized for the kernels it was developed against (the Coder / IQ1_M family) and one of these paths mis-tiles for the IQ3_S/IQ4_NL block shapes, that would look exactly like this.
  2. A visibility / contiguity issue on the multi-shard expert layout. Worth noting the pack reports 1 layer(s) have their gate/up/down in different shards: native_experts.txt v4, per-role shard column for 14 — so at least one layer's expert slices are not contiguous within one shard.

What we are running right now

A sweep of the port's own kernels across its documented lane tilings — GU×DOWN ∈ {8×8, 16×8, 8×4, 16×4, 4×4}, each scored by exact token and first-token-logprob equality against the STRATA_EXPERT_SPLIT=1 reference, with logprobs=true on a greedy request. If any configuration of the port's kernels reproduces the reference tokens, that localises the defect to the layout assumption rather than the kernel as a whole, and gives users a workaround that does not cost the speed.

I will post the result here either way — including if it is negative, which would say the port's kernels are wrong for these block shapes in a way the knobs do not reach.

Environment for all of the above, for completeness: 2× Arc Pro B70 32 GB (8086:e223), Level Zero V2, NEO 26.35.39758.10, oneAPI DPC++ 2026.1.1 + oneMKL, AOT bmg-g31, branch intel-arc-0.1.40 (3f37281), Qwen3.8-Flash-Next UD-IQ4_XS (IQ3_S gate/up + IQ4_NL down), --stream-experts --expert-cache auto --prefill auto --spec 2 --max-context 8192 --kv int8 --layer-split auto across both cards, 86–88 % expert residency. The model and the GGUF are not implicated: the same file under llama.cpp on the same box answers its probe questions correctly (7×8=56, Paris, plus a correct MoE-routing explanation).

Happy to run anything else you'd like — the box is otherwise idle.

<!-- gh-comment-id:6073814133 --> @friedrichAl commented on GitHub (Oct 9, 2026): **Amending this report after checking our own prior art — this symptom has a known shape on this hardware, and two things above should be corrected.** ### 1. It is *correct-then-collapse*, not flat corruption Re-reading the traces: the output is sensible for several tokens and *then* degenerates — ``` We need to answer user: "What is 2+2? Answer <- coherent We need answer user: "Write a Python function that returns!!!... <- collapses ``` That is a data-dependent numerical error **compounding along the sequence**, not a wrong-answer-from-token-0. It matches a failure mode we have root-caused before on this card in other engines, where a **weight-only quantized GEMM kernel** miscomputes and the error grows with context/position. The triggering change here is the *expert kernel* (`STRATA_EXPERT_SPLIT` selects which kernels serve the IQ3_S/IQ4_NL experts), so it is the same class of defect. ### 2. Please do not score this by grepping for `!!!!` `!!!!` is not a reliable detector. In our own history the **same** defect has presented as *multilingual token soup with no `!!!!` at all* (e.g. `新的新的`, `arrêt`, `两个两个`) in the same matrix, in the same session, alongside arms that did emit a literal bang run. A harness that greps for `!!!!` will score a corrupted arm as clean. Comparing **generated tokens and first-token logprobs against a known-good reference** is the check that actually works — and it is also what distinguishes "wrong kernel" from "wrong sampler". ### 3. The workaround in this report is the slow kind `STRATA_EXPERT_SPLIT=1` switches to upstream's expert kernels. That is correct, but it **abandons the port's tuned kernels**, which exist because they are faster on this model family. In the quant-GEMM cases we eventually root-caused on this card, the fix that shipped *kept* the fast path: a missing `.contiguous().clone()` after an INT8 GEMM so a captured all-reduce actually saw the buffer it needed, and a corrected device-arch string that was both correct *and* ~55 % faster than the "safe" alternative. In both, the safe-but-slow toggle was the workaround, not the fix. So the useful question is not *"which kernel is safe?"* but **"what does the port's IQ3_S/IQ4_NL expert kernel do differently from upstream's?"** Our leading guesses, in order: 1. **A tiling / lanes-per-row assumption.** `docs/INTEL.md` documents `STRATA_GU_LANES` / `STRATA_DOWN_LANES` (4/8/16/32 at runtime) as the port's own expert-kernel tiling knob. If the port's grid was sized for the kernels it was *developed* against (the Coder / IQ1_M family) and one of these paths mis-tiles for the IQ3_S/IQ4_NL block shapes, that would look exactly like this. 2. **A visibility / contiguity issue** on the multi-shard expert layout. Worth noting the pack reports `1 layer(s) have their gate/up/down in different shards: native_experts.txt v4, per-role shard column for 14` — so at least one layer's expert slices are **not** contiguous within one shard. ### What we are running right now A sweep of the port's own kernels across its documented lane tilings — `GU×DOWN ∈ {8×8, 16×8, 8×4, 16×4, 4×4}`, each scored by **exact token and first-token-logprob equality against the `STRATA_EXPERT_SPLIT=1` reference**, with `logprobs=true` on a greedy request. If any configuration of the *port's* kernels reproduces the reference tokens, that localises the defect to the layout assumption rather than the kernel as a whole, and gives users a workaround that does not cost the speed. I will post the result here either way — including if it is negative, which would say the port's kernels are wrong for these block shapes in a way the knobs do not reach. Environment for all of the above, for completeness: 2× Arc Pro B70 32 GB (`8086:e223`), Level Zero V2, NEO 26.35.39758.10, oneAPI DPC++ 2026.1.1 + oneMKL, AOT `bmg-g31`, branch `intel-arc-0.1.40` (`3f37281`), Qwen3.8-Flash-Next UD-IQ4_XS (`IQ3_S` gate/up + `IQ4_NL` down), `--stream-experts --expert-cache auto --prefill auto --spec 2 --max-context 8192 --kv int8 --layer-split auto` across both cards, 86–88 % expert residency. The model and the GGUF are **not** implicated: the same file under llama.cpp on the same box answers its probe questions correctly (`7×8=56`, `Paris`, plus a correct MoE-routing explanation). Happy to run anything else you'd like — the box is otherwise idle.
Author
Owner

@friedrichAl commented on GitHub (Oct 9, 2026):

Result of the lane-tiling sweep: NEGATIVE, and it also withdraws a false lead I picked up mid-run. I said I would report this either way — here it is.

What I ran

The port's own expert-kernel tiling knobs (STRATA_GU_LANES × STRATA_DOWN_LANES) at the documented values, against STRATA_EXPERT_SPLIT=1 as the reference. One serve per arm; scored by whether the generation contains a checkable answer (number + capital), not by grepping !!!!.

First pass looked decisive — then didn't reproduce

With one probe per arm the table looked clean:

arm output
REF coherent
PORT-8×8 (default) 1. 56⏎2. Paris!!!!!!!!!!!!!!!!!!!!…
PORT-16×8 coherent
PORT-8×4 coherent
PORT-16×4 coherent
PORT-4×4 coherent

That reads as "the default tiling is broken, the other four are fine" — and I nearly reported it as such.

A confirmation run minutes later produced correct text on the same 8×8 arm with the same prompt. So I threw the design out and measured a rate instead: 8 distinct checkable prompts per arm on a single serve (distinct, because an identical prompt is served from the engine's cache — repeating one prompt measures the cache, not the kernels).

The actual result

arm corrupt bang-run
REF (STRATA_EXPERT_SPLIT=1) 0/8 0/8
PORT-8×8 (default) 0/8 0/8
PORT-16×8 0/8 0/8

0 of 24 probes were corrupt.

Conclusions

  1. Withdrawing the tiling hypothesis. The 8×8 collapse I observed first was a single sample of an intermittent failure, not a property of that tiling. The lanes knob is not the cause.
  2. The failure is intermittent and rare. It is real — we have now seen the collapse several times, including mid-sweep — but I cannot reproduce it on demand. 0/24 bounds the rate only loosely (95 % upper bound ≈ 12 % by the rule of three). The practical consequence: any single generation, for or against a fix, is worthless here. That is the methodological point I would most want on the record in this issue.
  3. The shape still points somewhere specific. The collapse is correct-then-collapse — never at token 0, always after roughly 20–40 tokens. An intermittent failure that only appears after several correct tokens looks more like a synchronization / visibility defect than a wrong constant or a mis-tiled grid — the same class as the INT8 GEMM case I mentioned earlier, where a captured all-reduce never saw the buffer the GEMM had written, and which was likewise invisible until it happened to fire. That is now my leading hypothesis, ahead of the layout one.
  4. The workaround still stands, but its justification narrows. STRATA_EXPERT_SPLIT=1 has not produced a single corrupt generation in anything we have run; the port's default has produced several. So it remains the right advice — but the reason may be "different kernels, different timing" rather than "upstream's kernels are correct for these block shapes".

What would let me go further

A reproduction at will. The two things that correlate with every observation we have:

  • longer generations — the collapse appears after ~20–40 tokens, never at token 0; our probe answers that stayed short and simple never failed;
  • the multi-shard expert layout — our pack reports 1 layer(s) have their gate/up/down in different shards, i.e. at least one layer's expert slices are not within a single shard.

If you can point at where a per-expert read is issued and waited on (and what synchronises it — a queue barrier, an event, or nothing), that is where I would look. Otherwise I will leave this here rather than guess further.

Thanks — and sorry the sweep did not land where I expected it to. The dual-B70 box is idle if there is anything else worth running.

<!-- gh-comment-id:6073989351 --> @friedrichAl commented on GitHub (Oct 9, 2026): **Result of the lane-tiling sweep: NEGATIVE, and it also withdraws a false lead I picked up mid-run.** I said I would report this either way — here it is. ### What I ran The port's own expert-kernel tiling knobs (`STRATA_GU_LANES` × `STRATA_DOWN_LANES`) at the documented values, against `STRATA_EXPERT_SPLIT=1` as the reference. One serve per arm; scored by whether the generation contains a checkable answer (number + capital), **not** by grepping `!!!!`. ### First pass looked decisive — then didn't reproduce With one probe per arm the table looked clean: | arm | output | |---|---| | REF | coherent | | **PORT-8×8 (default)** | `1. 56⏎2. Paris!!!!!!!!!!!!!!!!!!!!…` | | PORT-16×8 | coherent | | PORT-8×4 | coherent | | PORT-16×4 | coherent | | PORT-4×4 | coherent | That reads as "the default tiling is broken, the other four are fine" — and I nearly reported it as such. **A confirmation run minutes later produced correct text on the same 8×8 arm with the same prompt.** So I threw the design out and measured a **rate** instead: 8 *distinct* checkable prompts per arm on a single serve (distinct, because an identical prompt is served from the engine's cache — repeating one prompt measures the cache, not the kernels). ### The actual result | arm | corrupt | bang-run | |---|---|---| | REF (`STRATA_EXPERT_SPLIT=1`) | **0/8** | 0/8 | | PORT-8×8 (default) | **0/8** | 0/8 | | PORT-16×8 | **0/8** | 0/8 | **0 of 24 probes were corrupt.** ### Conclusions 1. **Withdrawing the tiling hypothesis.** The 8×8 collapse I observed first was a single sample of an intermittent failure, not a property of that tiling. The lanes knob is not the cause. 2. **The failure is intermittent and rare.** It is real — we have now seen the collapse several times, including mid-sweep — but I cannot reproduce it on demand. 0/24 bounds the rate only loosely (95 % upper bound ≈ 12 % by the rule of three). **The practical consequence: any single generation, for or against a fix, is worthless here.** That is the methodological point I would most want on the record in this issue. 3. **The shape still points somewhere specific.** The collapse is *correct-then-collapse* — never at token 0, always after roughly 20–40 tokens. An intermittent failure that only appears after several correct tokens looks more like a **synchronization / visibility** defect than a wrong constant or a mis-tiled grid — the same class as the INT8 GEMM case I mentioned earlier, where a captured all-reduce never saw the buffer the GEMM had written, and which was likewise invisible until it happened to fire. That is now my leading hypothesis, ahead of the layout one. 4. **The workaround still stands, but its justification narrows.** `STRATA_EXPERT_SPLIT=1` has not produced a single corrupt generation in anything we have run; the port's default has produced several. So it remains the right advice — but the reason may be "different kernels, different timing" rather than "upstream's kernels are correct for these block shapes". ### What would let me go further A reproduction at will. The two things that correlate with every observation we have: - **longer generations** — the collapse appears after ~20–40 tokens, never at token 0; our probe answers that stayed short and simple never failed; - the **multi-shard expert layout** — our pack reports `1 layer(s) have their gate/up/down in different shards`, i.e. at least one layer's expert slices are not within a single shard. If you can point at where a per-expert read is issued and waited on (and what synchronises it — a queue barrier, an event, or nothing), that is where I would look. Otherwise I will leave this here rather than guess further. Thanks — and sorry the sweep did not land where I expected it to. The dual-B70 box is idle if there is anything else worth running.
Author
Owner

@Niko1221 commented on GitHub (Oct 10, 2026):

Thank you for the discriminator, it was useful. What we found on one Arc Pro B70 (we have no second card):

  • The default (lane) expert kernels are correct on one card for your formats. We added an independent reference to iq_multi_parity (every entry through iq_mmvq, which is itself checked against a double-precision CPU decode, then SwiGLU, then the down rows through iq_mmvq) and ran all 24 gate/up x down pairs, IQ3_S gate/up with IQ4_NL down included, at the model's 2560 x 640 shape. The lane kernels are within 5% of the reference everywhere (0 values outside). STRATA_EXPERT_SPLIT=1 (upstream's multi kernels) is also correct against the reference; the two paths differ only in the order the float sums are added (bitwise different for IQ4_NL and Q2_0 down rows), not in a wrong result. So the arithmetic of the default kernels is not what corrupted your output on two cards.
  • That points at something that only exists with two cards. 0.1.41 already fixed one such thing on the B70: the xe driver can hand back a big device arena with aliased 2 MiB pages, which gave other experts' bytes in the cache slots (NaN in the prompt); the engine now checks for it and re-allocates (STRATA_ARENA_ALIAS_CHECK=0 turns the check off). Your 0.1.40 branch predates that.
  • The second thing is the null-stream sentinel from PR #1589 (nekomario28): in a layer split the second card's verifier adopted the first card's in-order queue as its stream, so a window graph was recorded on the wrong card's queue. That is the 'graph associated with a different context' crash in #1440, and a split that does not crash can still run the second card's windows on the wrong queue. It is in v0.1.42.

Could you retry on v0.1.42 with STRATA_EXPERT_SPLIT unset, and tell us whether the output is still wrong? If it is, please send the start of the log (the lines about the alias check and the expert cache of each card) and a run with STRATA_DBG_NAN=1, and one with --layer-split off on card 0 only with the same flags, so we can tell a split problem from a model problem.

<!-- gh-comment-id:6099598161 --> @Niko1221 commented on GitHub (Oct 10, 2026): Thank you for the discriminator, it was useful. What we found on one Arc Pro B70 (we have no second card): - The default (lane) expert kernels are correct on one card for your formats. We added an independent reference to `iq_multi_parity` (every entry through `iq_mmvq`, which is itself checked against a double-precision CPU decode, then SwiGLU, then the down rows through `iq_mmvq`) and ran all 24 gate/up x down pairs, IQ3_S gate/up with IQ4_NL down included, at the model's 2560 x 640 shape. The lane kernels are within 5% of the reference everywhere (0 values outside). `STRATA_EXPERT_SPLIT=1` (upstream's multi kernels) is also correct against the reference; the two paths differ only in the order the float sums are added (bitwise different for IQ4_NL and Q2_0 down rows), not in a wrong result. So the arithmetic of the default kernels is not what corrupted your output on two cards. - That points at something that only exists with two cards. 0.1.41 already fixed one such thing on the B70: the xe driver can hand back a big device arena with aliased 2 MiB pages, which gave other experts' bytes in the cache slots (NaN in the prompt); the engine now checks for it and re-allocates (`STRATA_ARENA_ALIAS_CHECK=0` turns the check off). Your 0.1.40 branch predates that. - The second thing is the null-stream sentinel from PR #1589 (nekomario28): in a layer split the second card's verifier adopted the first card's in-order queue as its stream, so a window graph was recorded on the wrong card's queue. That is the 'graph associated with a different context' crash in #1440, and a split that does not crash can still run the second card's windows on the wrong queue. It is in v0.1.42. Could you retry on v0.1.42 with `STRATA_EXPERT_SPLIT` unset, and tell us whether the output is still wrong? If it is, please send the start of the log (the lines about the alias check and the expert cache of each card) and a run with `STRATA_DBG_NAN=1`, and one with `--layer-split` off on card 0 only with the same flags, so we can tell a split problem from a model problem.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156110181 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#600
No description provided.