[GH-ISSUE #5395] [Engine] Intel Arc (SYCL): since 0.2.10 every start drops the MTP draft layer (mtp_ready checks the container's /work path on the host), ~30% slower decode #3220

Open
opened 2026-11-07 14:38:57 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @LordZanna on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5395

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

Every Intel Arc (SYCL) start loses the MTP draft layer since 0.2.10, on a server that runs directly on the host: [strata] Drafting: off (no drafter is downloaded yet), --mtp and --spec-min-p are left out of the engine's arguments, and chat decode drops about 30% (B70, Unsloth UD-IQ3_XXS: 43.4 tok/s, 64.1 with the fix below).

This is Bug 2 of #5138. That issue was closed as a benchmark report (collected for the benchmarks page), and a comment there already said that it also happens without Docker. The bug is still in 0.2.11 (9f7d977d), so here it is as a bug report of its own, measured on 0.2.11.

Summary

On Linux with --backend sycl, the server (sycl/serve/server_intel.py → serve/server.py engine_args) removes --mtp and --spec-min-p from the engine's arguments at every start, although the draft layer is installed and the run config names it. The server log says:

[strata] Drafting: off (no drafter is downloaded yet)

The engine then runs with prompt-lookup ("suffix") drafts only: expert cache auto: ... (+0 MiB for the draft head), and most short answers show drafts accepted 0 of 0.

The cause is strata_control/drafting.py mtp_ready(), added in 13edeb7f ("One drafter per run", v0.2.10). It checks Path(<--mtp value>) / "experts.bin" on the host. A SYCL run config holds the container's paths (/work/Strata-data/mtp/rt, written by sycl/setup_intel.py sycl_path), and /work does not exist on the host. mtp_ready() therefore returns False, decide() finds no MTP and no DFlash2 (not available on SYCL), and the start gets no drafter.

It is not specific to one model. Both run configs on this PC give the same result:

strata-iq3_s.json               supported: True  mtp_ready: False  data_dir: /work/Strata-data
strata-unsloth-ud-iq3_xxs.json  supported: True  mtp_ready: False  data_dir: /work/Strata-data

v0.2.9 has no mtp_ready(), and the same IQ3_S config started there with --mtp and strata mtp: draft head over 106299 tokens (212.9 MiB).

Setup

  • Arc Pro B70 (32 GB, xe), Ryzen 7 9700X, 62 GB RAM, Arch Linux (kernel 7.2.15)
  • Strata 9f7d977d (v0.2.11 + README/Docker commits), engine 0.1.57 built in strata-sycl-dev (AOT=bmg-g31), compute-runtime 26.40.40196.8, IGC 2.42.6
  • Model: Unsloth UD-IQ3_XXS (Dynamic v3.1, revision d9620119), installed with ./setup.sh --backend sycl --setup --family unsloth --model UD-IQ3_XXS --context 262144 --kv int8 --vision no --no-start --yes
  • Run config args (after setup; --ple-io ram removed by hand, see the separate issue about the 1024 GB RAM stand-in):
    --pack /work/Strata-data/packs/unsloth-ud-iq3_xxs --native /work/Strata-data/models/unsloth-UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00004.gguf --expert-profile /work/Strata/data/expert-profile-sycl.bin --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp /work/Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 --stream-experts --vram-reserve-mib 2048 --prefill 8192
  • The engine's actual start line has no --spec-min-p 0.5 and no --mtp /work/Strata-data/mtp/rt.

Measurements

tools/strata_bench.py --long against the running server (3 runs per test, medians):

v0.2.9, IQ3_S (MTP on) v0.2.11, UD-IQ3_XXS (MTP dropped) v0.2.11, UD-IQ3_XXS + the fix below
chat decode tok/s 60.9 43.4 64.1
agent decode tok/s 65.5 45.8 67.7
4K prompt tok/s 2135 2136 2071
32K prompt tok/s 2234 2358 2295
chat drafts accepted (100-token answers) n/a 0 of 0 in 6 of 9 49-72 of 81-112 in 9 of 9

Setting --spec-min-p 0.3 changes nothing, as expected: the flag is removed together with --mtp.

Fix I tested

The /work/ path mapped back to the host with the same rule sycl/setup_intel.py uses for MOUNT (STRATA_SYCL_ROOT, else the folder above the checkout):

--- a/strata_control/drafting.py
+++ b/strata_control/drafting.py
@@ def mtp_ready(args: list[Any]) -> bool | None:
     folder = Path(value)
+    if value.startswith("/work/") and not folder.exists():   # a SYCL config: the container's path, mounted from STRATA_SYCL_ROOT
+        folder = Path(os.environ.get("STRATA_SYCL_ROOT") or Path(__file__).resolve().parents[2]) / value[len("/work/"):]
     try:
         return (folder / "experts.bin").is_file() or (folder.parent / "mtp-q2_0.gguf").is_file()

With it, the log says [strata] Drafting: MTP (DFlash2 isn't available in this mode), and the engine starts with --spec-min-p 0.5 --mtp /work/Strata-data/mtp/rt and loads the draft head. The numbers are in the right column above.

A cleaner fix could pass the config's sycl_root (or backend: sycl) to drafting.apply(), so every on-disk check sees host paths. data_dir_of() also returns /work/Strata-data for these configs, so pack_ready() and vocab_path() look in the wrong place too. That does not matter while DFlash2 is not served on SYCL, but it will once it is.

A test idea: a SYCL run config written by setup_intel.py (container paths) with mtp/rt/experts.bin present under STRATA_SYCL_ROOT should keep --mtp in engine_args().

Smallest steps or command that reproduce it

  1. ./setup.sh --backend sycl --setup --model IQ3_S --no-start --yes (or any Qwen3.8-Flash-Next size; I used --family unsloth --model UD-IQ3_XXS).
  2. Start it with the written run-<model>.sh (sycl/serve/server_intel.py on the host).
  3. The server log says [strata] Drafting: off (no drafter is downloaded yet). The engine's start line has no --mtp, and the engine log has (+0 MiB for the draft head).

Or, without starting anything:

python -c 'import json; from strata_control import drafting as d; c=json.load(open("strata-iq3_s.json")); print(d.mtp_ready(c["args"]), d.data_dir_of(c["args"]))'
False /work/Strata-data

Reproduction status

Reproduced locally

Strata version

Strata 0.2.11 (9f7d977d) · engine 0.1.57 (SYCL, AOT bmg-g31, built in strata-sycl-dev)

Graphics card, memory and system

Intel Arc Pro B70 32 GB VRAM (xe), Ryzen 7 9700X, 62 GB RAM, Arch Linux (kernel 7.2.15), compute-runtime 26.40.40196.8, IGC 2.42.6

Model, size and settings

Qwen3.8-Flash-Next (Unsloth) UD-IQ3_XXS v3.1, 262144 context, int8 KV, --spec 4, --stream-experts; also checked with the IQ3_S run config

Originally created by @LordZanna on GitHub (Nov 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5395 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Source (START-HERE.bat, setup.sh or a build) ### What happened Every Intel Arc (SYCL) start loses the MTP draft layer since 0.2.10, on a server that runs directly on the host: `[strata] Drafting: off (no drafter is downloaded yet)`, `--mtp` and `--spec-min-p` are left out of the engine's arguments, and chat decode drops about 30% (B70, Unsloth UD-IQ3_XXS: 43.4 tok/s, 64.1 with the fix below). This is Bug 2 of #5138. That issue was closed as a benchmark report (collected for the benchmarks page), and a comment there already said that it also happens without Docker. The bug is still in 0.2.11 (9f7d977d), so here it is as a bug report of its own, measured on 0.2.11. #### Summary On Linux with `--backend sycl`, the server (`sycl/serve/server_intel.py` → `serve/server.py engine_args`) removes `--mtp` and `--spec-min-p` from the engine's arguments at every start, although the draft layer is installed and the run config names it. The server log says: ``` [strata] Drafting: off (no drafter is downloaded yet) ``` The engine then runs with prompt-lookup ("suffix") drafts only: `expert cache auto: ... (+0 MiB for the draft head)`, and most short answers show `drafts accepted 0 of 0`. The cause is `strata_control/drafting.py mtp_ready()`, added in 13edeb7f ("One drafter per run", v0.2.10). It checks `Path(<--mtp value>) / "experts.bin"` on the host. A SYCL run config holds the **container's** paths (`/work/Strata-data/mtp/rt`, written by `sycl/setup_intel.py sycl_path`), and `/work` does not exist on the host. `mtp_ready()` therefore returns `False`, `decide()` finds no MTP and no DFlash2 (not available on SYCL), and the start gets no drafter. It is not specific to one model. Both run configs on this PC give the same result: ``` strata-iq3_s.json supported: True mtp_ready: False data_dir: /work/Strata-data strata-unsloth-ud-iq3_xxs.json supported: True mtp_ready: False data_dir: /work/Strata-data ``` v0.2.9 has no `mtp_ready()`, and the same IQ3_S config started there with `--mtp` and `strata mtp: draft head over 106299 tokens (212.9 MiB)`. #### Setup - Arc Pro B70 (32 GB, xe), Ryzen 7 9700X, 62 GB RAM, Arch Linux (kernel 7.2.15) - Strata 9f7d977d (v0.2.11 + README/Docker commits), engine 0.1.57 built in `strata-sycl-dev` (`AOT=bmg-g31`), compute-runtime 26.40.40196.8, IGC 2.42.6 - Model: Unsloth `UD-IQ3_XXS` (Dynamic v3.1, revision d9620119), installed with `./setup.sh --backend sycl --setup --family unsloth --model UD-IQ3_XXS --context 262144 --kv int8 --vision no --no-start --yes` - Run config args (after setup; `--ple-io ram` removed by hand, see the separate issue about the 1024 GB RAM stand-in): `--pack /work/Strata-data/packs/unsloth-ud-iq3_xxs --native /work/Strata-data/models/unsloth-UD-IQ3_XXS/Qwen3.8-Flash-Next-UD-IQ3_XXS-00001-of-00004.gguf --expert-profile /work/Strata/data/expert-profile-sycl.bin --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp /work/Strata-data/mtp/rt --max-context 262144 --kv int8 --kv-resident 32768 --stream-experts --vram-reserve-mib 2048 --prefill 8192` - The engine's actual start line has no `--spec-min-p 0.5` and no `--mtp /work/Strata-data/mtp/rt`. #### Measurements `tools/strata_bench.py --long` against the running server (3 runs per test, medians): | | v0.2.9, IQ3_S (MTP on) | v0.2.11, UD-IQ3_XXS (MTP dropped) | v0.2.11, UD-IQ3_XXS + the fix below | | --- | ---: | ---: | ---: | | chat decode tok/s | 60.9 | **43.4** | **64.1** | | agent decode tok/s | 65.5 | 45.8 | 67.7 | | 4K prompt tok/s | 2135 | 2136 | 2071 | | 32K prompt tok/s | 2234 | 2358 | 2295 | | chat drafts accepted (100-token answers) | n/a | 0 of 0 in 6 of 9 | 49-72 of 81-112 in 9 of 9 | Setting `--spec-min-p 0.3` changes nothing, as expected: the flag is removed together with `--mtp`. #### Fix I tested The `/work/` path mapped back to the host with the same rule `sycl/setup_intel.py` uses for `MOUNT` (`STRATA_SYCL_ROOT`, else the folder above the checkout): ```diff --- a/strata_control/drafting.py +++ b/strata_control/drafting.py @@ def mtp_ready(args: list[Any]) -> bool | None: folder = Path(value) + if value.startswith("/work/") and not folder.exists(): # a SYCL config: the container's path, mounted from STRATA_SYCL_ROOT + folder = Path(os.environ.get("STRATA_SYCL_ROOT") or Path(__file__).resolve().parents[2]) / value[len("/work/"):] try: return (folder / "experts.bin").is_file() or (folder.parent / "mtp-q2_0.gguf").is_file() ``` With it, the log says `[strata] Drafting: MTP (DFlash2 isn't available in this mode)`, and the engine starts with `--spec-min-p 0.5 --mtp /work/Strata-data/mtp/rt` and loads the draft head. The numbers are in the right column above. A cleaner fix could pass the config's `sycl_root` (or `backend: sycl`) to `drafting.apply()`, so every on-disk check sees host paths. `data_dir_of()` also returns `/work/Strata-data` for these configs, so `pack_ready()` and `vocab_path()` look in the wrong place too. That does not matter while DFlash2 is not served on SYCL, but it will once it is. A test idea: a SYCL run config written by `setup_intel.py` (container paths) with `mtp/rt/experts.bin` present under `STRATA_SYCL_ROOT` should keep `--mtp` in `engine_args()`. ### Smallest steps or command that reproduce it 1. `./setup.sh --backend sycl --setup --model IQ3_S --no-start --yes` (or any Qwen3.8-Flash-Next size; I used `--family unsloth --model UD-IQ3_XXS`). 2. Start it with the written `run-<model>.sh` (`sycl/serve/server_intel.py` on the host). 3. The server log says `[strata] Drafting: off (no drafter is downloaded yet)`. The engine's start line has no `--mtp`, and the engine log has `(+0 MiB for the draft head)`. Or, without starting anything: ``` python -c 'import json; from strata_control import drafting as d; c=json.load(open("strata-iq3_s.json")); print(d.mtp_ready(c["args"]), d.data_dir_of(c["args"]))' False /work/Strata-data ``` ### Reproduction status Reproduced locally ### Strata version Strata 0.2.11 (9f7d977d) · engine 0.1.57 (SYCL, AOT bmg-g31, built in strata-sycl-dev) ### Graphics card, memory and system Intel Arc Pro B70 32 GB VRAM (xe), Ryzen 7 9700X, 62 GB RAM, Arch Linux (kernel 7.2.15), compute-runtime 26.40.40196.8, IGC 2.42.6 ### Model, size and settings Qwen3.8-Flash-Next (Unsloth) UD-IQ3_XXS v3.1, 262144 context, int8 KV, --spec 4, --stream-experts; also checked with the IQ3_S run config
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#3220
No description provided.