mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1054] [SYCL / Intel Arc] 2x Arc Pro B70 --layer-split auto deadlocks at startup after the host-mirror fill #453
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#453
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 @djbrettb on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1054
Summary. On two Arc Pro B70s, Flash-Next IQ3_XXS and IQ3_S with
--layer-split autoload, fill the firstcard's expert cache, mirror the remaining experts into pinned host memory, and then never reach "session is up".
One host thread spins at 100 % CPU, the second card reports 100 % busy at ~88 W (a spin, not compute: real
compute on this card draws 200+ W), and the first card idles at 0 MHz. The server keeps printing
still starting (...). It happens with and without PR #866 and withSTRATA_VERIFY_NO_HOST=0or=1.The same build runs IQ2_XS on one B70 without any problem: 79 tok/s short decode, a 12-minute soak with
156/156 requests and 0 xe engine resets.
What looks inconsistent in the log
The split planner says both caches together hold every profiled pair. But the session's expert cache is sized
only on CUDA0, and the rest goes to the host mirror, while CUDA1 still has ~28 GiB free:
IQ3_S behaves the same way: K=26, 13,312 slots / 24.19 GiB on CUDA0, and 11,264 experts (22.64 GiB) mirrored.
--check(sycl/setup_intel.py --check) reports IQ3_XXS and IQ3_S as "fits in VRAM across the 2 cards (layersplit)". So we expected no host mirror at all.
State while stuck
futex_do_wait; one runs at 100 % CPU.0000:03:00.0): 0 % busy, 0 MHz. Card 1 (0000:08:00.0): 100 % busy (gtidle residency), 2.8 GHz,~88 W.
xe 0000:08:00.0: [drm] Tile0: GT0: Engine reset: engine_class=ccs, logical_mask: 0x1, guc_id=2, state=0x289followed by
Fault response: Unsuccessful -ENOENT. The card was healthy afterwards; llama.cpp loaded andserved on it.
Our guess, which we have not verified in the source: with the layer split, the second stage waits on a host-mapped
flag/doorbell that the host writes while CUDA1's graph is running.
docs/INTEL.mdnotes thathost-to-device visibility during a kernel is unreliable on this platform. The host then waits for CUDA1, so the
two never meet.
What we tried
maxfridbe/Strata_B70@b708dd4aaa (AOTbmg-g31), IQ3_S and IQ3_XXS,--layer-split auto,--vram-reserve-mib 2048fixups.pyregex (2 sites)STRATA_VERIFY_NO_HOST=0(made overridable instrata-sycl.sh)--vram-reserve-mib 3072-sm layeracross both cards,--override-tensor per_layer_token_embd=CPUNot tried yet:
--layer-split Kwith an explicit K,--split-device,STRATA_VERIFY_DEVICE_PLAN=0,STRATA_WARM_GRAPHS=0. We can run any of these, or a debug build, on request.Environment
each (the x16 slot is bifurcated x8x8 through a C-Payne MCIO Gen5 retimer). Both cards are power-capped at
230 W (
power1_cap). Separate IOMMU groups, 32 GB ReBAR each.7.0.14-20-pve, xe driver, GuC 70.72.1 / HuC 8.2.10 / DMC 2.6.
icpx 2026.1.1.20260724) and the compute runtime fromthe kobuk-team PPA:
intel-opencl-icd/libze-intel-gpu1/intel-ocloc26.31.39395.14. Built with-DSTRATA_SYCL_AOT=bmg-g31 -DSTRATA_SYCL_PARITY=OFF.--pack packs/iq3_xxs --native …IQ3_XXS-00001-of-00002.gguf --ple-gguf …IQ3_XXS-00002-of-00002.gguf --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp mtp/rt --max-context 32768 --kv int8 --stream-experts --vram-reserve-mib 2048 --layer-split autoONEAPI_DEVICE_SELECTOR=level_zero:gpu(fromstrata-sycl.sh),STRATA_VERIFY_DEVICE_PLAN=1.Related
never rang (graph finished)) was fixed by #866. Here #866 is applied and the startupstill hangs: there is no error, just a spin. So it looks like a different path.
b70branch.cc @maxfridbe. Thanks for the port: the single-card numbers on the B70 are excellent, and we'd love to run IQ3
across both cards.
@maxfridbe commented on GitHub (Oct 6, 2026):
on it
@Niko1221 commented on GitHub (Oct 7, 2026):
Thanks for the report. We have no Intel GPU to reproduce on. Please try, one at a time, --layer-split with an explicit first layer for the second card (for example --layer-split 20), then STRATA_WARM_GRAPHS=0, then STRATA_VERIFY_DEVICE_PLAN=0, and tell us which of them gets past the start-up hang. A debug build log from the hang would help; the planner's cache sizing on the first card only (the second card has 28 GiB free) looks like the place to start.
@crobe201 commented on GitHub (Oct 7, 2026):
Same setup here (2x Arc Pro B70, Flash-Next IQ3_XXS,
--layer-split auto). Onmainate8ca9af(v0.1.40.2), this still fails.#1111's fix (mirror only the first GPU's layers) is not in
main's re-migration (23a38a0), and two further split regressions show uponce it is patched. Details, patches and logs are in #1440.
a5682fe(the 0.1.39 port) runs the split fine, 56–82 tok/s. Investigated with Claude Code.@djbrettb commented on GitHub (Oct 8, 2026):
Thanks, Niko. Here are results from the original 2× B70 setup for your checks, plus 0.1.41 and the
STRATA_SH_STREAM=0question from #1440. In short: 0.1.41 fixes the start-up on two B70s, and item 3 is still the blocker. The data below points at where to look.Setup
--layer-split auto, 32k context, int8 KV,--stream-experts, spec 4 + MTP.ONEAPI_DEVICE_SELECTOR=level_zero:*set through the config'senv.bmg-g31, clean builds with no local patches. Each run starts fresh.Your three checks, on 0.1.40.4 (
6674a00)--layer-split 20,STRATA_WARM_GRAPHS=0andSTRATA_VERIFY_DEVICE_PLAN=0all behave the same.only 3.49 GiB of VRAM is free (28.40 GiB of 31.89 GiB total), whileget_memory_infohad reported 27.09 GiB free on CUDA1.0.1.41 (
fb58e0d)Cannot submit to a queue with a dependency from a graph that is associated with a different context(verify.cpp:1706), and every retry repeats itSTRATA_SH_STREAM=0408), 3 of 3That matches janneedgren's B60 result. The workaround avoids the crash but costs a lot of speed.
The useful comparison: PR #1111 (
3f37281)sh_stream_on()tofalse.mainslow: #1111 runs without it at full speed, andmainruns without it at ~6 tok/s.main's re-migration when the fork is off. Diffing the two aroundverify.cpp's window capture and replay is probably the quickest way to find it.3f37281as our daily coding model on 2× B70 since 2026-10-06, with 0 engine resets.Two small things
--layer-splitthat finds only one device should refuse to start. Without the selector set, the image'slevel_zero:0hid CUDA1, and the engine ran both stages on CUDA0 without saying so (layers 0-19 (CUDA0), 20-47 (CUDA0)).strata-sycl.shdrops any value that is exactly0, soSTRATA_WARM_GRAPHS=0andSTRATA_SH_STREAM=0never reach the engine. I passed00.I'm happy to test a build with a graph fix on this pair. A run takes about 10 minutes.
@crobe201 commented on GitHub (Oct 8, 2026):
Second 2× Arc Pro B70 data point for #1111 (
3f37281), clean build (AOTbmg-g31), only local change is--group-add 44 --group-add 993instrata-sycl.sh(unprivileged Proxmox LXC).Box: EPYC 7F52, B70s at PCIe Gen4 x16 on different root complexes, Proxmox 9 / kernel 7.0.14, xe. Flash-Next IQ3_XXS,
--layer-split auto(K=29, 100% resident), 32K ctx, int8 KV, spec 4 + MTP.Correct output (4/4 checks, greedy repeatable), no engine resets. Decode / prompt tok/s, single user:
--ple-io direct(default)--ple-io ramWorth knowing for anyone comparing numbers: on a slow DRAM-less NVMe (our model files sit on one), the n-gram table's random 4 KB reads with the default
--ple-io directcost ~30–40% of decode speed.--ple-io ram(~29 GB of host RAM for IQ3_XXS) brings it in line with djbrettb's figures. Investigated with Claude Code.@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.