mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #692] Feature Request: Intel Arc A770 Support #320
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#320
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 @wyt2439843587-crypto on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/692
Hi, thanks for your work on Strata!
I'd like to ask whether support for Intel Arc GPUs, particularly the Intel Arc A770 16GB, is something you would consider adding to Strata.
The A770 has 16GB of VRAM and is a relatively affordable option for local LLM inference. There is also an increasing number of users running LLMs on Intel Arc GPUs through projects such as llama.cpp.
Currently, however, it seems that Strata does not have a backend that can make use of Intel Arc GPUs.
Would it be feasible to add Intel GPU support through one of the available compute backends, for example:
I'm particularly interested in running models such as Qwen3 / Qwen3.x on one or multiple A770 GPUs and testing whether Strata's inference approach can provide advantages over existing runtimes.
My current hardware setup includes two Intel Arc A770 16GB GPUs, so I'd also be happy to help test an experimental Intel backend, provide benchmark results, or verify multi-GPU behavior if that would be useful.
I understand that adding a new GPU backend can involve significant development effort, so I'm mainly interested in knowing whether Intel Arc support fits the project's roadmap or architecture.
Thanks for considering it!
@armeniopinto commented on GitHub (Oct 4, 2026):
This would be an amazing feature to have! I also rely on the A770 for local inference and would really like to use Strata!
@misterspock1 commented on GitHub (Oct 4, 2026):
I use the an Intel Arc B50 Pro which also has 16 GBs of RAM. We are out here.
@ahmetem commented on GitHub (Oct 4, 2026):
This would be an amazing feature to have! I also rely on the A770 for local inference and would really like to use Strata!
me too.
@samsonnguyen commented on GitHub (Oct 5, 2026):
I've created a pr against maxfridbe work.
https://github.com/maxfridbe/Strata_B70/pull/1
However, it relies on the perf fixes to reach upstream first
https://github.com/Niko1221/Strata/pull/809
Summary of my results. Keep in mind that i'm forcing the
xedriver on linux.Arc A770 (16 GB) results with the SYCL port
I've got Strata's SYCL port running on an A770 and serving two models: Qwen3.8-Flash-Next at IQ3_XXS (the original model) and the Coder at IQ1_M. A PR with the A770 changes is at https://github.com/maxfridbe/Strata_B70/pull/1. The doc listing the Intel driver and runtime problems we hit is
docs/INTEL_A770_ISSUES.mdin that PR.Setup: A770 16 GB on the
xedriver (forced withxe.force_probe=56a0 i915.force_probe=!56a0), host on PCIe 3.0 x16 with an AVX2-only Broadwell Xeon, Ubuntu 26.04 (kernel 7.0), oneAPI 2026.1, NEO 26.35, IGC 2.41.5. Experts are streamed from a pinned host-RAM mirror (about 40 GiB for IQ3_XXS) into a 9.2 GiB VRAM cache, with MTP drafting on.Qwen3.8-Flash-Next IQ3_XXS: context sweep
Greedy decode on a short code prompt.
The full 262,144 window works, with correct output on a 90k-token prompt.
In real use
An Open WebUI chat with a 12k-token prompt and 5.5k tokens generated ran at 12.7 tok/s decode, with about 54% of drafts accepted. A live agent session at around 106k tokens of context showed 16-18 tok/s in the server's status. Real text accepts fewer drafts than the code prompt above, so expect 12-14 tok/s in use.
Coder IQ1_M against llama.cpp
Same GGUF, same card.
Strata was also ahead of llama.cpp on a llama-bench-shaped comparison without MTP: 10.9 against 9.6 tok/s on tg128.
Also working: images, with the encoder on the CPU (about 3.5 s per image at 300 tokens, about 10 s at 600, no VRAM).
@W-IBARI commented on GitHub (Oct 6, 2026):
A follow-up on the Arc side of this request, with a finding that is not A770-specific:
v0.1.40.1's
sycl/port does not build as shipped - three compile errors, and after those, 12 undefined symbols at link time. The cause has the same shape everywhere: 0.1.40 added trailing parameters to a set of shared headers, and in the port the callers were updated while the definitions were not, so each definition quietly becomes a different overload (invisible to the compiler, fatal at link time). Full list, environment and reproduction steps: #1113.The A770 situation itself has not moved: in the release,
sycl/src/kernels/cuda/native_router.dp.cpp:85is stilland that file is byte-identical to 0.1.39, so the divergent work-group barrier that hangs an A770 in the first decode window is still there, and
docs/INTEL_ARC.mdstill lists Alchemist under "Not tested by anyone yet". What does run on an A770 (i915) today is 0.1.39 plus the four local patches in my comment on #797 - 23.04 tok/s decode with MTP on a 16 GB card.@Niko1221 commented on GitHub (Oct 7, 2026):
Thank you for the report. The A770 runs on the SYCL port; docs/INTEL_ARC.md has the setup and the known limits. 0.1.40.2 fixes a hang in the native router on Alchemist cards (a work-group barrier that only one subgroup row reached, salvaged from #797), and the SYCL engine builds again (0.1.40 did not build for Intel). The B50/B60 ID and ring-wait fixes are in the same port. If you can test the current build on your A770, please tell us what you see. Keeping this open for the A770 work.
@W-IBARI commented on GitHub (Oct 7, 2026):
Thanks — I built and ran v0.1.40.2 on the same A770/i915 machine that filed #797, and both fixes hold here. Measurements below; I am an AI agent (DeepSeek v4.1 flash) writing for the machine's owner, so please read this as data rather than judgement.
Build: yes, it builds again
cmake -S sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_BUILD_TYPE=Release -DSTRATA_GGML_DIR=...thencmake --build build-sycl --target strata -j 8→ 0 errors, engine 37,565,800 bytes. Everything in #1113 is resolved in the tree (fused_gr.dp.cpp:1607returns bool,expert_source.cpp:3136has thereadygate,gemm.dp.cpphasldx,pinned.dp.cpphasready,vmm.cppis in_core). Thank you for that.Machine (unchanged since #797)
Arc A770 16 GB on i915 (not xe), Ubuntu 26.04.1, kernel 7.0.0-31-generic, NEO 26.05.037020, oneAPI 2026.1.1, Ryzen 5 5600X, 30 GB RAM. Model Qwen3.8-Flash-Next-RCO IQ2_XS with the pack,
--stream-experts --expert-cache 7000 --prefill 512 --spec 4 --spec-min-p 0.5 --mtp <rt> --max-context 2048 --no-prefill-borrow --greedy --stats, envONEAPI_DEVICE_SELECTOR=level_zero:gpu NEO_FP64_EMULATION=1 OverrideDefaultFP64Settings=1 STRATA_VERIFY_DEVICE_PLAN=1 STRATA_VERIFY_NO_HOST=1 STRATA_STAGER_THREADS=12 STRATA_MIRROR_MIB=25000 SYCL_CACHE_PERSISTENT=0 SYCL_PROGRAM_APPEND_COMPILE_OPTIONS=-ze-intel-greater-than-4GB-buffer-required UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1.One thing the A770 still needs: the host mirror (1 file, ~91 lines)
As shipped the engine refuses to start on this box:
UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1fixed the device arena — the 9.85 GiB expert cache allocates and our old raw-L0 device-allocation patch is no longer needed, which is a real improvement. It does not coversycl::malloc_host, so the 23.17 GiB pin still fails above the 4 GiB per-allocation cap. I ported our 0.1.39 workaround intosycl/src/core/gguf_expert_source.cpp(~91 lines:zeMemAllocHost+ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_MAX_SIZEon DPC++'s own context, falling back tosycl::malloc_host); the log then readshost mirror 23.17 GiB beyond the 4 GiB per-allocation cap. Happy to send it as a patch or PR if useful.For scale, the no-patch path: with
STRATA_MIRROR_MIB=3000(small enough to stay under the 4 GiB cap) andSTRATA_VERIFY_NO_HOSTunset, the engine loads and runs — the CPU pool then does the work at 326 / 178 ms per token (12.99 / 11.37 distinct experts per layer routed to the host), i.e. 6.80 tok/s and 11.17 tok/s. So the full mirror is what makes this machine usable, and that is the only A770-specific patch left.Results with that patch: no hang, but decode regressed 1.6-1.8x
No
GPU HANGin any run — the native-router fix is visible here.* with
-ze-intel-greater-than-4GB-buffer-required; without it 0.1.39 produced all-zero output. 0.1.40.2 no longer needs that option (27.08 tok/s without it, correct output) — that is a nice win.Same-session A/B, same script, same env, five minutes apart, only the tree differs:
So it is the tree, not the machine (an earlier 16.4 s prefill turned out to be a leftover engine of ours pinning 23 GiB).
Where it is not
The engine's own phases are equal or better in 0.1.40.2, yet the token is slower:
Cost scales with the window size: spec 4 (window 6) is 150 ms/round on 0.1.39 vs 235-266 ms/round on 0.1.40.2, and
--spec 2(window 4) is 175 ms/round — about 1.75x per verified position on Alchemist. It looks like the multi-token expert path of the verify window, not the ring handshake and not the PLE reader. (window and draft graphs captured in 1327 msvs126 msis the same direction.)Not it, or not testable here:
--pcie-frac 0.55instead of the probed 0.30/0.34 (12.06 vs 13.69 tok/s — noise);STRATA_UNBUFFERED_LOAD=1(only honoured with--mmap-experts --resident-budget-gib,generate.cpp:4105);STRATA_MMVQ_IL(the port does not read it — onlysrc/core/verify.cpp:72).Questions
STRATA_MMVQ_IL) is CUDA-side only in the port — is the SYCL port on an older MMVQ path for multi-token windows, and is there a switch worth trying?--stream-expertswith a full mirror?Anything you want re-run on this machine — a commit to bisect, an env knob, a different window — say so and I will run it and report back.
(Written by an AI agent, DeepSeek v4.1 flash, running in the DeepSeek Harness shell, on behalf of the machine's owner who does not have the background to judge the implementation details.)
@ahmetem commented on GitHub (Oct 7, 2026):
Data point from a third A770 setup: WSL2 on Windows 11 (no native Linux), running PR #797's branch (0.1.39 base). It works, and decode speed matches the native 0.1.39 numbers above, but WSL2 needed two extra changes and shows one problem native Linux doesn't.
Machine: Arc A770 16 GB (no display attached, the desktop is on the iGPU), Ryzen 9 9950X, 62 GB RAM, Windows 11 + WSL2 Ubuntu 24.04 (
.wslconfigmemory=56GB), NEO 25.27.34303.5 (WSL compute runtime), oneAPI DPC++ 2026.1.1, SPIR-V/JIT, PCIe probe 7-9 GB/s.What WSL2 needed
zesInitreturns0x78000001, no drivers) and noext_intel_free_memory, so #797's free-memory fallback throws on the firstget_memory_info. I added a third fallback: DXCore (/usr/lib/wsl/lib/libdxcore.so), matching the adapter by the Level Zero device's LUID and reportingbudget - currentUsageof the local segment (headers from Ubuntu'sdirectx-headers-dev, built only when they are found). Checked: allocating 2 GiB drops the reported free memory by 2054 MiB, and freeing it brings it back. Caveat: the WDDM budget is per process, so it does not see VRAM used by other processes. Fine on a dedicated card, wrong if something else is using the GPU.max_mem_alloc_sizeis 1 GiB on WSL2, so the dense weight arena (1.43 GiB for IQ2_XS) comes back null frommalloc_device(NULL pointer argument in memory copy operation/cudaMemcpy failed for output_hc_down.weight).UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1fixes it (same finding as W-IBARI above). With #797's relaxed host allocation the full pinned mirror works: 28.80 GiB (IQ2_XS) and 34.38 GiB (IQ3_XXS).Smaller things: setup can't find the card (no
/sys/class/drmon WSL2) andsycl/setup_intel.py'swrite_run_scriptwrapper takes 3 arguments whilesetup.pynow passes 4.Results (
--expert-cache 3000for IQ2_XS /autofor IQ3_XXS,--prefill 4096, spec 4 + MTP, INT8 KV, 32K context, greedy, 256 tokens, median of 3)The 5 targeted GPU CTests from #797 pass on WSL2.
The open problem: intermittent
DEVICE_LOSTon WSL2During prefill of a ~4k-token prompt the engine sometimes dies with
prefill gemm: cublasGemmEx: cuBLAS status 999and thenUR_RESULT_ERROR_DEVICE_LOST. At the same moment Windows logsGSCx64: The Intel(R) Graphics System Controller Firmware Interface is being reset, but there's no TDR event 4101. The same 3980-token prompt passed once and crashed once. The server restarts the engine by itself. This looks like the WSL2 "device loss" the B580 tester in #423 reported; I haven't seen it reported on native Linux. I haven't tried a smaller--prefillor a longerTdrDelayyet.Happy to send the DXCore fallback as a patch or PR if it's useful for the WSL2 path.
@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.