mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5286] [Engine] Intel (SYCL) 0.1.56: DFlash2 accepts 0 of every draft with a Q6_K output head (IQ3_S): the draft head is gathered as rows from the STRATA_Q6_PLANAR planes #3151
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#3151
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 @otaliptus on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5286
Area
Engine
Desktop app, Terminal or source?
Source (
./setup.sh --backend sycl, engine built withsycl/tools/build.shin the strata-sycl-dev image, AOT bmg-g31)What happened
On an Arc Pro B70 with the Qwen3.8-Flash-Next IQ3_S native pack (ISTA-DASLab GSQ-RCO GGUF,
output.weightis Q6_K),--draft dflash2starts, printsDFlash2 drafter on, and then every request logsdrafts accepted 0 of N. Decode drops from about 52 tok/s with the MTP layer to 11-12 tok/s: each round drafts a window, the verifier rejects all of it, one token comes out. The committed text is the greedy text (identical to the MTP arm in 20 of 20 A/B pairs), so only the drafter's logits are wrong.Cause.
sycl/src/core/dflash2.cppbuilds its draft head withkernels::gather_rows(head->weights(), row_bytes, ...). On the SYCL engine a Q6_K output head is converted at load to the planar layout (sycl/src/core/native_head.cpp->native_q6_k_planar_adopt,STRATA_Q6_PLANARdefault on; the log saysthe output head (248320 x 2560) is stored as 16-byte-aligned planes). Gathering GGUF rows out of a planar buffer gives a garbage head, andnative_mmvq(14, ...)then serves it as planar as well. The MTP draft head on the same path (sycl/src/core/mtp.cpp: "STRATA_Q6_PLANAR: the LM head is stored as planes; the subset is gathered from them, planar") already handles this withnative_q6_k_planar_gather; the DFlash2 port does not.Only Q6_K heads are made planar, so a Q8_0-head model is fine: the Unsloth UD-Q4_K_XL in #5138 gets 83-85 % acceptance on the same card. The draft-head size in the log tells the two apart: 212.9 MiB here (Q6_K, 2100 B/row) vs 275.7 MiB in #5138 (Q8_0, 2720 B/row).
Ruled out first (one fresh engine each, same prompts, all
0 of N):--kv fp16instead of int8; no control vector;STRATA_PROMPT_ATTN_ESIMD=off; an engine built withSTRATA_SYCL_IQ_DECODE_FAST=OFF.Proof.
STRATA_Q6_PLANAR=0alone: the same requests go to 6 of 6, 97 of 117, 65 of 98, 68 of 99, 66 of 90 accepted, 50-73 tok/s.Fix. Gather the subset from the planes when the head is planar, as mtp.cpp does. With it the engine logs
STRATA_Q6_PLANAR: the DFlash2 draft head (106299 x 2560) is gathered from the planar headand the numbers below follow.(The registry entry of the gathered head is not removed in the destructor, same as the MTP head today.)
Result with the fix, MTP vs DFlash2 on the same config, greedy, 256 new tokens, alternating fresh engines, medians of 3 rounds (chat and the 6,345-token prompt) and 2 rounds (the 21,102-token prompt). MTP is
--mtp rt --spec 4 --spec-min-p 0.5; DFlash2 is whatstrata_control/drafting.pypicks for SYCL,--spec 6 --draft-conf 0.6, no MTP layer loaded:Prompt reading unchanged (1608 vs 1607 tok/s at 6.3k, 1757 vs 1761 at 21k). The drafter takes 807 MiB and leaves 37 more expert slots (12141 vs 12104) than the MTP layer. Every run was deterministic across rounds.
Two side notes:
STRATA_Q6_PLANAR=0cannot be passed throughsycl/serve/strata-sycl.sh: the launcher drops everySTRATA_*value of exactly0(#4546). For the test I let that one variable through locally./workpaths are checked on the host). Once those are fixed, Auto starts DFlash2 and every IQ3_S user gets the 0-acceptance engine.Smallest steps or command that reproduce it
Reproduction status
Reproduced repeatedly on one machine (every request of 11 engine starts: the default, four variants, and the planar-off and patched runs)
Strata version
v0.2.10, engine 0.1.56 (
strata 0.1.56, built from the tag withsycl/tools/build.sh, AOT bmg-g31)Graphics card, memory and system
Intel Arc Pro B70 32 GB, xe driver, Debian 13 (kernel 7.2), oneAPI 2026.1 in the strata-sycl-dev image, 62 GB RAM
Model, size and settings
Qwen3.8-Flash-Next-GSQ-RCO IQ3_S (ISTA-DASLab, 2 shards, native pack from tools/iq_pack.py), 262144 context,
--kv int8 --kv-resident 32768 --prefill 4096 --stream-experts --vram-reserve-mib 2048, control vector experimental-speed-projection layers 4-44,STRATA_PREFILL_MMQ=off, one request at a timeLogs
Stock engine:
Same engine with
STRATA_Q6_PLANAR=0:Patched engine (planar on):