[Engine] strata-inkling SYCL (Arc Pro B70, 0.1.70): DFlash 2 decodes ~10x slower and one request crashed the engine (0xC0000409)

未关闭
#7,334 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
cpp, python

调研方向

Start with the SYCL DFlash 2 loading and decode path in ink_sycl_backend.cpp, then trace the drafter code that logs [ink_sycl_dflash2] and the server route at terminal/serve/server.py. Reproduce with the supplied Windows configuration and compare runs with STRATA_INK_DRAFTER=dflash2 set and unset. Done means DFlash 2 no longer causes the reported slowdown or engine crash on the Arc Pro B70; add a regression test if the relevant path has test coverage.

由索引模型根据 Issue 内容生成。

描述

needs-format
What happened

On an Arc Pro B70 32 GB, strata-inkling 0.1.70 with DFlash 2 loaded decodes about 10x slower than the same engine with no drafter, prefill drops 3-12x, and one request killed the engine with 0xC0000409 (stack buffer overrun / fast-fail). Without the drafter the same build does 36.3 tok/s decode. This looks like the "resident card has measured it" case the SYCL opt-in is waiting for — and the measurement is negative.

Environment
  • Engine strata-inkling 0.1.70, built from source on Windows with icx (SYCL backend), from the windows-sycl branch of the community port at 0.2.23.
  • Arc Pro B70 32 GB, driver 32.0.101.8976, oneAPI 2026.2, Windows 11 26H2 (26300), 64 GB RAM.
  • Model Inkling-2-Mini-SQ-15.strata (14.35 GB) + Inkling-2-Mini-Vision.strata, --max-context 32768 --kv auto --parallel 1, served by the Terminal server (terminal/serve/server.py --engine strata).
  • Drafter: strata-engine/Inkling-2-Mini-DFlash2 mix, 551,600,700 bytes, SHA256 cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387, placed as dflash2.safetensors beside the model.
How it is enabled (worth knowing for the wiring)

--draft dflash2 alone leaves the drafter off (dflash2=0). It loads only when STRATA_INK_DRAFTER=dflash2 is also set: df2_requested_env() reads that variable and ink_sycl_backend.cpp sets it only for --draft on. With both, the log shows:

[ink_sycl_dflash2] loaded ...\dflash2.safetensors in 2.80s (5 layers Q8_ROW, slots=1, ring=2112, max_M*=8)
[ink_sycl] DFlash 2 loaded: 635 MiB on the device (the memory plan counted 641 MiB)
[ink_sycl] runner ready: slots=1 ctx=32768 batch=512 dflash2=1 dspark=0 kv=fp16 sc=f32 hybrid=0 | KV=1184.0 MiB ... DevAlloc=15.47 GiB
Numbers (same server, same prompts, temperature 0)

Code prompt, 400 max, three runs:

arm tokens wall decode
no drafter 368 10.13 / 10.17 / 10.14 s 36.3 tok/s
DFlash 2 368 97.34 / 97.64 s 3.8 tok/s

6,425-token prompt, 16 max, three runs:

arm wall prefill
no drafter 15.14 / 15.17 / 15.20 s 423.5 tok/s
DFlash 2 191.69 / 53.97 / 46.97 s 65.9 tok/s average (33.5-136.8)

The third DFlash 2 request of the code prompt did not return: the server reported the engine stopped unexpectedly (exit code 0xC0000409: stack buffer overrun / fast-fail) and restarted it.

For context, the engines' own --bench (which does not load a drafter even with the env set) measures 0.1.70 at 36.3 tok/s decode / 392-505 prefill tokens/s, and 0.1.69 at 36.8 / 390-498 — so there is no release-to-release gap on this card; the drafter is the only variable above.

Repro
# run config: "args" without --dspark, "drafting": "dflash2", and in "env":
#   "STRATA_INK_DRAFTER": "dflash2"
# dflash2.safetensors beside the .strata file
python terminal\serve\server.py --engine strata --config <config> --port 8080 --host 127.0.0.1 --no-api-key
# then a normal /v1/chat/completions request; remove STRATA_INK_DRAFTER for the control arm
What I did not test

Other packs (GGUF), other contexts (64K/128K), more than one slot, and Linux. --bench cannot exercise the drafter here, so the server route is the only repro I have.

Note on the INTELARC fast set

Separate and by design: the fast set is refused on Battlemage (cd5fec5d3), which is why 0.1.70 runs the exact set here. This report is only about DFlash 2.

主要语言
C++
星标
11.6k
派生
1k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Niko1221/Strata 的其他 Issue

查看 Niko1221/Strata 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。