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

Đang mở
#7,334 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, python
Lĩnh vực
backend, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
11.6k
Fork
1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Niko1221/Strata

Tất cả issue của Niko1221/Strata

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.