mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#579
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crobe201 on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1440
What happened:
Two Arc Pro B70s, Qwen3.8-Flash-Next IQ3_XXS (all 24,576 experts fit across the two cards),
--layer-split auto, built frommainate8ca9af(v0.1.40.2) with-DSTRATA_SYCL_AOT=bmg-g31, run throughsycl/serve/strata-sycl.sh. It fails in threeseparate ways, one after another as each is worked around. The same model on the same machine works with the 0.1.39 port at
a5682fe(the commit the 2x B60 community report used): 100% of the experts resident, 4/4 correctness checks, greedy outputrepeatable, 56–82 tok/s decode.
1. The host mirror still takes the later stages' layers (#1054, fixed in PR #1111 but not in
main)main's re-migration (23a38a0) does not carry #1111's fix. The mirror's second loop insycl/src/program/generate.cppstill walksevery layer (
for (int64_t l = 0; l < g.n_layers; ++l)), against stage 0's cache only, before the later stages' caches exist. OnIQ3_XXS it mirrors 11,317 experts / 20.5 GiB of CUDA1's layers. On UD-IQ4_XS it tries to pin 39 GiB in one
sycl::malloc_host, whichfails, because a single host allocation on this card tops out below ~30 GiB (a probe got 24 GiB and failed at 32 GiB, with or without
UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1). WithSTRATA_VERIFY_NO_HOST=1the engine then refuses:The planner on the same run had said
the caches hold 19833 of 24576 profiled pairs. Limiting the loop to stage 0's layers (as#1111 does with
mirror_end) fixes it. The local patch used:With it, IQ3_XXS mirrors only stage 0's own 1,589 misses (2.29 GiB).
2.
device_free_bytes()charges the first card's allocations to the second card (93b129a)After fix 1, CUDA1's cache still would not open:
The first line, from
get_memory_infoon the current device, is right. The second comes fromExpertCache::open, which replaces itwith
device_free_bytes(). That function subtractsown_drm_local_bytes(), which sumsdrm-total-local0over every DRM fd ofthe process, so on a split it is both cards' allocations together. CUDA0's 21.7 GiB cache is charged to CUDA1. The fdinfo fallback is
only needed when the driver reports the whole card free (the A750/i915 case in
93b129a). The local patch used:A per-device fix would match
drm-pdev:in fdinfo to the current device's PCI address instead.With fixes 1 and 2 it loads:
layer split: 100% of the experts resident,4567 MiB of VRAM free with everything loaded.3. The first request kills the engine: graph across contexts
The server answers
the engine stopped unexpectedly (exit code 1); the next request restarts it, and every retry repeats it.Likely cause, not yet tested: #1111 hard-wires
sh_stream_on()tofalsein the SYCL port ("A recorded SYCL graph takes only whatits own queue records").
main's re-migration kept the CUDA default, which istrueon a non-HIP build. So the shared expert forksonto a side queue during window capture, and on a split that queue's context is not the stage's.
STRATA_SH_STREAM=0(passed into thecontainer) should tell.
strata-sycl.shpasses only a fixed set of-evariables, so it needs adding there.What works
a5682fe(0.1.39-sycl) runs this setup with two small local changes:--remote-expert-optremoved from the config, because that engine rejects it.resident_plandefinition takes the trailinguint32_t* plan_errparameter thatinclude/strata/kernels/verify_kernels.hppgained. Without it, linking fails with an undefined reference to
resident_plan(...).It still mirrors CUDA1's layers (18.23 GiB pinned, unused), but with 72 GB of RAM that does no harm.
Results on
a5682fe, IQ3_XXS, 32K context, INT8 KV,--spec 4 --mtp:Checks: arithmetic, factual and code-execution prompts all passed. The generated
fibpassesfib(50) == 12586269025. Repeated greedyruns gave identical output.
Also needed in an unprivileged Proxmox LXC:
--group-add 44 --group-add 993on thedocker runinstrata-sycl.sh. Without them,sycl-lsin the container finds no Level Zero devices and the engine stops atNo device of requested type available. This could beworth a line in
docs/INTEL.md.Strata version, GPU, OS:
0.1.40.2 (
e8ca9af, AOT bmg-g31) fails; 0.1.39-sycl (a5682fe+ plan_err link fix) works · 2x Intel Arc Pro B70 32 GB (8086:e223), each PCIe Gen4 x16 · Proxmox VE 9.2, kernel 7.0.14-17-pve, xe, in a Debian 13 LXC + Docker; strata-sycl-dev image (oneAPI 2026.1.0, Level Zero V2 1.17.39758); EPYC 7F52, 72 GB RAM to the containerInvestigated with Claude Code, can run tests on dual B70's if needed.
@crobe201 commented on GitHub (Oct 7, 2026):
log.txt
@MaineTim commented on GitHub (Oct 8, 2026):
Just a note that I'm running across the same failure on a pair of B60s on 0.1.40.3. Qwen3.8 prepared the summary below:
Setup: 2x Intel Arc Pro B60 24 GB (8086:e211), Qwen3.8-Flash-Next IQ1_M (7,680 experts), --layer-split auto, --max-context 32768, --spec 4 --mtp, sycl/ build, Linux 7.2.9 + xe driver. 0.1.39-sycl loads and serves
the same model fine; 0.1.40.3 exits during model load, same signature as your #2:
The planner line (raw get_memory_info) is right; the refusal comes from ExpertCache::open via device_free_bytes(). The arithmetic confirms the both-cards sum: 23.91 − 17.73 = 6.18, where 17.73 GiB is this
process's card-local VRAM across both cards (card 0's 8.24 GiB expert cache + weights/sessions on both), read as total_b − free_b in the message. Same story earlier in startup: expert cache auto sized from
14.44 GiB "free" on card 0 where the driver itself reports ~19.6 GiB.
I checked the 0.1.40.3 source: sycl/src/core/expert_cache.cpp:77 still has the unguarded
so neither the free_b + 16 MiB >= total_b gate nor a per-drm-pdev: fix is in this tag yet.
I hit neither your #1 (the 15.18 GiB mirror fits in one pinned allocation on this box) nor #3 — the run dies at load. Happy to test your two local patches (and STRATA_SH_STREAM=0) on the B60 pair if useful, or provide full startup log.
@maxious commented on GitHub (Oct 8, 2026):
Fix for item 2, from a 2x Arc Pro B60 (xe) reproduction on
maind5ea713-sycl/src/core/expert_cache.cpp, indevice_free_bytes():@janneedgren commented on GitHub (Oct 8, 2026):
Same three failures reproduced on 2× Arc Pro B60 (
8086:e211, xe, kernel 7.0.0-34) atd5ea713(0.1.40.3), AOTbmg-g21, Docker build fromsycl/tools/Dockerfile, model IQ2_XS, config from the 2× B60 community report(
--layer-split 25 --stream-experts --kv int8 --spec 4 --mtp,ONEAPI_DEVICE_SELECTOR=level_zero:0,1). Same log lines asitems 1–3 here, including
verify.cpp:1706. With a fix equivalent to the one above for item 2 it loads:layer split: 100% of the experts resident,4072 MiB of VRAM free with everything loaded.Tested the suggested
STRATA_SH_STREAM=0for item 3: it stops the crash, but decode is ~1.7 tok/s.sycl/serve/strata-sycl.shdrops any variable whose value is exactly0(case ... in 0|"") ;;), soSTRATA_SH_STREAM=0from the config never reaches the container and the engine keeps its default.sh_stream_on()onlylooks at
v[0], soSTRATA_SH_STREAM=00gets through; confirmed withdocker inspecton the running container.(
enable_thinking: false, temperature 0) each finished.done:lines: first request 77 tokens in 59 s (1.5 tok/s); then 193 tokens in 125 s, 114 sand 114 s (1.8 / 1.8 / 1.7 tok/s). So it is not warm-up. For comparison, the 0.1.39 community run on the same cards reported
55–61 tok/s.
STRATA_VERIFY_NO_HOST=0. Same trap: it is dropped as "0" and so is effectively unset. That maymatter for the slow path, but I have not isolated which of the two causes the ~30× slowdown.
No xe resets and no EDAC errors during any of the runs. Happy to run a build with a proper fix for item 3 on this pair.
@Niko1221 commented on GitHub (Oct 8, 2026):
Thank you for the diffs, both are in 0.1.41. (1) The host mirror's two loops now stop at the first stage's last layer. (2)
device_free_bytes()skips the DRM-fdinfo subtraction when the process uses more than one GPU, unless the driver reports the whole card as free (the A750 case); a one-GPU run keeps the figure it always had (checked on a single B70: same 11,338 slots and the same output as before). We only have one B70, so we could not run the two-card split itself.Not taken: the third problem (the graph captured across contexts). Could one of you with two cards run with
STRATA_SH_STREAM=0and tell us whether the first request then works? If it does we will make that the default for the SYCL split. The LXC note (--group-add 44 --group-add 993) is not in the docs yet.@janneedgren commented on GitHub (Oct 8, 2026):
Tested 0.1.41 (
fb58e0d) on the 2× Arc Pro B60 pair, clean build with no local patches, the same IQ2_XS model and config asin my earlier comment, and
STRATA_VERIFY_NO_HOST=1back on.Fixes 1 and 2 work on two cards: no REFUSED,
layer split: 100% of the experts resident,4073 MiB of VRAM free with everything loaded. Thanks!Item 3,
STRATA_SH_STREAM=0(answering your question): yes, the first request then works, but decode is ~1.7 tok/s.Prompt read is also slow (34 tokens in 13 s). Drafts accepted 139 of ~154. The 0.1.39 community run on the same cards
reported 55–61 tok/s.
Cannot submit to a queue with a dependency from a graph that is associated with a different contextatverify.cpp:1706.NO_HOST=1now in place, the ~30× slowdown comes fromSH_STREAM=0alone, not from theNO_HOSTworkaround.So I would not make
SH_STREAM=0the default for the SYCL split as it stands. It avoids the crash but costs about 30× indecode speed. A fix for the cross-context graph itself is still needed.
Note again for whoever tries it:
sycl/serve/strata-sycl.shdrops env values that are exactly0, so it has to be passed asSTRATA_SH_STREAM=00(the engine only reads the first character) or set inside the container.No xe resets and no EDAC errors in either run. Happy to test a build with a graph fix on this pair (~10 min per run).
@Fett2 commented on GitHub (Oct 10, 2026):
Fourth machine, and it answers the SH_STREAM=0 question differently: on this box the workaround does not work at all.
Machine: Supermicro X9DRi-F (Intel C602, dual LGA 2011), 2× Xeon E5-2643 v1 (Sandy Bridge-EP, AVX1 only), 128 GB DDR3. Mixed pair: Arc Pro B70 + Arc Pro B60. Container, JIT build, oneAPI 2026.1.0. IQ2_XS, --layer-split 32 --stream-experts --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --mtp --max-context 262144, STRATA_VERIFY_NO_HOST=1.
Items 1 and 2 did not bite here — all 24,576 pairs fit across the two cards, layer split: 100% of the experts resident, no REFUSED. But item 1's behaviour is visible as pure waste: the log mirrors 8,304 experts / 11.51 GiB of pinned RAM, while stage 0's own misses are 112 pairs (16,384 − 16,272 slots). Stage 1's cache already holds its 8,192. So the mirror is 11.5 GiB where the correct figure would be roughly 155 MB. On a machine where everything fits, the bug doesn't fail — it just pins 11 GiB it doesn't need.
Item 3 (#1555). Ten occurrences of Cannot submit to a queue with a dependency from a graph that is associated with a different context at verify.cpp:1706, one per engine run, each followed by a restart.
With PR #1589 applied the context error no longer appears — both stages report captured the 6-token window (upload no error, sync no error) — and the device is then lost at the first execution of the window:
level_zero backend failed with error: 20 (UR_RESULT_ERROR_DEVICE_LOST)
strata serve: verify: error
And SH_STREAM=0 does not rescue it here. Confirming janneedgren's trap: docker inspect on the running container shows STRATA_SH_STREAM=00, so the workaround's value was already in effect during the crashing run, and the run still failed.
So on this platform the queue fix is verified correct and is not sufficient. Something in the execution path still fails, and SH_STREAM=0 doesn't cover it — which is the single-context capture problem #1765 describes.
Related: #1555 (root cause), #1589 (the sentinel fix, verified here), #1765 (command-graph capture is single-context).
@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you for the three-part write-up and the local patches. State on our side:
device_free_bytes()charging card 0's allocations to card 1: fixed in 0.1.41 (the fdinfo fallback only where the driver reports the whole card free).STRATA_SH_STREAMbut the Verifier's stream default.ext_stream_was initialised to the constructing device's in-order queue, so on a split the second stage (built on card 0, initialised on card 1) sawext_stream_ != its own in-order queue, adopted card 0's queue as its stream and recorded its window graph there. PR #1589 (nekomario28) makes it a nullptr sentinel; it is in v0.1.42. On one card the bug cannot show, which is why a single B70 never hit it.We only have one B70, so we cannot confirm the split ourselves. Could you try v0.1.42 on your two B70s with and without
--layer-split autoand tell us if the three failures are gone? For the B60 pair in the comments (MaineTim): the same build, please.@MaineTim commented on GitHub (Oct 10, 2026):
I built and ran 0.1.42, and the results are summarized by Qwen 3.8:
0.1.42, 2× Arc Pro B60, IQ3_XXS: the #1589 context error is gone, the first window still loses the device — with dmesg, two coredumps, and a 2×2 that localizes it
Following Fett2's 0.1.42 report above, from a B60 pair.
Machine/config: 2× Intel Arc Pro B60 24 GB (8086:e211), kernel 7.2.9, xe, ONEAPI_DEVICE_SELECTOR=level_zero:*, SYCL AOT build, engine 0.1.42, Qwen3.8-Flash-Next IQ3_XXS (24,576 profiled pairs). --layer-split auto --stream-experts --max-context 32768 --spec 4 --spec-min-p 0.5 --mtp … --vram-reserve-mib 1024, env STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1. Split lands at K=25 (CUDA0 layers 0–24, CUDA1 25–47); expert cache 11,838 slots / 17.24 GiB; 84% of experts resident, 962–972 mirrored in pinned host memory (1.37 GiB); 1,578 MiB free on GPU0 with everything loaded.
Repro: Deterministic, 4/4 across the two configs below. After two strata verify: captured the 6-token window (upload no error, sync no error) lines, at the first window execution:
then the process dies (cores below). No strata serve: prompt … line ever appears.
dmesg (xe) at the loss:
The copy engine page-faulted at an address with no page-table entry at all (-ENOENT, not a permission fault), the driver reset the CCS engine, and the timed-out job is the strata PID that coredumped. -ENOENT is consistent with #1765's single-context capture: the mirror aliases are pinned in the context that did the pinning, while the window's graph executes in the stage's context, where that address simply does not exist. Not yet verified: which card 2d:00.0 is (lspci pending), and whether the faulted address falls in the pinned-alias ranges (needs a log line printing those ranges at the table build in generate.cpp).
Layer 25 is stage 1's first layer - the stall sits exactly on the context boundary. The vram-reserve-mib 8192 runs (cache 7,065 slots / 10.24 GiB, 8.7 GiB GPU0 headroom, K=24, mirror set grown to 5,223 experts / 7.48 GiB pinned) crash identically, so VRAM headroom is ruled out.
Two coredumps, two exit-path death modes (both on main → Verifier::~Verifier, all other threads parked):
So after a device loss the destructor is unsafe in both directions, and the "best-effort" comment at verify.cpp:422 covers neither case. Suggestion: a process-level "device is dead" latch, set on the first UR_RESULT_ERROR_DEVICE_LOST, under which ~Verifier and the other teardown paths skip all SYCL/UR calls (no waits, frees, or handle releases) instead of best-effort.
Same-box control: IQ1_M, same machine, same build, same split: works - 100% of experts resident, zero-doorbell graph, 10.5 GiB headroom, 77 tok/s prompt / 41 tok/s decode, 490-token reply completed. The discriminator is residency: the loss happens only when the window must fetch non-resident experts. (Historical note: our 0.1.41 log on this box shows the item-3 line, Cannot submit to a queue with a dependency from a graph that is associated with a different context at verify.cpp:1706; it is gone in 0.1.42 - presumably #1589 - and this device loss is what remains.)
Single-GPU control: (0.1.42, no split, same env): clean. Cache 9,591 slots / 15.55 GiB, 14,985 experts mirrored (24.42 GiB pinned) - ~25× the mirror load of the failing split runs - 1,510 MiB VRAM free, all window sizes captured, two requests completed (599 + 521 tokens at 3.0 / 3.4 tok/s, drafts 272/410, 210/369). No device loss, no #267 timeout. So the device-plan mirror fetch itself is not the culprit even under heavy load; the fault requires the two-context split, which fits #1765's single-context capture.
Not tested: STRATA_SH_STREAM=00 (Fett2 reports it doesn't rescue); other partially-resident models.
Hope there's useful info here and if any logs / coredumps are desired will gladly post them.
@DaCull commented on GitHub (Oct 11, 2026):
Not the same trigger, but the same xe signature on a different dual-card setup, so posting in case it helps.
2× Arc Pro B70 (32 GB), IQ3_S, no MTP, --layer-split auto, 100% of experts VRAM-resident, 0.1.42, STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1. On long prompts (12k) the engine dies every few minutes (exit -11): GPFs in libze_intel_gpu at +0x217fa6, a null read in dpct::sync_barrier, wild jumps. At least once xe logged Engine memory CAT error, class=bcs with Fault response: Unsuccessful -ENOENT and Timedout job on both cards at the same instant (copy engine, no PTE).
Bisected between main+#1589 (clean) and 0.1.42 to four commits, GEMM operand staging among them (
56efb709). STRATA_SYCL_GEMM_NO_STAGE=1 (added by that commit) makes it clean: 132/132 over 10 min, prefill about 10-13% faster. Originally tested with SYCL_UR_USE_LEVEL_ZERO_V2=0 set (which turned out to be the source of an entirely different error) but tested and it reproduces with the default Level Zero adapter too (SYCL_UR_USE_LEVEL_ZERO_V2 unset): N and N prompts of ~13k tokens before the engine died, versus no failure with NO_STAGE=1.Your pinned-alias-in-the-wrong-context idea would fit: staged operands are also a host-pinned/registered buffer used across the two per-GPU contexts. Haven’t confirmed that. Can post the full dmesg and a fuller report if useful.
Happy to send more logs or information if needed.
@MaineTim commented on GitHub (Oct 11, 2026):
Following DaCull's report, I tried STRATA_SYCL_GEMM_NO_STAGE=1 here (as always, summary by Qwen 3.8):
STRATA_SYCL_GEMM_NO_STAGE=1on the B60 pair: the first-window device loss is unchanged (2/2), plus a third coredump of the exit pathFollow-up to my 0.1.42 report below, same box and config (2× Arc Pro B60 24 GB (8086:e211), kernel 7.2.9-1-cachyos, xe, SYCL AOT build, engine 0.1.42, IQ3_XXS,
--layer-split auto,STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1): the only change isSTRATA_SYCL_GEMM_NO_STAGE=1in the env.Two runs, identical to the baseline without the flag:
strata verify: captured the 6-token window (upload no error, sync no error)lines, then at the first window executionlevel_zero backend failed with error: 20 (UR_RESULT_ERROR_DEVICE_LOST)+strata serve: verify: error. Nostrata serve: prompt …line ever appears. Nostrata: WARNING: a GEMM operand lies past 4 GiBline in either run.dmesg(captured after both runs, ring covers both windows) shows the same xe block for each run as in my previous comment:Faulted Address: 0x0000eaab49f69000, twoFault response: Unsuccessful -ENOENT,Engine memory CAT error [18]: class=ccs,Engine reset,Timedout job— with ASIDs 149 and 153 for the two runs, and theTimedout jobPIDs 42880 and 44981 are the two engine processes (42880 is the core below). The faulted address is the same value as in my previous comment's capture, i.e. identical across all the losses I have captured, in three different processes. The device is0000:2d:00.0, which xe reports as/dev/dri/card1(its devcoredump path). I have run 1's device coredump from/sys/class/drm/card1/device/devcoredump/dataif wanted: headerReason: Timedout job - seqno=4294967179 … guc_id=8,Process: strata [42880], GuCbmg_guc_70(70.72.1), ccs engine mid-batch at the fault, and itsVM statesection shows[0].error: -19after the fault. It contains no page-table data.So on this machine, turning off the prefill GEMM operand staging changes nothing about the first-window device loss. For interpretation: in the 0.1.42 tree that flag gates
staged_gemminsycl/src/prefill/gemm.dp.cpp, which only engages when a GEMM operand lies past 4 GiB — so this test covers that path and nothing else.Exit path, third data point: the first run (PID 42880) coredumped the same way as my first core — SIGABRT on the main thread in
main → Verifier::~Verifier(__clang_call_terminate→std::terminate), the sycl exceptionUR_RESULT_ERROR_UNINITIALIZED(37) thrown when the SYCL members are destroyed after the context was reset. The second run (PID 44981) left no coredump;dmesghas its death instead:traps: strata[44981] general protection fault ip:7f027fb52463 sp:7ffca880cb68 error:0 in libur_loader.so.0.12.0— a kernel trap, the same uncatchable class as my earlier SIGSEGV-in-cs_->wait()core. So with or without the staging path, both of the two death modes from my previous comment are on the table: after a device loss,~Verifier/teardown is unsafe, and the "skip all SYCL/UR calls once the device is dead" latch still seems needed for a clean exit.Log, config and the new coredump are available if wanted, and any reporting changes you would find helpful.
@agnaylor commented on GitHub (Oct 11, 2026):
Confirming the root cause on 2× Arc Pro B70 at
fb58e0d:--layer-split autoaborted at verify.cpp:1706 ("different context").A nullptr sentinel for the external stream in Verifier (the same change as #1555 /
9aba7ba) let IQ2_XS run split in a probe: 64.5 tok/s decode on 256-token prose, against 46.1 single-card, and 1,277 tok/s prefill at 4K. Full cells were not run.@janneedgren commented on GitHub (Oct 11, 2026):
v0.1.42 (
61b3fb5d) on 2× Arc Pro B60 24 GB, as you asked: the context error is gone and the split runs at full speed without any workaround.Config: Qwen3.8-Flash-Next GSQ-RCO IQ2_XS,
--layer-split 25 --stream-experts --spec 4 --spec-min-p 0.5 --mtp --kv int8 --max-context 8192,STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1, SYCL AOT (bmg-g21), xe driver.STRATA_SH_STREAMunset (default).STRATA_SH_STREAM=00workaround gave 1.7 tok/s on the same box, and 0.1.39 about 60.So on a fully resident model the #1589 fix is sufficient on B60s too, consistent with agnaylor's B70 result. Not tested here: a partially resident model (MaineTim's device-lost case), long prompts (DaCull's GEMM staging case).
@crobe201 commented on GitHub (Oct 11, 2026):
Tested v0.1.42 (
61b3fb5d) on the 2× Arc Pro B70 box as asked. Short version: on two B70s, all three failures are gone, both with--layer-split autoand with an explicit split.Box: EPYC 7F52, 2× B70 32 GB at PCIe Gen4 x16 on different root complexes, Proxmox 9 / kernel 7.0.14, xe, unprivileged LXC + Docker. AOT
bmg-g31. Engine config throughout:--stream-experts --kv int8 --spec 4 --spec-min-p 0.5 --mtp --max-context 262144 --kv-resident 32768 --vram-reserve-mib 2048 --prefill 4096 --ple-io ram --conversation-cache-mib 8192,STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1,ONEAPI_DEVICE_SELECTOR=level_zero:*.--layer-split auto(lands at K=29)--layer-split 29--layer-split 30(94% resident, rest mirrored)different contexterror, noDEVICE_LOST, no xe faults or resets indmesgin any run.Notes:
STRATA_SYCL_GEMM_NO_STAGEwasn't needed on this box.STRATA_SYCL_GEMM_NO_STAGE=1through the config:sycl/serve/strata-sycl.shtreats everySTRATA_SYCL_*variable as its own setting (STRATA_SYCL_*) ;;) and doesn't pass it into the container. That flag only reaches the engine if it's set inside the container, or if the case list is patched, e.g.STRATA_SYCL_GEMM_*) setting[$k]=${!k} ;;above that line.3f37281) on the same box, model and flags (IQ3_XXS, decode / prompt tok/s, single user): ~720-token prompt 94.5 / 303 → 90 / 477; ~3.2K prompt 67 / 756 → 62 / 986; 4 concurrent users 43 → 52 total. Decode is about the same, prompt reading is clearly faster.Investigated with Claude Code.
@agnaylor commented on GitHub (Oct 11, 2026):
Independent data point on v0.1.42 (
61b3fb5, native build, oneAPI 2026.1.1, AOT bmg-g31) on 2x Arc Pro B70: i7-12700K, 64 GB DDR5, both cards PCIe Gen5 x8 (measured ~28 GB/s pinned H2D each), kernel 7.0.0-34, default PLE-IO, 131072 context.Confirms the fix: the layer split no longer crashes, and IQ3_XXS lands exactly where crobe201's does (auto split K=29, "100% resident", CUDA1 9728 of 9728 slots). Decode on a 1024-token prose probe is 56.4-56.7 tok/s, prefill at 4K is about 1250-1270 tok/s.
One thing that did NOT match: IQ3_S on the same auto split (K=24, log says "100% of the experts resident", CUDA1 12211 of 12288 slots) decodes at only about 11 tok/s. During that run CUDA1 peaked at 31.9 of 31.9 GiB and host RAM used peaked near 47 GiB (about 10 GiB for the IQ3_XXS run). So here the "100% resident" line was not a reliable predictor of speed; the card looks full and something is leaning on host memory. I have not yet tried an explicit --layer-split value or --ple-io ram, which are the two obvious differences from the other report. If anyone has IQ3_S at an auto split on 32 GB cards behaving normally, that would help tell whether this is our config or a sizing edge.
Separately, NVMe-served experts (no host mirror) gave corrupted output ("!!!!") on this xe build, consistent with the note that xe has no SSD tier.
@MaineTim commented on GitHub (Oct 11, 2026):
Update from the 2× B60 pair (my 0.1.42/NO_STAGE reports above), summarized by Qwen 3.8: the first-window device loss is unchanged in 0.1.43 (
7695859), and three follow-up runs split the remaining split failure into two separate bugs — one of which corrupts output silently.STRATA_STAGE_TRIM=1+ explicit--layer-split 25+STRATA_VERIFY_NO_HOST=0(withSTRATA_VERIFY_DEVICE_PLAN=1). Measured: 39.9 tok/s, clean output over 930 tokens, 513/730 MTP drafts — the first fully lucid split run of this quant on the pair.Faulted Address: 0x0000eaab49f69000byte-identical across seven PIDs/ASIDs and both builds. Source reading: the mirror table is bound to process globals keyed on the stage-0 residency table, but the stage-1 verifier passes its own table, soresident_plan's per-layer slice math (sycl/src/kernels/cuda/verify_kernels.dp.cpp:2368ff) indexes out of bounds whenever a mirror is built. That chain is inferred, not measured.NO_HOST=1does not crash — it returns a string of!. That matches agnaylor's earlier "!!!!" report. Mechanism: an unmirrored stage-1 miss empties the window's expert plan (s_bad→pl=0), andplan_erris only consumed when the adaptive tier is on, whichNO_HOST=1disables. Flipping onlyNO_HOST=0on the identical layout produces the clean run in item 1. This mode fails silently; the crash cell at least fails loudly.STRATA_VERIFY_DEBUG=1itself crashes the engine in theNO_HOST=1split cell (NULL pointer in the post-window debug dump,verify.cpp:2333ff).Full numbers, dmesg, cores, and the code walk are in my comment on #1980.
@Fett2 commented on GitHub (Oct 11, 2026):
<html>Measured on: Supermicro X9DRi-F, 2× Xeon E5-2643 v1 (Sandy Bridge-EP, AVX1 only — no AVX2), 128 GB DDR3, 2 NUMA nodes, Arc Pro B70 (
0000:06:00.0) as stage 0 and B60 (0000:86:00.0) as stage 1,--layer-split 32, IQ2_XS, 262K context, engine in thestrata-sycl-devcontainer. Same model, pack and engine args for every run. The first request after a start is not comparable; the noise band on this box is ~8%.The env flags I was running with during the investigation are the biggest single effect here. They cost ~40% of decode on 0.1.4x and nothing on 0.1.39:
The only configuration on this machine that fails is 0.1.40.3 itself.
What I can't produce is the shape in #1555. The fault needs a stage reading an alias registered in another stage's context. Here the mirror serves stage 0's misses and stage 0's graph runs in stage 0's context, so the alias and the graph are always the same context. Stage 1 is 100% resident, and its misses resolve to 0 in the mirror table and fall back to the file. Your fault is at layer 25, stage 1's first layer, on card 1 — that's the cross-context read, and it isn't reachable on this pair with the current build. The 0.1.41 fix works as intended here:
mirror_end = split_at[0]keeps the mirror to stage 0's layers, so the pinned memory belongs to the stage that reads it, and with--expert-cache autostage 0's cache covers all 16,384 of its pairs so no mirror is built at all.Two code-level points from this platform.
verify.cpp:1359says per-layer flag waits fail because a kernel's writes to host-mapped memory are not reliably visible while the graph runs. On an AVX1 Sandy Bridge-EP the flag path completed normally at the same speed (33.8 tok/s, drafts 38 of 51), so that measurement doesn't transfer to this CPU.STRATA_VERIFY_NO_HOSTis hardcoded insycl/serve/strata-sycl.shas a platform default, so the flag path is never exercised by default. On 0.1.42 the engine presence-checks the variable, so a0in the config only works because the launcher skips values that are exactly0and therefore doesn't pass it at all — the flag is off by absence, not by value. 0.1.43 makes the check a value test (v && *v && strcmp(v,"0") != 0), which is what the launcher's own comment at line 13 promises.Build note for AVX1 CPUs:
sycl/CMakeLists.txtnever readsSTRATA_ISA_FLOOR— that option only exists in the rootCMakeLists.txt— soisa_floor_build()returns empty and the runtime check atsycl/src/program/generate.cpp:2462refuses on a real AVX1 CPU. The AVX1 kernel sources are in the build (q2_avx1.cpp,iq_avx1.cpp, compiled with-msse4.2 -mavx -mno-avx2), but the macro has to be passed as a compile definition by hand. I built with-DCMAKE_CXX_FLAGS=-DSTRATA_ISA_FLOOR_AVX=1and it runs.Where I ended up: 0.1.43 with the env clean. No mirror on this split, 100% resident, no fault, 973.7 tok/s prefill and 58.0 warm decode — better than 0.1.39's 801 and 49-52 on the same box.
@janneedgren commented on GitHub (Oct 12, 2026):
Follow-up on 2× Arc Pro B60 24 GB with v0.1.42 (
61b3fb5d): long prompts at 32K context, plus a few concurrent users. The model is fully resident, so this covers the case my last comment left untested (long prompts). It does not cover MaineTim's partially resident case.Config: same as before (Qwen3.8-Flash-Next GSQ-RCO IQ2_XS,
--layer-split 25 --stream-experts --spec 4 --spec-min-p 0.5 --mtp --kv int8,STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1 STRATA_STAGE_TRIM=1, AOT bmg-g21, xe, kernel 7.0.0-34). The only change was--max-context 32768(was 8192). Default GEMM staging.Load: 100% of the experts resident at 32K, 3,900 MiB VRAM free, zero-doorbell graph on both stages.
Long-prompt soak, modelled on crobe201's: unique prompts (random filler,
cache_prompt=false) with a needle at a random position, answer checked by exact match. 15/15 correct, no!!!output. Prompt read rates:1 / 2 / 4 simultaneous users (~770-token prompt, ~180-token reply): all answers correct, but the requests were served one at a time. Time to first token was 1.3 / 6.4 / 12.1 / 17.3 s with four users, and total output stayed at 32-34 tok/s at every user count. Per-request decode was 43-47 tok/s. If concurrent batching isn't supported on the split path, this is expected and not a bug report.
No xe resets and no ECC errors during this run, including load and shutdown.
One data point that may or may not matter. An earlier start of the same config, about an hour before, logged one
Fault response: Unsuccessful -ENOENT+Engine reset: engine_class=ccson both cards at the same moment (within 12 ms). It happened during model load, before the first request. The server then answered correctly. It did not recur on the next start. I'm noting it in case others see the same thing at load; I have nothing more on it.On the silent
!!!mode MaineTim described: with this model fully resident,NO_HOST=1doesn't trigger it here, and every needle came back correct. I'm reading that as consistent with his mechanism (needs an unmirrored stage-1 miss), not as evidence against it.@agnaylor commented on GitHub (Oct 12, 2026):
Follow-up on my IQ3_S result (the ~11 tok/s on an auto split): the explicit
--layer-splitcrobe201 used fixes it here.Setup is the same as my earlier comment: 2x Arc Pro B70 (PCIe Gen5 x8), native build of v0.1.42 (
61b3fb5, AOT bmg-g31), Qwen3.8-Flash-Next IQ3_S (GSQ-RCO),--max-context 131072 --kv int8 --kv-resident 32768 --stream-experts --vram-reserve-mib 2048 --prefill 4096 --spec 4 --spec-min-p 0.5 --mtp,STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1, nothing else changed between cells.--layer-split auto(lands at K=24), repeat of my earlier run--layer-split 30, host mirror at its default--layer-split 30 --ple-io ram, mirror at defaultSo on this box the slow cell was the auto split's choice of K, not the quant: about 5x from setting the split by hand.
--ple-io rammade no difference. On the auto split card 1 sits at 31.8 of 31.9 GiB, as before. I did not dig into why the planner picks 24 here, and I only measured speed: no quality check on the 30 split yet.One trap if anyone copies this: with
STRATA_MIRROR_MIB=0in the environment (our earlier bench config had it) an explicit--layer-split 30refuses to start. The first stage's cache holds 13,934 slots and 1,426 of its pairs fall outside it, and withSTRATA_VERIFY_NO_HOST=1the engine saysREFUSED: 1426 experts are neither in VRAM nor mirrored. With the mirror at its default it loads and runs, matching crobe201's "94% resident, rest mirrored".Separately, MaineTim's
!!!!mechanism forNO_HOST=1(an unmirrored stage-1 miss emptying the window plan) fits something we saw earlier: we got a string of!with experts streamed from NVMe on this xe build and put it down to the NVMe. We have not re-run that cell with onlyNO_HOSTchanged, so that is a probable re-attribution, not a measurement.Raw logs are on our box; happy to post the engine logs for any of the three cells if useful.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks @agnaylor, the explicit-split result pointed straight at it. On two equal cards every K that holds all the experts predicts the same window time, and the auto search kept the first one it tried. That is the smallest K, which gives the second card (it also carries the MTP drafter) the most layers and fills its cache to the last MiB. Under
xea full card moves buffers to system memory instead of failing an allocation, which fits your 31.8 of 31.9 GiB and ~11 tok/s.In 0.1.44 (out now) the SYCL auto split takes, among the placements within 0.2% of the best predicted time, the one whose fullest card keeps the most VRAM to spare. The start log names both splits when this moves the choice.
STRATA_SPLIT_HEADROOM=0keeps the old pick, andSTRATA_SPLIT_HEADROOM_TOLsets the tolerance. In our model of your box it moves K=24 (0.6 GB spare on card 1) to K=25 (1.7 GB). We only have single-card Intel boxes, so this is compiled and unit-tested, not run on two B70s.Could you run 0.1.44 with
--layer-split autoand post three things: the "layer split auto" lines, each card's "GiB free before its session carve" line, and the "draft layer loaded, N MiB" line? If IQ3_S's drafter is larger than the 1,000 MiB the split reserves for it on the last card, that is a second cause, and we would size that reserve from the file.@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.