mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #870] Intel Arc Pro B60 (e211), 24 GB: first run on 0.1.39 + 4 fixes for current main #380
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#380
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 @Magh97 on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/870
Arc Pro B60 (e211), 24 GB: first run on 0.1.39 + 4 fixes for current main
Summary
8086:e211, 24 GB, ASRock). It works end to end(OpenAI + Anthropic APIs, streaming, tool calls) after 4 small fixes for drift since the last re-migration
(
5047172"sycl: port 0.1.39"; current main is 88 commits ahead of it).--spec 4: 31 tok/s decode at setup's defaults, 33-36 tok/safter a small expert-cache/reserve change; a 6,029-token prompt read at 657 tok/s. Kernel parity tests: 8/8
pass on the card (byte-exact
quantize_act,sampler).ONEAPI_DEVICE_SELECTOR=level_zero:1; the container image pinslevel_zero:0, and setup's config"gpu": 1does not reach the SYCL path. Details below.
Patch with all 4 fixes:
strata-b60-fixes.patch(4 files, +14/-8), attached.sycl-lsoutput attached.Environment
8086:e211, 24.0 GB, subsystem ASRock6023,xedriver8086:e20b, 12.0 GB,xedriver7.2.8-1-cachyosintel-compute-runtime26.35.39758.10,level-zero-loader1.32.0 (Level Zero reports 1.17.39758 host,+10in the image)icpx2026.0.0.20260331 (used to build and to run the binary natively)strata-sycl-devbuilt fromsycl/tools/Dockerfilewith podman 6.1.2 (via the Docker shim)-DSTRATA_SYCL_AOT=bmg-g21, 0 errorsThe 4 fixes current main needs (in
strata-b60-fixes.patch)sycl/setup_intel.py- the card ise211, note221.INTEL_ARCknowse221as "Arc Pro B60"; thiscard reports
e211(lspci:Battlemage G21 [Arc Pro B60] [8086:e211]). Without a table entry it is named"Intel GPU e211 (xe)" and sized 32.0 GB from the BAR instead of 24 GB. Fix:
"e211": ("Arc Pro B60", 24.0).Upstream #626 (thread affinity) changed
SessionLoopScratch::pinned_corefrom a raw int tostrata::kernels::cpu::ThreadAffinity. Ported: the field type +pool.hppinclude insycl/include/strata/core/session.hpp, and insycl/src/core/session.cpppinned = pinned_core.validandpinned_core = {}(waspinned = true,pinned_core = -1).Upstream PR #559 (batch slots / per-stage dense weights) changed
NativeDense::load:int64_t layer_lo, int64_t layer_hiand theoutside()name filter. Ported intosycl/src/core/native_dense.cpp(compile error without it: "out-of-line definition of 'load' does not match").sycl/setup_intel.py-write_run_scriptnow takes 4 arguments. Currentsetup.py:4385callswrite_run_script(tag, cfg_path, port, cfg.get("open_browser") is not False); the port's replacement took 3 anddied with
TypeErrorafter the 58 GB download and both pack steps, i.e. only at the very end. Fix: acceptopen_browser=Trueand pass it through. (The port's "stop with a message instead of writing a wrong config"guard does not cover this shape of drift.)
Build and tests
Built and linked with 0 errors; AOT
bmg-g21runs on the B60. Kernel parity on the card(
ONEAPI_DEVICE_SELECTOR=level_zero:1):quantize_act,s_gemv,rope,router_top10,dequant_s2,kv_q8,sampler,gdn- 8/8 pass.quantize_actreports 0 bad bytes / 0 differing over 9 distributions;sampler0 of 1632 draws differ. No device loss, no hang.
End to end
./setup.sh --backend sycl --yes --family coder --model IQ1_M --context 32768 --no-start, thenONEAPI_DEVICE_SELECTOR=level_zero:1 ./run-coder-iq1_m.sh. Correct Python on every test; OpenAI/v1/chat/completions(streaming +tools), Anthropic/v1/messagesand the web app all work. Engine log:Decode on the B60 (Coder IQ1_M, 32K, INT8 KV, MTP + spec 4)
Same prompt ("Explain what a red-black tree...", 400 tokens, thinking off) and the same draft acceptance
(~72-73%, 244-245 of 335-341) in every row:
--expert-cache auto --vram-reserve-mib 1024(setup default)--expert-cache 8400 --vram-reserve-mib 1800--expert-cache 8400 --vram-reserve-mib 1024docs/INTEL.mdsuggest, and worth knowing for other 24 GB cards.Cache sizing observations (may be worth a doc line)
--expert-cache Nis a budget (N x max_blob), not a slot count: with a native pack + profile the result iscapped by
free VRAM - --vram-reserve-mib, soN = 8400andN = 8600both landed at ~9,130 slots and~380 MiB free.
--vram-reserve-mibis the effective margin knob.pool), so the reserve does not mean "free at the end".
Notes
level_zero:0) also present, the image'sENV ONEAPI_DEVICE_SELECTOR=level_zero:0and setup's config
"gpu": 1disagree: the engine must getONEAPI_DEVICE_SELECTOR=level_zero:1from theenvironment or it targets the 12 GB card.
sycl/setup_intel.py/strata-sycl.shcould map the config'sgpuindex to the selector.
xe_telemetrylink reading:/sys/class/drm/card1/device/current_link_speedandcurrent_link_widthreport2.5 GT/s / x1on this kernel for the GPU device (and for the downstream bridge in front of it), while theupstream switch port reports
16.0 GT/s / x8and the engine probe measures 13.6 GB/s. The Monitor tab would showthe wrong PCIe link.
docs/INTEL_ARC.mdsays"Docker"; a one-line "podman works" note may help Arch users.
quantize_actis byte-exact on the B60.Not tested
Context above 32K on this card; prompts longer than ~6K;
--layer-spliton the mixed B580+B60;--peer-device(stub); images.
strata-b60-fixes.patch
strata-b60-sycl-ls.txt
@Niko1221 commented on GitHub (Oct 6, 2026):
Thank you for the detailed B60 report. In 0.1.40: the e211 PCI id, the write_run_script argument that broke setup at the end, and (via PR #784) the ThreadAffinity and NativeDense::load ports. setup_intel now has a test that its replaced functions accept the same arguments as setup.py's.
@Niko1221 commented on GitHub (Oct 7, 2026):
The four SYCL drift fixes for the Arc Pro B60 (with the compile fix for v0.1.39) are in the code since 0.1.40. The SYCL engine itself builds again only in 0.1.40.2 (0.1.40 did not build for Intel), and the 10-prompt check with MTP passes there on an Arc A750. Thank you for the work and the 31 tok/s measurement. Closing.