mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2115] [Other] setup: the SYCL setup on an integrated Arc (xe): native launcher, a RAM fit rule, no KV streaming #3868
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#3868
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2115
Author: @andersson82
Created: 10/12/2026
Status: 🔄 Open
Base:
main← Head:sycl-igpu-setup📝 Commits (2)
955658esycl: run on an integrated Arc (Arc 140T, xe): free memory from /proc/meminfo, no prompt-slot borrowing, a native launcher887defcsetup: the SYCL setup on an integrated Arc (xe): native launcher, a RAM fit rule, no KV streaming📊 Changes
7 files changed (+439 additions, -26 deletions)
View changed files
📝
docs/INTEL.md(+80 -0)📝
docs/INTEL_ARC.md(+3 -2)📝
sycl/include/dpct/device.hpp(+23 -1)➕
sycl/serve/strata-sycl-native.sh(+28 -0)📝
sycl/setup_intel.py(+196 -22)📝
sycl/src/program/generate.cpp(+10 -0)📝
tools/test_setup_sycl.py(+99 -1)📄 Description
Problem and result
./setup.sh --backend syclon a PC whose only Intel GPU is integrated (an Intel GPU at PCI00:02.0onxe) stopswith "no Intel Arc found". With this change it finds the GPU, checks that oneAPI and the engine build are on the PC,
offers the sizes that fit the RAM, and writes a config for
sycl/serve/strata-sycl-native.sh(no Docker). On the Arc140T with Strata 0.2.2 that config serves 10 of 10 requests (8.4-12.7 tok/s decode).
Depends on #2114 (the launcher and the iGPU memory query): until that one is merged this diff also shows its commit;
the change of this pull request is the last commit.
Related discussion
None agreed in an issue; it is the setup half of #2114 (platform support for an integrated Arc, which the maintainers
have no machine to gate). Rebased on 0.2.2 and re-run; rebased again on 0.2.3 on 2026-10-23 (one conflict, see the pictures bullet below), and on 0.2.8 (main
870aedd9) on2026-10-30 (the code applied cleanly; main rewrote
docs/INTEL.md, so the docs part was redone in its new layout).Approach
sycl/setup_intel.py:intel_gpuslists the integrated GPU (onxe) with setup's unified-memory fields;i915_igpusfinds one oni915,for which setup stops and names the kernel command line that moves it to
xe.sycl_engine(igpu=True)also needs/opt/intel/oneapi/setvars.sh(orONEAPI_ROOT) and says how to build natively.to_sycl_igpu: the PC's paths, the launcher asexe,--stream-experts(written once, also when a hand-made configalready had it), no
--kv-resident(the KV is in the same RAM either way), the reserve as on a card (1,024 MiB up to32K, 2,048 above; a given one is kept),
SYCL_CACHE_PERSISTENT=1on the 140T only (it crashed on Xe2),STRATA_SYCL_BINfor an AOT build.--ple-io ramrule read the 1024 GB stand-inRAM the Intel path gives setup and wrote
--ple-io ram, which on a 62 GB iGPU would put the 29 GB n-gram table inthe GPU's own memory beside the 36.5 GiB expert file.
to_sycl_igpuleaves it out (one in the user'suser_argsiskept) and the "1024 GB of RAM" line is replaced by a plain one. Also: in
--check, Gyro sizes say they are not testedon an integrated GPU, and pictures stay off on an integrated GPU with a line that says why (see the next bullet).
xeid thatis not an Alchemist one (
is_b_series), which includes the 140T (7d51). On an integrated GPU setup instead keepspictures off unless
--visionis given ("nobody has run them on one yet (--vision yes turns them on)") and does notprint the B-series line. A card takes main's path unchanged. Main's test that no
--vision noneis left insetup_intel.pynow checks that the one left is in the integrated-GPU branch only.43.8 GiB did not run well). The size menu marks the sizes that need more and recommends the first that fits; a size
that does not fit is asked about (
--model X --yesinstalls it anyway);--checksays the same per model.tools/test_setup_sycl.py: 8 new tests (detection on xe and i915, the config, the fit rule, the persistent cache, thelauncher's binary path,
--ple-io,--stream-expertsonce).docs/INTEL.md: a row in the Setup table and a "With setup"table in "Integrated Arc".
Compatibility: discrete cards are unchanged. Every new branch needs the GPU at
00:02.0, where a card behind a PCIe portnever is.
setup.pyis not touched.Validation
Revision for the tests: main
870aedd9(v0.2.8) + #2114 + this commit (2026-10-30). The runs on the 140T are from 2026-10-22 onmain
011c9e60(v0.2.2) + #2114 + this commit. Hardware: Arc 140T (8086:7d51), Core Ultra 9 285H, 62 GiB RAM,Fedora 44 (kernel 7.2.11,
xe), oneAPI 2026.0, Python 3.14.Passed:
python tools/test_setup_sycl.py: 33 of 33.tools/test_setup_*.pyon this branch (v0.2.8): 50 pass; the other 4 fail on clean main870aedd9too (see Failed).870aedd9+ #2110 + #2114 + this commit:BUILD EXIT 0, 0 errors../setup.sh --backend sycl --family coder --model IQ1_M --context 98304 --no-start --yes(run in a checkout whose
sycl/setup_intel.pyis this branch's) exit 0. Step 1 shows "Intel Arc 140T, shared memory:56 GB of the RAM usable by the GPU, xe driver" and "RAM: 62 GB (the integrated GPU's memory is this RAM)". Run twice
from the hand-made config of #2114's docs: both wrote the same
args. These are that config's arguments plus setup's--pool-workers 10, with one--stream-expertsand no--ple-io.sycl/serve/server_intel.pywith engine 0.1.47 (+ #2110): 10 of 10 requests, 8.4-12.7 tok/s,0 stall reports. Without
--pool-workers8.5-13.3 tok/s, so that option makes no measurable difference here.Failed:
tools/test_setup_download_length.py,test_setup_dsv41.py,test_setup_golden.pyandtest_setup_unsloth.pyexit 1 on this branch and on clean main870aedd9alike (one run each). The older notes below arefrom v0.2.3.
tools/test_setup_golden.py(48 failures) andtools/test_setup_unsloth.py(4 failures) fail with the same counts onmain
5c8dd322without this branch (on011c9e60they were CUDA multi-GPU expectations, for examplecfg["gpu"][0, 1]vs
[1, 0]).tools/test_setup_download.pyis flaky on main too. On v0.2.3 it failed 5 of 6 runs on main5c8dd322and 5 of 8 on thisbranch (
test_a_killed_download_continuesand the twoNoRangeSupporttests; a SYCL build ran on the same PC duringmost of these runs). This branch does not touch the download code.
Not run:
./setup.shrun and the served requests on 0.2.3 or 0.2.8: they are from 0.2.2 (above).i915on real hardware (the message is unit-tested only), Windows.--model IQ1_M --yes).Limits
--ple-io ramrule on a discrete Intel card too, and
to_syclkeeps what setup wrote. That is a separate problem from this pullrequest and I did not change it.
--pool-workers 10here, and the engine warns the process can run only 10 CPU threads("Recommended: --pool-workers 9"). It made no measurable difference, so it is left as setup writes it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.