[GH-ISSUE #5138] [Benchmark] Arc Pro B70 / Qwen3.8-Flash-Next UD-Q4_K_XL / 262K: MTP vs DFlash2 (and why Auto never picked DFlash2 on SYCL) #2404

Closed
opened 2026-11-04 01:59:01 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @mbaaku on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5138

Summary

  • On 0.2.10, Auto did not pick DFlash2 on this Arc Pro B70. The startup line was Drafting: MTP (DFlash2 isn't available in this mode).
    • Bug 1: the drafter check reads sycl/serve/strata-sycl.sh instead of the engine binary. I think this affects every SYCL install.
    • Bug 2: /work paths are checked outside the engine container. This one applies to my setup, where the server itself runs in Docker.
  • With both fixed, DFlash2 runs. On short prompts it decodes about as fast as MTP, or slightly faster: about 41 tok/s. It accepts more of its drafts: 83-85% on short answers, against 60-73% for MTP.
  • At 140K-235K context the two drafters are equal, within noise: 28.7-30.5 tok/s against 29.0-29.8 tok/s.
  • Prompt reading is the same with either drafter, about 1,300 tok/s.

Setup

GPU Intel Arc Pro B70 32 GB, xe driver, PCIe host to device 23-26 GB/s (engine probe)
Host Ryzen 9 7950X3D, 93 GB RAM, Debian 13, kernel 7.1.8
Runtime oneAPI 2026.1, compute-runtime 26.35.39758.10-0, level-zero 1.32.0, AOT bmg-g31
Strata v0.2.10 (ffa80d73), engine 0.1.56
Model Unsloth UD-Q4_K_XL, context 262144, --kv fp16 --kv-resident 32768 --prefill 8192 --stream-experts --vram-reserve-mib 1536, vision off, one request at a time
Expert cache MTP: 7,791 slots (22.7 GiB). DFlash2: 7,866 slots (22.9 GiB). The rest of the experts (about 51 GiB) sit in the pinned host mirror.
MTP --mtp data/mtp/rt --spec 4 --spec-min-p 0.5
DFlash2 Q4_0 pack from strata drafting fetch, Auto flags: --draft dflash2 --draft-fallback none --draft-conf 0.6, --spec 4 from my user_args

Requests were greedy (temperature 0), streamed through the OpenAI endpoint. Decode speed is (completion tokens - 1) / (last token - first token). Acceptance figures come from the engine's drafts accepted N of M lines.

Long context: same script, same config, only the drafter changes

Each prompt is the same document set repeated to length, and the model writes 300 tokens.

Prompt tokens MTP decode MTP accepted DFlash2 decode DFlash2 accepted Prompt read (MTP / DFlash2)
140,765 29.0 tok/s 47% (129/276) 28.7 tok/s 52% (105/202) 516* / 1,312 tok/s
187,667 29.8 tok/s 51% (132/259) 30.5 tok/s 59% (112/191) 1,300 / 1,306 tok/s
234,565 29.2 tok/s 50% (138/274) 28.7 tok/s 50% (108/214) 1,267 / 1,276 tok/s

* The first request after engine start, with a cold page cache.

Short prompts

DFlash2, measured with the server otherwise idle:

DFlash2
Short answer (~175 tokens), 2 runs 41.1 / 40.8 tok/s, 83-85% accepted
Long answer (800 tokens), 2 runs 33.8 / 35.3 tok/s, 63-70% accepted
Prompt 5.6K / 18K / 28K 1,182 / 1,168 / 1,309 tok/s

For comparison, MTP on the same day, but not from the same script:

  • 131K-context config, similar short coding prompts: 31.1-40.6 tok/s, 60-74% accepted.
  • 262K config, about 100 real agent turns (OpenCode supervisor), from the engine log, grouped by prompt size and weighted by tokens:
Prompt size Turns MTP decode MTP accepted
2K-50K 40 34.3 tok/s (31.2-43.6) 63%
50K-100K 45 32.4 tok/s (27.1-37.2) 60%
100K-150K 13 33.3 tok/s (28.9-35.7) 62%

DFlash2 on the same agent session at about 115K context: 33.1 and 33.9 tok/s, 68-70% accepted. That is two turns only.

The short-prompt MTP figures are not a clean A/B with the DFlash2 run. Treat the short-prompt difference as "DFlash2 is not slower", not as a measured percentage.

Bug 1: the drafter check reads the launcher script, not the engine binary

In serve/server.py, engine_args() calls drafting.apply(..., engine=exe). On Intel, exe is sycl/serve/strata-sycl.sh.

  1. drafting.engine_form() searches the file it is given for --draft-fallback and finds nothing in the shell script.
  2. It therefore returns FORM_NONE, which apply() treats as blocked.
  3. The start then prints Drafting: MTP (DFlash2 isn't available in this mode), even though the binary supports DFlash2. engine_form("build-sycl-aot/strata") returns mtp-dir.

server.engine_binary(exe, cfg) already resolves the script to its binary for the effort_position check. Using it here fixes the problem:

-                              slots=parallel_n if isinstance(parallel_n, int) and not isinstance(parallel_n, bool) else 0, engine=exe)
+                              slots=parallel_n if isinstance(parallel_n, int) and not isinstance(parallel_n, bool) else 0,
+                              engine=engine_binary(exe, cfg) if exe else exe)

Since b1f4c929 (Auto picks DFlash2 on SYCL), I would expect every Intel start through strata-sycl.sh to fall back to MTP like this.

Bug 2: /work paths are checked outside the engine container (only when the server runs in Docker)

The engine container mounts STRATA_ROOT as /work, so the run config's --mtp, --pack and drafter paths are /work/.... In my setup the server also runs in a container, where STRATA_ROOT is mounted at its real path. As a result:

  • drafting.mtp_ready() found no MTP folder and printed Drafting: off (no drafter is downloaded yet), although the MTP layer was on disk.
  • drafting.data_dir_of() returned /work/data, so pack_ready() did not see the DFlash2 pack.

My workaround is to mount STRATA_ROOT at /work in the server container as well. This probably does not affect a server that runs directly on the host. It might be worth one sentence in INTEL_ARC.md for container setups.

A smaller point: strata drafting fetch needs numpy for the packing step. In a container without numpy it fails with The DFlash2 drafter could not be prepared on this computer, and the actual cause is hidden behind the plain message.

Raw data

Engine log lines (DFlash2, idle server)
strata dflash2: 106299-token draft head (275.7 MiB), drafter 869 MiB of VRAM (Q4_0 weights)
strata serve: DFlash2 drafter on (/work/data/dflash2/qwen3.8-flash-next-dflash2.q4_0.pack, graphs captured in 15 ms); windows up to 6 tokens; no MTP layer is loaded
strata serve: prompt 84 tokens = 0 reused + 84 read in 719 ms (116.9 tok/s), 175 generated in 4268 ms (41.0 tok/s), drafts accepted 112 of 132, 1 checkpoints
strata serve: prompt 87 tokens = 0 reused + 87 read in 747 ms (116.4 tok/s), 178 generated in 4373 ms (40.7 tok/s), drafts accepted 113 of 136, 1 checkpoints
strata serve: prompt 92 tokens = 0 reused + 92 read in 728 ms (126.4 tok/s), 800 generated in 23699 ms (33.8 tok/s), drafts accepted 333 of 526, 1 checkpoints
strata serve: prompt 92 tokens = 0 reused + 92 read in 756 ms (121.7 tok/s), 800 generated in 22648 ms (35.3 tok/s), drafts accepted 369 of 579, 1 checkpoints
strata serve: prompt 5590 tokens = 0 reused + 5590 read in 4694 ms (1190.9 tok/s), 16 generated in 490 ms (32.7 tok/s), drafts accepted 6 of 12, 1 checkpoints
strata serve: prompt 18013 tokens = 0 reused + 18013 read in 15375 ms (1171.6 tok/s), 16 generated in 488 ms (32.8 tok/s), drafts accepted 7 of 11, 2 checkpoints
strata serve: prompt 28262 tokens = 0 reused + 28262 read in 21548 ms (1311.6 tok/s), 16 generated in 428 ms (37.3 tok/s), drafts accepted 9 of 13, 2 checkpoints
strata serve: prompt 140768 tokens = 0 reused + 140768 read in 107300 ms (1311.8 tok/s), 300 generated in 10467 ms (28.7 tok/s), drafts accepted 105 of 202, 6 checkpoints
strata serve: prompt 187666 tokens = 0 reused + 187666 read in 143700 ms (1305.8 tok/s), 300 generated in 9842 ms (30.5 tok/s), drafts accepted 112 of 191, 6 checkpoints
strata serve: prompt 234566 tokens = 0 reused + 234566 read in 183758 ms (1276.5 tok/s), 300 generated in 10451 ms (28.7 tok/s), drafts accepted 108 of 214, 6 checkpoints
Engine log lines (MTP, same 262K config)
strata mtp: draft layer loaded, 866 MiB of VRAM (experts 675, dense 111), files read in 0.43 s (1831 MiB/s)
strata serve: prompt 140765 tokens = 0 reused + 140765 read in 272874 ms (515.9 tok/s), 300 generated in 10351 ms (29.0 tok/s), drafts accepted 129 of 276, 6 checkpoints
strata serve: prompt 187667 tokens = 0 reused + 187667 read in 144379 ms (1299.8 tok/s), 300 generated in 10075 ms (29.8 tok/s), drafts accepted 132 of 259, 6 checkpoints
strata serve: prompt 234565 tokens = 0 reused + 234565 read in 185073 ms (1267.4 tok/s), 300 generated in 10270 ms (29.2 tok/s), drafts accepted 138 of 274, 6 checkpoints
Originally created by @mbaaku on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5138 ### Summary - On 0.2.10, Auto did not pick DFlash2 on this Arc Pro B70. The startup line was `Drafting: MTP (DFlash2 isn't available in this mode)`. - **Bug 1:** the drafter check reads `sycl/serve/strata-sycl.sh` instead of the engine binary. I think this affects every SYCL install. - **Bug 2:** `/work` paths are checked outside the engine container. This one applies to my setup, where the server itself runs in Docker. - With both fixed, DFlash2 runs. On short prompts it decodes about as fast as MTP, or slightly faster: about 41 tok/s. It accepts more of its drafts: 83-85% on short answers, against 60-73% for MTP. - At 140K-235K context the two drafters are equal, within noise: 28.7-30.5 tok/s against 29.0-29.8 tok/s. - Prompt reading is the same with either drafter, about 1,300 tok/s. ### Setup | | | |---|---| | GPU | Intel Arc Pro B70 32 GB, `xe` driver, PCIe host to device 23-26 GB/s (engine probe) | | Host | Ryzen 9 7950X3D, 93 GB RAM, Debian 13, kernel 7.1.8 | | Runtime | oneAPI 2026.1, compute-runtime 26.35.39758.10-0, level-zero 1.32.0, AOT `bmg-g31` | | Strata | v0.2.10 (`ffa80d73`), engine 0.1.56 | | Model | Unsloth UD-Q4_K_XL, context 262144, `--kv fp16 --kv-resident 32768 --prefill 8192 --stream-experts --vram-reserve-mib 1536`, vision off, one request at a time | | Expert cache | MTP: 7,791 slots (22.7 GiB). DFlash2: 7,866 slots (22.9 GiB). The rest of the experts (about 51 GiB) sit in the pinned host mirror. | | MTP | `--mtp data/mtp/rt --spec 4 --spec-min-p 0.5` | | DFlash2 | Q4_0 pack from `strata drafting fetch`, Auto flags: `--draft dflash2 --draft-fallback none --draft-conf 0.6`, `--spec 4` from my `user_args` | Requests were greedy (temperature 0), streamed through the OpenAI endpoint. Decode speed is (completion tokens - 1) / (last token - first token). Acceptance figures come from the engine's `drafts accepted N of M` lines. ### Long context: same script, same config, only the drafter changes Each prompt is the same document set repeated to length, and the model writes 300 tokens. | Prompt tokens | MTP decode | MTP accepted | DFlash2 decode | DFlash2 accepted | Prompt read (MTP / DFlash2) | |---:|---:|---:|---:|---:|---:| | 140,765 | 29.0 tok/s | 47% (129/276) | 28.7 tok/s | 52% (105/202) | 516* / 1,312 tok/s | | 187,667 | 29.8 tok/s | 51% (132/259) | 30.5 tok/s | 59% (112/191) | 1,300 / 1,306 tok/s | | 234,565 | 29.2 tok/s | 50% (138/274) | 28.7 tok/s | 50% (108/214) | 1,267 / 1,276 tok/s | \* The first request after engine start, with a cold page cache. ### Short prompts DFlash2, measured with the server otherwise idle: | | DFlash2 | |---|---:| | Short answer (~175 tokens), 2 runs | 41.1 / 40.8 tok/s, 83-85% accepted | | Long answer (800 tokens), 2 runs | 33.8 / 35.3 tok/s, 63-70% accepted | | Prompt 5.6K / 18K / 28K | 1,182 / 1,168 / 1,309 tok/s | For comparison, MTP on the same day, but not from the same script: - **131K-context config, similar short coding prompts:** 31.1-40.6 tok/s, 60-74% accepted. - **262K config, about 100 real agent turns** (OpenCode supervisor), from the engine log, grouped by prompt size and weighted by tokens: | Prompt size | Turns | MTP decode | MTP accepted | |---|---:|---:|---:| | 2K-50K | 40 | 34.3 tok/s (31.2-43.6) | 63% | | 50K-100K | 45 | 32.4 tok/s (27.1-37.2) | 60% | | 100K-150K | 13 | 33.3 tok/s (28.9-35.7) | 62% | DFlash2 on the same agent session at about 115K context: 33.1 and 33.9 tok/s, 68-70% accepted. That is two turns only. The short-prompt MTP figures are not a clean A/B with the DFlash2 run. Treat the short-prompt difference as "DFlash2 is not slower", not as a measured percentage. ### Bug 1: the drafter check reads the launcher script, not the engine binary In `serve/server.py`, `engine_args()` calls `drafting.apply(..., engine=exe)`. On Intel, `exe` is `sycl/serve/strata-sycl.sh`. 1. `drafting.engine_form()` searches the file it is given for `--draft-fallback` and finds nothing in the shell script. 2. It therefore returns `FORM_NONE`, which `apply()` treats as `blocked`. 3. The start then prints `Drafting: MTP (DFlash2 isn't available in this mode)`, even though the binary supports DFlash2. `engine_form("build-sycl-aot/strata")` returns `mtp-dir`. `server.engine_binary(exe, cfg)` already resolves the script to its binary for the `effort_position` check. Using it here fixes the problem: ```diff - slots=parallel_n if isinstance(parallel_n, int) and not isinstance(parallel_n, bool) else 0, engine=exe) + slots=parallel_n if isinstance(parallel_n, int) and not isinstance(parallel_n, bool) else 0, + engine=engine_binary(exe, cfg) if exe else exe) ``` Since `b1f4c929` (Auto picks DFlash2 on SYCL), I would expect every Intel start through `strata-sycl.sh` to fall back to MTP like this. ### Bug 2: `/work` paths are checked outside the engine container (only when the server runs in Docker) The engine container mounts STRATA_ROOT as `/work`, so the run config's `--mtp`, `--pack` and drafter paths are `/work/...`. In my setup the server also runs in a container, where STRATA_ROOT is mounted at its real path. As a result: - `drafting.mtp_ready()` found no MTP folder and printed `Drafting: off (no drafter is downloaded yet)`, although the MTP layer was on disk. - `drafting.data_dir_of()` returned `/work/data`, so `pack_ready()` did not see the DFlash2 pack. My workaround is to mount STRATA_ROOT at `/work` in the server container as well. This probably does not affect a server that runs directly on the host. It might be worth one sentence in INTEL_ARC.md for container setups. A smaller point: `strata drafting fetch` needs numpy for the packing step. In a container without numpy it fails with `The DFlash2 drafter could not be prepared on this computer`, and the actual cause is hidden behind the plain message. ### Raw data <details><summary>Engine log lines (DFlash2, idle server)</summary> ``` strata dflash2: 106299-token draft head (275.7 MiB), drafter 869 MiB of VRAM (Q4_0 weights) strata serve: DFlash2 drafter on (/work/data/dflash2/qwen3.8-flash-next-dflash2.q4_0.pack, graphs captured in 15 ms); windows up to 6 tokens; no MTP layer is loaded strata serve: prompt 84 tokens = 0 reused + 84 read in 719 ms (116.9 tok/s), 175 generated in 4268 ms (41.0 tok/s), drafts accepted 112 of 132, 1 checkpoints strata serve: prompt 87 tokens = 0 reused + 87 read in 747 ms (116.4 tok/s), 178 generated in 4373 ms (40.7 tok/s), drafts accepted 113 of 136, 1 checkpoints strata serve: prompt 92 tokens = 0 reused + 92 read in 728 ms (126.4 tok/s), 800 generated in 23699 ms (33.8 tok/s), drafts accepted 333 of 526, 1 checkpoints strata serve: prompt 92 tokens = 0 reused + 92 read in 756 ms (121.7 tok/s), 800 generated in 22648 ms (35.3 tok/s), drafts accepted 369 of 579, 1 checkpoints strata serve: prompt 5590 tokens = 0 reused + 5590 read in 4694 ms (1190.9 tok/s), 16 generated in 490 ms (32.7 tok/s), drafts accepted 6 of 12, 1 checkpoints strata serve: prompt 18013 tokens = 0 reused + 18013 read in 15375 ms (1171.6 tok/s), 16 generated in 488 ms (32.8 tok/s), drafts accepted 7 of 11, 2 checkpoints strata serve: prompt 28262 tokens = 0 reused + 28262 read in 21548 ms (1311.6 tok/s), 16 generated in 428 ms (37.3 tok/s), drafts accepted 9 of 13, 2 checkpoints strata serve: prompt 140768 tokens = 0 reused + 140768 read in 107300 ms (1311.8 tok/s), 300 generated in 10467 ms (28.7 tok/s), drafts accepted 105 of 202, 6 checkpoints strata serve: prompt 187666 tokens = 0 reused + 187666 read in 143700 ms (1305.8 tok/s), 300 generated in 9842 ms (30.5 tok/s), drafts accepted 112 of 191, 6 checkpoints strata serve: prompt 234566 tokens = 0 reused + 234566 read in 183758 ms (1276.5 tok/s), 300 generated in 10451 ms (28.7 tok/s), drafts accepted 108 of 214, 6 checkpoints ``` </details> <details><summary>Engine log lines (MTP, same 262K config)</summary> ``` strata mtp: draft layer loaded, 866 MiB of VRAM (experts 675, dense 111), files read in 0.43 s (1831 MiB/s) strata serve: prompt 140765 tokens = 0 reused + 140765 read in 272874 ms (515.9 tok/s), 300 generated in 10351 ms (29.0 tok/s), drafts accepted 129 of 276, 6 checkpoints strata serve: prompt 187667 tokens = 0 reused + 187667 read in 144379 ms (1299.8 tok/s), 300 generated in 10075 ms (29.8 tok/s), drafts accepted 132 of 259, 6 checkpoints strata serve: prompt 234565 tokens = 0 reused + 234565 read in 185073 ms (1267.4 tok/s), 300 generated in 10270 ms (29.2 tok/s), drafts accepted 138 of 274, 6 checkpoints ``` </details>
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6610655240 --> @github-actions[bot] commented on GitHub (Nov 3, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6610713059 --> @github-actions[bot] commented on GitHub (Nov 3, 2026): Thanks, this follows the format now.
Author
Owner

@otaliptus commented on GitHub (Nov 5, 2026):

Confirming both bugs on a second Arc Pro B70 (v0.2.10 / engine 0.1.56 built from the tag, Debian 13, xe, AOT bmg-g31), with two additions and the fixes I run with.

Bug 2 is not Docker-only. My serve/server.py runs directly on the host, and sycl/setup_intel.py still writes every path argument in the container's form (--mtp /work/<data>/mtp/rt, --pack /work/<data>/packs/iq3_s), because that is what the engine inside strata-sycl.sh sees. So on a plain host install:

  • drafting.mtp_ready() finds no experts.bin under /work/... -> every Qwen3.8 start loses its MTP layer: --mtp and --spec-min-p are stripped, the log shows (+0 MiB for the draft head) and only suffix drafts (drafts accepted 1 of 3), chat decode 51-58 -> 37-39 tok/s (IQ3_S, greedy, 256 new tokens, 3 prompts x 3 rounds). "drafting": "mtp" in the config does not bring it back ("no drafter is downloaded yet", "mtp": false on the shaped config), since have_mtp is already False.
  • data_dir_of() returns /work/<data>, so pack_ready() never sees the DFlash2 pack, and vocab_path() returns a host path the engine cannot open.

I think this has been the state of every Intel install since 13edeb7f. My fix maps a /work/... argument that does not exist here onto the launcher's data root (STRATA_SYCL_ROOT, else the folder above the repo), checks on the host, and hands the engine the path it can see:

diff --git a/strata_control/drafting.py b/strata_control/drafting.py
index 56aa2c9c..39096388 100644
--- a/strata_control/drafting.py
+++ b/strata_control/drafting.py
@@ -260,6 +260,7 @@ def supported_model(model_name: str | None = None, family: str | None = None) ->
 
 def _here(path: Path) -> bool:
     try:
+        path = _host_path(str(path))                       # local patch: an Intel start names the pack by its container path
         return path.is_file() and path.stat().st_size > (1 << 20)
     except OSError:
         return False
@@ -541,6 +542,16 @@ def blocked_by(args: list[Any], *, split: bool = False, slots: int = 0) -> bool:
     return bool(slots > 1 or any(a in items for a in ("--batch", "--slots", "--pipeline-windows", "--parallel")))
 
 
+def _host_path(value: str) -> Path:
+    """A path the engine's arguments name, as this computer sees it.  The Intel engine runs in a container whose /work is the data root
+    the launcher mounts there (sycl/serve/strata-sycl.sh: STRATA_SYCL_ROOT, else the folder above the repo), and setup_intel writes the
+    arguments with those paths; a /work/... argument that is not here is looked up under that root (local patch, see the lab notes)."""
+    p = Path(value)
+    if not p.exists() and (value == "/work" or value.startswith("/work/")):
+        root = os.environ.get("STRATA_SYCL_ROOT") or str(Path(__file__).resolve().parents[1].parent)
+        return Path(root + value[len("/work"):])
+    return p
+
 def mtp_ready(args: list[Any]) -> bool | None:
     """Is the MTP layer this start would load on this computer? ``--mtp <folder>`` with its ``experts.bin`` (or, on a Mac, ``mtp-q2_0.gguf`` beside the folder).
     None (not known, taken as there) when the arguments name no layer at all (an Intel route, or a layer switched off) or a draft depth instead of a folder (Qwen3.6's
@@ -551,7 +562,7 @@ def mtp_ready(args: list[Any]) -> bool | None:
     value = _flag_value(args, "--mtp")
     if value is None or value.isdigit():
         return None
-    folder = Path(value)
+    folder = _host_path(value)
     try:
         return (folder / "experts.bin").is_file() or (folder.parent / "mtp-q2_0.gguf").is_file()
     except OSError:
@@ -634,10 +645,10 @@ def vocab_path(args: list[Any], data_dir: str | Path | None = None) -> Path | No
     """The draft vocabulary DFlash2 reads its draft head from: the person's own ``--mtp-draft-vocab``, else the one in the model's MTP folder (the subset the
     person chose in setup), else the copy the DFlash2 install keeps, else the default subset Strata ships. None when none of them is on this computer."""
     given = _flag_value(args, "--mtp-draft-vocab")
-    if given and Path(given).is_file():
-        return Path(given)
+    if given and _host_path(given).is_file():
+        return Path(given)                                 # local patch: checked on the host, named as the engine sees it
     folder = _flag_value(args, "--mtp")
-    if folder and not folder.isdigit() and (Path(folder) / VOCAB_NAME).is_file():
+    if folder and not folder.isdigit() and (_host_path(folder) / VOCAB_NAME).is_file():
         return Path(folder) / VOCAB_NAME
     if data_dir and vocab_target(data_dir).is_file():
         return vocab_target(data_dir)

Bug 1: same diagnosis and the same engine_binary(exe, cfg) fix as yours, nothing to add.

A third one on the Intel route, 0.2.10 only: sycl/serve/server_intel.py install_two_card_spec wraps engine_args(cfg, *more) and the 0.2.10 server now calls engine_args(cfg, exe, announce=False), so an Intel start dies with TypeError: engine_args() got an unexpected keyword argument 'announce':

diff --git a/sycl/serve/server_intel.py b/sycl/serve/server_intel.py
index 66bbe1a6..f61208f2 100644
--- a/sycl/serve/server_intel.py
+++ b/sycl/serve/server_intel.py
@@ -331,8 +331,8 @@ def install_two_card_spec():
     from strata_control import intel_spec
     original = S.engine_args
 
-    def engine_args(cfg):
-        args = original(cfg)
+    def engine_args(cfg, *more, **kw):               # serve/server.py calls engine_args(cfg, exe, announce=...) since 0.2.10
+        args = original(cfg, *more, **kw)
         try:
             if cfg.get("backend") == "sycl" and S.layer_split_of(cfg):
                 sysfs = intel_spec.sysfs_cards()

With all three in place Auto does pick DFlash2 here, and then the IQ3_S model hit a different, engine-side problem: 0 of every draft accepted because the SYCL DFlash2 port gathers its draft head as rows from a Q6_K head that the engine has stored as STRATA_Q6_PLANAR planes. Your UD-Q4_K_XL has a Q8_0 head (275.7 MiB draft head vs 212.9 MiB here), which is why it worked for you. Details, proof and a fix in #5286. With that fixed, DFlash2 vs MTP here (same config, medians over 3 rounds): code chat 59.0 -> 68.5 tok/s, prose chats 52.8 -> 54.8 and 51.5 -> 52.7, after a 6.3k prompt 48.6 -> 49.2, after 21k 47.5 -> 48.0, acceptance 56-81 % -> 64-87 %, answers identical. So on the B70 it looks like "never slower, and faster on code", in line with your short-prompt numbers.

Also seconding the numpy note: strata drafting fetch worked for me only with the repo's .venv Python; the system Python without numpy gives the plain "could not be prepared" message.

<!-- gh-comment-id:6654539646 --> @otaliptus commented on GitHub (Nov 5, 2026): Confirming both bugs on a second Arc Pro B70 (v0.2.10 / engine 0.1.56 built from the tag, Debian 13, xe, AOT bmg-g31), with two additions and the fixes I run with. **Bug 2 is not Docker-only.** My `serve/server.py` runs directly on the host, and `sycl/setup_intel.py` still writes every path argument in the container's form (`--mtp /work/<data>/mtp/rt`, `--pack /work/<data>/packs/iq3_s`), because that is what the engine inside `strata-sycl.sh` sees. So on a plain host install: - `drafting.mtp_ready()` finds no `experts.bin` under `/work/...` -> every Qwen3.8 start loses its MTP layer: `--mtp` and `--spec-min-p` are stripped, the log shows `(+0 MiB for the draft head)` and only suffix drafts (`drafts accepted 1 of 3`), chat decode 51-58 -> 37-39 tok/s (IQ3_S, greedy, 256 new tokens, 3 prompts x 3 rounds). `"drafting": "mtp"` in the config does not bring it back ("no drafter is downloaded yet", `"mtp": false` on the shaped config), since `have_mtp` is already False. - `data_dir_of()` returns `/work/<data>`, so `pack_ready()` never sees the DFlash2 pack, and `vocab_path()` returns a host path the engine cannot open. I think this has been the state of every Intel install since `13edeb7f`. My fix maps a `/work/...` argument that does not exist here onto the launcher's data root (`STRATA_SYCL_ROOT`, else the folder above the repo), checks on the host, and hands the engine the path it can see: ```diff diff --git a/strata_control/drafting.py b/strata_control/drafting.py index 56aa2c9c..39096388 100644 --- a/strata_control/drafting.py +++ b/strata_control/drafting.py @@ -260,6 +260,7 @@ def supported_model(model_name: str | None = None, family: str | None = None) -> def _here(path: Path) -> bool: try: + path = _host_path(str(path)) # local patch: an Intel start names the pack by its container path return path.is_file() and path.stat().st_size > (1 << 20) except OSError: return False @@ -541,6 +542,16 @@ def blocked_by(args: list[Any], *, split: bool = False, slots: int = 0) -> bool: return bool(slots > 1 or any(a in items for a in ("--batch", "--slots", "--pipeline-windows", "--parallel"))) +def _host_path(value: str) -> Path: + """A path the engine's arguments name, as this computer sees it. The Intel engine runs in a container whose /work is the data root + the launcher mounts there (sycl/serve/strata-sycl.sh: STRATA_SYCL_ROOT, else the folder above the repo), and setup_intel writes the + arguments with those paths; a /work/... argument that is not here is looked up under that root (local patch, see the lab notes).""" + p = Path(value) + if not p.exists() and (value == "/work" or value.startswith("/work/")): + root = os.environ.get("STRATA_SYCL_ROOT") or str(Path(__file__).resolve().parents[1].parent) + return Path(root + value[len("/work"):]) + return p + def mtp_ready(args: list[Any]) -> bool | None: """Is the MTP layer this start would load on this computer? ``--mtp <folder>`` with its ``experts.bin`` (or, on a Mac, ``mtp-q2_0.gguf`` beside the folder). None (not known, taken as there) when the arguments name no layer at all (an Intel route, or a layer switched off) or a draft depth instead of a folder (Qwen3.6's @@ -551,7 +562,7 @@ def mtp_ready(args: list[Any]) -> bool | None: value = _flag_value(args, "--mtp") if value is None or value.isdigit(): return None - folder = Path(value) + folder = _host_path(value) try: return (folder / "experts.bin").is_file() or (folder.parent / "mtp-q2_0.gguf").is_file() except OSError: @@ -634,10 +645,10 @@ def vocab_path(args: list[Any], data_dir: str | Path | None = None) -> Path | No """The draft vocabulary DFlash2 reads its draft head from: the person's own ``--mtp-draft-vocab``, else the one in the model's MTP folder (the subset the person chose in setup), else the copy the DFlash2 install keeps, else the default subset Strata ships. None when none of them is on this computer.""" given = _flag_value(args, "--mtp-draft-vocab") - if given and Path(given).is_file(): - return Path(given) + if given and _host_path(given).is_file(): + return Path(given) # local patch: checked on the host, named as the engine sees it folder = _flag_value(args, "--mtp") - if folder and not folder.isdigit() and (Path(folder) / VOCAB_NAME).is_file(): + if folder and not folder.isdigit() and (_host_path(folder) / VOCAB_NAME).is_file(): return Path(folder) / VOCAB_NAME if data_dir and vocab_target(data_dir).is_file(): return vocab_target(data_dir) ``` **Bug 1**: same diagnosis and the same `engine_binary(exe, cfg)` fix as yours, nothing to add. **A third one on the Intel route, 0.2.10 only**: `sycl/serve/server_intel.py` `install_two_card_spec` wraps `engine_args(cfg, *more)` and the 0.2.10 server now calls `engine_args(cfg, exe, announce=False)`, so an Intel start dies with `TypeError: engine_args() got an unexpected keyword argument 'announce'`: ```diff diff --git a/sycl/serve/server_intel.py b/sycl/serve/server_intel.py index 66bbe1a6..f61208f2 100644 --- a/sycl/serve/server_intel.py +++ b/sycl/serve/server_intel.py @@ -331,8 +331,8 @@ def install_two_card_spec(): from strata_control import intel_spec original = S.engine_args - def engine_args(cfg): - args = original(cfg) + def engine_args(cfg, *more, **kw): # serve/server.py calls engine_args(cfg, exe, announce=...) since 0.2.10 + args = original(cfg, *more, **kw) try: if cfg.get("backend") == "sycl" and S.layer_split_of(cfg): sysfs = intel_spec.sysfs_cards() ``` With all three in place Auto does pick DFlash2 here, and then the IQ3_S model hit a different, engine-side problem: 0 of every draft accepted because the SYCL DFlash2 port gathers its draft head as rows from a Q6_K head that the engine has stored as `STRATA_Q6_PLANAR` planes. Your UD-Q4_K_XL has a Q8_0 head (275.7 MiB draft head vs 212.9 MiB here), which is why it worked for you. Details, proof and a fix in #5286. With that fixed, DFlash2 vs MTP here (same config, medians over 3 rounds): code chat 59.0 -> 68.5 tok/s, prose chats 52.8 -> 54.8 and 51.5 -> 52.7, after a 6.3k prompt 48.6 -> 49.2, after 21k 47.5 -> 48.0, acceptance 56-81 % -> 64-87 %, answers identical. So on the B70 it looks like "never slower, and faster on code", in line with your short-prompt numbers. Also seconding the numpy note: `strata drafting fetch` worked for me only with the repo's `.venv` Python; the system Python without numpy gives the plain "could not be prepared" message.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658864131 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
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#2404
No description provided.