mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
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#2404
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 @mbaaku on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5138
Summary
Drafting: MTP (DFlash2 isn't available in this mode).sycl/serve/strata-sycl.shinstead of the engine binary. I think this affects every SYCL install./workpaths are checked outside the engine container. This one applies to my setup, where the server itself runs in Docker.Setup
xedriver, PCIe host to device 23-26 GB/s (engine probe)bmg-g31ffa80d73), engine 0.1.56--kv fp16 --kv-resident 32768 --prefill 8192 --stream-experts --vram-reserve-mib 1536, vision off, one request at a time--mtp data/mtp/rt --spec 4 --spec-min-p 0.5strata drafting fetch, Auto flags:--draft dflash2 --draft-fallback none --draft-conf 0.6,--spec 4from myuser_argsRequests 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 Mlines.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.
* The first request after engine start, with a cold page cache.
Short prompts
DFlash2, measured with the server otherwise idle:
For comparison, MTP on the same day, but not from the same script:
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()callsdrafting.apply(..., engine=exe). On Intel,exeissycl/serve/strata-sycl.sh.drafting.engine_form()searches the file it is given for--draft-fallbackand finds nothing in the shell script.FORM_NONE, whichapply()treats asblocked.Drafting: MTP (DFlash2 isn't available in this mode), even though the binary supports DFlash2.engine_form("build-sycl-aot/strata")returnsmtp-dir.server.engine_binary(exe, cfg)already resolves the script to its binary for theeffort_positioncheck. Using it here fixes the problem:Since
b1f4c929(Auto picks DFlash2 on SYCL), I would expect every Intel start throughstrata-sycl.shto fall back to MTP like this.Bug 2:
/workpaths 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,--packand 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 printedDrafting: off (no drafter is downloaded yet), although the MTP layer was on disk.drafting.data_dir_of()returned/work/data, sopack_ready()did not see the DFlash2 pack.My workaround is to mount STRATA_ROOT at
/workin 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 fetchneeds numpy for the packing step. In a container without numpy it fails withThe 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)
Engine log lines (MTP, same 262K config)
@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:
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
@github-actions[bot] commented on GitHub (Nov 3, 2026):
Thanks, this follows the format now.
@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.pyruns directly on the host, andsycl/setup_intel.pystill 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 insidestrata-sycl.shsees. So on a plain host install:drafting.mtp_ready()finds noexperts.binunder/work/...-> every Qwen3.8 start loses its MTP layer:--mtpand--spec-min-pare 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": falseon the shaped config), sincehave_mtpis already False.data_dir_of()returns/work/<data>, sopack_ready()never sees the DFlash2 pack, andvocab_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: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.pyinstall_two_card_specwrapsengine_args(cfg, *more)and the 0.2.10 server now callsengine_args(cfg, exe, announce=False), so an Intel start dies withTypeError: engine_args() got an unexpected keyword argument 'announce':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_PLANARplanes. 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 fetchworked for me only with the repo's.venvPython; the system Python without numpy gives the plain "could not be prepared" message.@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