[PR #2114] [Engine] sycl: run on an integrated Arc (Arc 140T, xe): free memory from /proc/meminfo, no prompt-slot borrowing, a native launcher #3869

Open
opened 2026-11-07 15:31:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2114
Author: @andersson82
Created: 10/12/2026
Status: 🔄 Open

Base: main ← Head: sycl-igpu-engine


📝 Commits (1)

  • 955658e sycl: run on an integrated Arc (Arc 140T, xe): free memory from /proc/meminfo, no prompt-slot borrowing, a native launcher

📊 Changes

5 files changed (+128 additions, -3 deletions)

View changed files

📝 docs/INTEL.md (+64 -0)
📝 docs/INTEL_ARC.md (+3 -2)
📝 sycl/include/dpct/device.hpp (+23 -1)
➕ sycl/serve/strata-sycl-native.sh (+28 -0)
📝 sycl/src/program/generate.cpp (+10 -0)

📄 Description

Problem and result

The SYCL port does not start on an integrated Arc: the Arc 140T has no free-memory query, so the expert cache is sized
from 0 and refuses to start. With the three changes below, Strata 0.2.2 (engine 0.1.47) runs the Coder IQ1_M on the 140T
with 62 GiB of RAM through the normal server: 10 of 10 short requests at 10.2-15.0 tok/s decode, and a 74,939-token
prompt read at 149.9 tok/s with the fact at its start recalled. (The decode also needs #2110; without it every request
stalls on this GPU.)

None agreed in an issue. It covers the "integrated Arc GPUs ... not tested" line of docs/INTEL_ARC.md; #515 (the B390 on
Windows) is not covered. The maintainer's note on the first version: platform support for an integrated Arc, which the
maintainers have no machine to gate, so not part of the speed round. This is that pull request, rebased on 0.2.2 and
re-run, rebased on 0.2.3 on 2026-10-23 (no conflict), and rebased on 0.2.8 (main 870aedd9) on 2026-10-30: main rewrote
docs/INTEL.md and docs/INTEL_ARC.md, so the docs part was redone in main's new layout (see Approach). Built, not re-run on the GPU.

Approach

  • sycl/include/dpct/device.hpp, get_memory_info: on a device with host_unified_memory and no
    ext_intel_free_memory, free memory is MemAvailable from /proc/meminfo (Linux only); STRATA_SYCL_FREE_MIB sets
    it by hand (the xe driver keeps freed GPU memory in a pool that MemAvailable does not count until a reboot).
  • sycl/src/program/generate.cpp: no prompt-slot borrowing on a host_unified_memory device. With borrowing, the answer
    after a borrowing prompt was token 0 (every expert activation NaN from the second prompt chunk; measured on the 0.1.40
    port, any context).
  • sycl/serve/strata-sycl-native.sh (new): the config's exe for the engine on the PC's own oneAPI, no Docker. Sets the
    same port defaults as strata-sycl.sh (each overridable from the config's "env") plus STRATA_NO_MULTI_GR=1
    (15.1 vs 18.3 tok/s on the 140T with the multi-token GR kernels, 0.1.40, same output) and an OOM score of 1000 for the
    engine.
  • docs/INTEL.md: a section "Integrated Arc: the Arc 140T" (build, what is different from a card, a config to run it
    by hand, the numbers of 0.1.43 and 0.1.47), placed before "Pictures on an Arc" and written in the page's table and
    "Measured on" style; it also lists the STRATA_WINDOW_SYNC default of #2110. docs/INTEL_ARC.md: the 140T is no longer
    in "not tested".

Compatibility: every engine change is behind host_unified_memory, which a card with its own VRAM should not report;
discrete cards keep the code path they had. CUDA and HIP files are not touched. Setup is its own pull request (#2115),
which builds on this one.

Validation

Hardware: Arc 140T (8086:7d51, Xe-LPG+), Core Ultra 9 285H, 62 GiB RAM, Fedora 44 (kernel 7.2.11, xe),
intel-compute-runtime 26.35, oneAPI 2026.0, JIT build. Model: Coder IQ1_M, --spec 4 --spec-min-p 0.5 --mtp,
--max-context 98304, --kv int8, --stream-experts, --vram-reserve-mib 2048, through sycl/serve/server_intel.py,
greedy, thinking off. All runs 2026-10-22, on one boot (not the first start after it, so part of the cache is mirrored).

Passed:

  • Build of this branch alone, BUILD_DIR=build-sycl bash sycl/tools/build.sh: BUILD EXIT 0, 0 errors, on main 011c9e60
    (v0.2.2) + this commit and again on main 5c8dd322 (v0.2.3) + this commit (2026-10-23).
  • 2026-10-30, main 870aedd9 (v0.2.8, engine 0.1.54): BUILD EXIT 0, 0 errors, on main + this commit + #2110 + #2115
    together (not this commit alone).
  • bash -n sycl/serve/strata-sycl-native.sh.
  • On the 140T, engine 0.1.47 with this change and #2110:
    start expert cache auto: 23.16 GiB free from MemAvailable, 10,284 slots cached, 2,004 experts mirrored
    decode, 100-token answers, 10 requests 10 of 10 answered, 10.2-15.0 tok/s, 0 stall reports
    the same, a later start (9,628 cached) 10 of 10, 10.6-15.2 tok/s
    a 74,939-token prompt (needle at its start) read at 149.9 tok/s (8 min 20 s), BLUE-HERON-7 recalled
    is_prime correct code

Failed: none observed.

Not run:

  • The runs on the 140T on 0.2.3 or 0.2.8 (engine 0.1.48 / 0.1.54): the table is from 0.2.2 (engine 0.1.47).
  • Any discrete Intel card (I have none); the code paths there should be unchanged.
  • CUDA and HIP builds: no file of theirs is touched.
  • Other integrated GPUs (Lunar Lake, Panther Lake), i915 on an iGPU, Windows.
  • The general model (IQ2_XS) on 0.1.47 (it ran on the 0.1.40 port: 13.3-16.2 tok/s decode).
  • The first start after a boot (all experts cached) on 0.1.47: on 0.1.43 it gave 12.0-17.4 tok/s.
  • Prompt-slot borrowing was not re-tested on 0.1.47: it stays off on this GPU.

Limits

  • Decode on 0.1.47 came out lower than on 0.1.43 (10.2-15.0 vs 11.5-17.2 tok/s with part of the cache mirrored), but two
    runs of one config today already differed by about 15% (8.5-13.3 and 10.6-15.2), so I make no claim about a change
    between versions.
  • A 24-token prompt took 2.3 s on 0.1.47 (1.2 s on 0.1.43); not looked into.
  • Where a decode round's time goes is not profiled.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2114 **Author:** [@andersson82](https://github.com/andersson82) **Created:** 10/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `sycl-igpu-engine` --- ### 📝 Commits (1) - [`955658e`](https://github.com/Niko1221/Strata/commit/955658efa4bdf85f2e62db5b0a874ea3d0b48eed) sycl: run on an integrated Arc (Arc 140T, xe): free memory from /proc/meminfo, no prompt-slot borrowing, a native launcher ### 📊 Changes **5 files changed** (+128 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/INTEL.md` (+64 -0) 📝 `docs/INTEL_ARC.md` (+3 -2) 📝 `sycl/include/dpct/device.hpp` (+23 -1) ➕ `sycl/serve/strata-sycl-native.sh` (+28 -0) 📝 `sycl/src/program/generate.cpp` (+10 -0) </details> ### 📄 Description ## Problem and result The SYCL port does not start on an integrated Arc: the Arc 140T has no free-memory query, so the expert cache is sized from 0 and refuses to start. With the three changes below, Strata 0.2.2 (engine 0.1.47) runs the Coder IQ1_M on the 140T with 62 GiB of RAM through the normal server: 10 of 10 short requests at 10.2-15.0 tok/s decode, and a 74,939-token prompt read at 149.9 tok/s with the fact at its start recalled. (The decode also needs #2110; without it every request stalls on this GPU.) ## Related discussion None agreed in an issue. It covers the "integrated Arc GPUs ... not tested" line of docs/INTEL_ARC.md; #515 (the B390 on Windows) is not covered. The maintainer's note on the first version: platform support for an integrated Arc, which the maintainers have no machine to gate, so not part of the speed round. This is that pull request, rebased on 0.2.2 and re-run, rebased on 0.2.3 on 2026-10-23 (no conflict), and rebased on 0.2.8 (main 870aedd9) on 2026-10-30: main rewrote `docs/INTEL.md` and `docs/INTEL_ARC.md`, so the docs part was redone in main's new layout (see Approach). Built, not re-run on the GPU. ## Approach - `sycl/include/dpct/device.hpp`, `get_memory_info`: on a device with `host_unified_memory` and no `ext_intel_free_memory`, free memory is `MemAvailable` from `/proc/meminfo` (Linux only); `STRATA_SYCL_FREE_MIB` sets it by hand (the `xe` driver keeps freed GPU memory in a pool that `MemAvailable` does not count until a reboot). - `sycl/src/program/generate.cpp`: no prompt-slot borrowing on a `host_unified_memory` device. With borrowing, the answer after a borrowing prompt was token 0 (every expert activation NaN from the second prompt chunk; measured on the 0.1.40 port, any context). - `sycl/serve/strata-sycl-native.sh` (new): the config's `exe` for the engine on the PC's own oneAPI, no Docker. Sets the same port defaults as `strata-sycl.sh` (each overridable from the config's `"env"`) plus `STRATA_NO_MULTI_GR=1` (15.1 vs 18.3 tok/s on the 140T with the multi-token GR kernels, 0.1.40, same output) and an OOM score of 1000 for the engine. - `docs/INTEL.md`: a section "Integrated Arc: the Arc 140T" (build, what is different from a card, a config to run it by hand, the numbers of 0.1.43 and 0.1.47), placed before "Pictures on an Arc" and written in the page's table and "Measured on" style; it also lists the `STRATA_WINDOW_SYNC` default of #2110. `docs/INTEL_ARC.md`: the 140T is no longer in "not tested". Compatibility: every engine change is behind `host_unified_memory`, which a card with its own VRAM should not report; discrete cards keep the code path they had. CUDA and HIP files are not touched. Setup is its own pull request (#2115), which builds on this one. ## Validation Hardware: Arc 140T (8086:7d51, Xe-LPG+), Core Ultra 9 285H, 62 GiB RAM, Fedora 44 (kernel 7.2.11, `xe`), intel-compute-runtime 26.35, oneAPI 2026.0, JIT build. Model: Coder IQ1_M, `--spec 4 --spec-min-p 0.5 --mtp`, `--max-context 98304`, `--kv int8`, `--stream-experts`, `--vram-reserve-mib 2048`, through `sycl/serve/server_intel.py`, greedy, thinking off. All runs 2026-10-22, on one boot (not the first start after it, so part of the cache is mirrored). **Passed:** - Build of this branch alone, `BUILD_DIR=build-sycl bash sycl/tools/build.sh`: `BUILD EXIT 0`, 0 errors, on main 011c9e60 (v0.2.2) + this commit and again on main 5c8dd322 (v0.2.3) + this commit (2026-10-23). - 2026-10-30, main 870aedd9 (v0.2.8, engine 0.1.54): `BUILD EXIT 0`, 0 errors, on main + this commit + #2110 + #2115 together (not this commit alone). - `bash -n sycl/serve/strata-sycl-native.sh`. - On the 140T, engine 0.1.47 with this change and #2110: | | | |---|---| | start | `expert cache auto: 23.16 GiB free` from `MemAvailable`, 10,284 slots cached, 2,004 experts mirrored | | decode, 100-token answers, 10 requests | 10 of 10 answered, 10.2-15.0 tok/s, 0 stall reports | | the same, a later start (9,628 cached) | 10 of 10, 10.6-15.2 tok/s | | a 74,939-token prompt (needle at its start) | read at 149.9 tok/s (8 min 20 s), `BLUE-HERON-7` recalled | | `is_prime` | correct code | **Failed:** none observed. **Not run:** - The runs on the 140T on 0.2.3 or 0.2.8 (engine 0.1.48 / 0.1.54): the table is from 0.2.2 (engine 0.1.47). - Any discrete Intel card (I have none); the code paths there should be unchanged. - CUDA and HIP builds: no file of theirs is touched. - Other integrated GPUs (Lunar Lake, Panther Lake), `i915` on an iGPU, Windows. - The general model (IQ2_XS) on 0.1.47 (it ran on the 0.1.40 port: 13.3-16.2 tok/s decode). - The first start after a boot (all experts cached) on 0.1.47: on 0.1.43 it gave 12.0-17.4 tok/s. - Prompt-slot borrowing was not re-tested on 0.1.47: it stays off on this GPU. ## Limits - Decode on 0.1.47 came out lower than on 0.1.43 (10.2-15.0 vs 11.5-17.2 tok/s with part of the cache mirrored), but two runs of one config today already differed by about 15% (8.5-13.3 and 10.6-15.2), so I make no claim about a change between versions. - A 24-token prompt took 2.3 s on 0.1.47 (1.2 s on 0.1.43); not looked into. - Where a decode round's time goes is not profiled. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3869
No description provided.