mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
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#3220
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 @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),--mtpand--spec-min-pare 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--mtpand--spec-min-pfrom the engine's arguments at every start, although the draft layer is installed and the run config names it. The server log says:The engine then runs with prompt-lookup ("suffix") drafts only:
expert cache auto: ... (+0 MiB for the draft head), and most short answers showdrafts accepted 0 of 0.The cause is
strata_control/drafting.py mtp_ready(), added in13edeb7f("One drafter per run", v0.2.10). It checksPath(<--mtp value>) / "experts.bin"on the host. A SYCL run config holds the container's paths (/work/Strata-data/mtp/rt, written bysycl/setup_intel.py sycl_path), and/workdoes not exist on the host.mtp_ready()therefore returnsFalse,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:
v0.2.9 has no
mtp_ready(), and the same IQ3_S config started there with--mtpandstrata mtp: draft head over 106299 tokens (212.9 MiB).Setup
9f7d977d(v0.2.11 + README/Docker commits), engine 0.1.57 built instrata-sycl-dev(AOT=bmg-g31), compute-runtime 26.40.40196.8, IGC 2.42.6UD-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--ple-io ramremoved 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--spec-min-p 0.5and no--mtp /work/Strata-data/mtp/rt.Measurements
tools/strata_bench.py --longagainst the running server (3 runs per test, medians):Setting
--spec-min-p 0.3changes nothing, as expected: the flag is removed together with--mtp.Fix I tested
The
/work/path mapped back to the host with the same rulesycl/setup_intel.pyuses forMOUNT(STRATA_SYCL_ROOT, else the folder above the checkout):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/rtand loads the draft head. The numbers are in the right column above.A cleaner fix could pass the config's
sycl_root(orbackend: sycl) todrafting.apply(), so every on-disk check sees host paths.data_dir_of()also returns/work/Strata-datafor these configs, sopack_ready()andvocab_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) withmtp/rt/experts.binpresent underSTRATA_SYCL_ROOTshould keep--mtpinengine_args().Smallest steps or command that reproduce it
./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).run-<model>.sh(sycl/serve/server_intel.pyon the host).[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:
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