mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5160] [Engine] Intel Arc Pro B70 (SYCL): output corrupts to "!!!!" as prompts get longer, with drafting on or off #3069
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#3069
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 @gstos on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5160
Area
Engine
Desktop app, Terminal or source?
Terminal (
strata launch --backend intel)What happened
On an Arc Pro B70 (SYCL engine), Qwen3.8-Flash-Next IQ3_XXS served with the DFlash2 drafter produces corrupt output at temperature 0: long answers degrade into a stream of
!!!!, or into a repetition loop (draft accepted 322/322), or ignore the prompt. The same prompt run six times gave different output each time (4 coherent but truncated, 1 correct, 1 entirely!!!!withdraft=0/0), so it is not deterministic.With the drafter turned off (
--drafting off --set drafting=off --set mtp=false, engine then runs with--spec 4and no--draft), the same card, model, flags and kernel are clean:!!!!, no loopsSo the DFlash2 path on SYCL/xe is what corrupts the output here, not the model files, the xe firmware, or the PCIe link. This looks related to #5138, which notes Auto never picks DFlash2 on SYCL; on this install I never chose a drafter and the launch still started the engine with it (
--draft dflash2 --draft-model .../qwen3.8-flash-next-dflash2.q4_0.pack --draft-fallback none --mtp <dir> --spec 6 --draft-conf 0.6), with the DFlash2 pack present in the data dir.Note:
--drafting offon its own did not remove--draft dflash2from the engine command line for me; I had to add--set drafting=off --set mtp=false. Worth checking whether the flag is honoured on the Intel route.Smallest steps or command that reproduce it
Then POST the same prompt several times to /v1/chat/completions with
temperature: 0andmax_tokensof 60 to 500. Add--drafting off --set drafting=off --set mtp=falseand it goes away.Reproduction status
Reproduced repeatedly on one machine (about 15 runs with the drafter, 12 without). Not tried on another card.
Strata version
Strata 0.2.10, terminal 0.1.56, engine 0.1.56-linux-x86_64-sycl
Graphics card, memory and system
Intel Arc Pro B70 (32 GB, BAR2 32 GB, PCIe Gen3 x16, AER counters 0), Xeon E5-2699v4 with 252 GB DDR4 ECC, Proxmox VE 9.2 kernel 7.0.14-20-pve, run inside an unprivileged LXC with /dev/dri passthrough. xe driver, GuC 70.72.1, HuC 8.2.10. intel-compute-runtime 26.35.39758.10, level-zero 1.32.0, IGC 2.41.5 (same userspace as #5138). No xe errors, resets or timeouts in the journal.
Side note: this host has a corrected-ECC storm on one DIMM (ue=0). I cannot fully rule it out, but the output is clean for 12 runs with only the drafter switched off, which makes memory an unlikely cause.
Model, size and settings
Qwen3.8-Flash-Next-GSQ-RCO-GGUF IQ3_XXS (ISTA-DASLab, 2 shards, 75.8 GB), 64k context,
--kv fp16,--stream-experts. Earlier attempts with default--kv int8,--kv fp16 --context 32kand the flags from #5138 all corrupted with the drafter on.Logs
Engine command line with the drafter (corrupt):
Engine log:
strata serve: DFlash2 drafter on (...q4_0.pack, graphs captured in 3288 ms); windows up to 8 tokens; no MTP layer is loadedEngine command line without it (clean): same but
--spec 4and no--draft/--mtp.@gstos commented on GitHub (Nov 3, 2026):
Correction to my report above: the DFlash2 drafter is not the (only) cause. After more testing with the drafter off (
--spec 4, no--draft), corruption still happens, it just needs a prompt where the model thinks first.With drafting off, a plain reasoning prompt ("A train leaves at 14:20 and arrives at 17:05 after a 15 minute stop. How long was it actually moving? Answer with the number only, in minutes.") produced a reasoning stream of only
!!!!!!...and was stopped at exactly 256 generated tokens (finish=length) in 8 of 8 runs, at temperature 0, 0.3 and 0.7. A code prompt and a 5.7k-token needle prompt did the same (256 tokens, empty answer). Short non-thinking prompts, a translation, a list and a Python function were fine, which is why my first sample looked clean. So the drafter changes how often it happens (and made it non-deterministic), but the SYCL decode path on the B70 still emits garbage when the model starts a thinking block.Same setup as above (Arc Pro B70, 0.1.56 SYCL engine, IQ3_XXS, kernel 7.0.14-20). Sorry for the noise; the title overstates the drafter.
@Maddy55555 commented on GitHub (Nov 4, 2026):
Adding a data point that I think narrows this down: on the same box the corruption depends on the quantization, not on the SYCL/xe path as such.
Two models, same cards, same engine, same flags, same MTP draft layer (
rt/, 29 tensors), only the quantization differs:!!!!, every prompt!!!!The control that matters: with drafting off, UD-Q4_K_XL is clean on the same setup — correct answers on all four gate prompts, 35–37 tok/s decode. So the Q4_K_XL model files, the xe firmware and the PCIe link are fine; only the combination Q4_K_XL + drafter produces garbage. Switch the quant to IQ4_XS with the drafter on and the same code path is healthy.
Environment (in case it differs from yours):
xe, layer split autov0.2.10(ffa80d73) / 0.1.56, AOTbmg-g31--kv int8,--kv-resident 32768,--stream-experts,--vram-reserve-mib 2048,--prefill 8192,--spec 2--mtp /work/Strata-data/mtp/rt,strata mtp: draft layer loaded, 837 MiB of VRAM,spec=4,mtp_max=2Two things I would read from this:
!!!!streams. Worth treating as a fail-loud condition rather than a win.Caveat on my side: I tested MTP, not DFlash2 (DFlash2 is disabled here —
40-dflash2.conf.disabled), and I did not bisect further between the two quants. So this is one 2×2 observation, not a root cause. But it points away from "DFlash2 on SYCL is broken" and toward "a specific quant's expert weights break the drafter's verification".@Maddy55555 commented on GitHub (Nov 4, 2026):
Correction to my own comment above, after reading gstos' follow-up: my "clean with drafting off" control for UD-Q4_K_XL used short non-thinking prompts only — exactly the category gstos reports as unaffected. So that control does not show the Q4_K_XL model files are fine; it only shows they are fine on that prompt class. I withdraw the stronger claim.
What still stands is the comparison with the drafter on: IQ4_XS generated 2,320 tokens with the drafter active (draft acceptance 1132/1533 = 74 %) without a single
!!!!, while Q4_K_XL collapsed to!!!!at 100 % acceptance — same box, same engine, same draft layer. That asymmetry is real and worth chasing, but I never ran a thinking prompt on Q4_K_XL with drafting off, so on the Q4_K_XL side I cannot separate "quant" from "prompt class".The cheapest discriminating test, if anyone has the setup to run it: IQ4_XS with a reasoning prompt and drafting off. Clean → the quant axis is worth pursuing. Also
!!!!→ gstos is right and the decode path itself is the bug, independent of both the quant and the drafter.@gstos commented on GitHub (Nov 4, 2026):
Second correction, and my earlier one was wrong too. It was not thinking blocks. In my testing the trigger is prompt length, and it happens with drafting off. @Maddy55555, I'm sorry, you withdrew your control because of that comment, so please don't plan around "reasoning prompts" as the discriminator.
All of this is IQ3_XXS,
--kv fp16unless noted, drafting off (--drafting off --set drafting=off --set mtp=false, engine--spec 4), one B70. Each prompt asks the model to repeat a code from the prompt, and it passes only if the code comes back.Prompt length decides it, not what the model does next. With the engine defaults, every prompt from about 66 tokens up was bad. With
STRATA_VERIFY_NO_HOST=1, prompts of 69 tokens and under pass even though the model starts by thinking, so thinking on its own isn't the trigger.strata launchdefaultsSTRATA_VERIFY_NO_HOST=1bmg-g31+STRATA_VERIFY_NO_HOST=1NO_HOST=1+STRATA_PREFILL_MMQ=0NO_HOST=1+MMQ=0+STRATA_COPY_ENGINE=0--kv int8, AOT +NO_HOST=1!!!!STRATA_COPY_ENGINE=0on its own changed nothing (5 of 12).strata launchon Intel does not appear to setSTRATA_VERIFY_NO_HOST, whilesycl/serve/strata-sycl.shdoes.MMQ=0does not fix long prompts. A harder test on AOT +NO_HOST=1+MMQ=0, with the code in the middle of random text, 600 token budget, kernel 7.0.14-28:!!!!, 1 ran out of token budget!!!!!!!!The pass counts up to ~17,300 match the same test on the older kernel, though the mix of
!!!!and budget failures moved around. Growing a context in small steps failed the same way as sending it in one go, so this does not look like a batch size problem. Decode looks healthy once the prompt has been read correctly, so I now read this as a fault in the prompt reading (prefill) path, not in decode. I have not confirmed that!!!!is NaN logits.Kernel. Moving from Proxmox 7.0.14-20 to 7.0.14-28 changed nothing: both fixed-length runs I repeated gave the same 5 of 12 and 11 of 12, with the same 69/70 line. The newer kernel carries
drm/xe: Flush LSC untyped L1 dataport cache after rcs/ccs batches, which I confirmed in thexe.kodisassembly, so that patch is not the fix here.Caveats. I don't know whether the
!!!!in your report on another machine is the same fault as mine. The result above thatstrata launchneedsNO_HOST=1may be specific to my setup, an unprivileged LXC onxe. I have only tested IQ3_XXS on this code path.For your IQ4_XS test, I'd use a long prompt rather than a reasoning prompt: something over 5,000 tokens, with drafting off, and with the answer checkable against the prompt. If that is clean on your box and not on mine, the quant or the host is back in play.
I've corrected the title to match.
@gstos commented on GitHub (Nov 5, 2026):
Update for anyone comparing notes: I have changed two more things on this machine, and neither fixed it.
7.0.0-42-genericinstead of the Proxmox kernel, with the same userspace. Vulkan still fails. I did not rerun SYCL on this boot.I have not rerun Strata on the Ubuntu kernel, so this is not a direct Strata result.
Separately, intel/compute-runtime#1001 reproduces here on both kernels: fp16 NaN and bf16 garbage on plain matrix multiplies under PyTorch XPU, with f32 clean. It is a much smaller test than a Strata run. I have asked for it to be run on a known good B70 in ggml-org/llama.cpp#31560, and I'm also going to test this card in another machine. I will post here if either result changes the picture.
@TinScarecrow commented on GitHub (Nov 5, 2026):
Can be related: https://github.com/giridhart/Strata/blob/sycl-b580/docs/B580_IQ3S_NONFINITE_LOGITS_ACTION_PLAN.md
@agnaylor commented on GitHub (Nov 6, 2026):
Three B70 data points, one per setup. Full report and logs: #5439. None of them is the
long-prompt test above, so read them as boundaries, not as a reproduction.
1. Two B70s, every expert in VRAM,
STRATA_VERIFY_NO_HOST=1: clean on short prompts. Strata 0.2.10, engine0.1.56 SYCL release package (JIT), kernel 7.0.0-42, compute-runtime 26.31.39395.14,
--kv int8,--prefill auto(int8 prompt experts on, Battlemage default), MTP
--spec 2to5, IQ3_S and IQ3_XXS, thinking on and off, temperature0.7. Layer split auto put all 24,576 experts in the two caches. 0 of 1,168 replies contain a run of 8+
!or the wordNaN. Fresh prompts were 168 to 1,071 tokens; with thinking, the budget path re-read up to 3,137 tokens. That is above the
69/70-token line in your one-card table and below the ~4K where your
MMQ=0run starts to fail, so it says nothing aboutlong prompts.
2. One B70, same engine and flags, IQ3_S, 128K: not
!!!!, but no answers. 12,000 experts cached, 13,776 in a26.35 GiB pinned mirror (64 GB host, 28.2 GiB left). Every request generated 1 to 3 tokens at 0.5 tok/s; 16 of 21 replies
were empty, the rest
</think>or<|im_start|>fragments. No resets. One run of 21 prompts.3. One B70,
STRATA_VERIFY_NO_HOST=0, experts served from NVMe:!!!!every time (older engine). 2026-10-11,engine 0.1.42 source build (AOT), Unsloth UD-Q4_K_XL,
STRATA_MIRROR_MIB=24576,--kv int8 --kv-resident 32768 --prefill 4096 --spec 4. 7,764 experts in VRAM, 8,219 mirrored, so the other 8,593 were read from the NVMe through theCPU path (INTEL.md says there is no SSD expert tier on Intel, so this setup is outside what is supported). All 6 suite prompts (189 to 1,028 tokens, cap 4,096) ended in the
server's repeat stop after 256
!, with MTP acceptance 91 to 98% and suffix drafts 100% (126 of 126, 127 of 127).Three 90 to 95-token prose prompts with a 256 cap ended at the cap without the repeat stop (MTP acceptance 43 to 98%);
I did not check their text. This matches Maddy55555's point that near-100% acceptance goes with the
!!!!output, onthe same quant. Engine log and server output are in the report's data.
Not tested by me:
STRATA_PREFILL_MMQ=0,--kv fp16, prompts over 1,071 fresh tokens on any of these setups.An AI helped write the comment. They were measured on B70 cards.
@gstos commented on GitHub (Nov 7, 2026):
@agnaylor, thanks, those are useful boundaries, especially having two cards. I have a result that may change how you read this issue, and a request.
I moved this B70 from my X99 board to an ASUS Prime X299-Deluxe with an i9-7900X, using the same disk image. A small test failed the same way on both machines: PyTorch XPU fp16 and bf16 matrix multiplies return NaN or garbage at the same shapes, with f32 clean. Vulkan coopmat
test-backend-opsfailed too (50 FAIL on X99, 53 on X299), and it's 0 FAIL with coopmat off. Another owner's B70 passes both tests. llama.cpp SYCL gave 0 of 8 correct on both machines, but I have no known-good reference for that row.I did not run Strata on the X299, so this is not a direct Strata result. Still, this card may be faulty, so please weigh my long-prompt numbers above with that in mind. I'm returning it, so I can't test anything further.
Would you run
gemm-repro.pyon each of your B70s? It's under a minute and needs only PyTorch XPU. The script and steps are in https://github.com/ggml-org/llama.cpp/issues/31560#issuecomment-6648643201. A healthy card showsfinite=Trueand small errors on every line. Please include your CPU, board and runtime version. A pass on your cards would be two more results against my card, and a failure would mean this isn't one bad card.@leadgtr7 commented on GitHub (Nov 7, 2026):
Intel Arc Pro B65 (32 GB, single card), Strata v0.2.11 / engine 0.1.57 SYCL, Swift-1.5 (Qwen3.8-Flash-Next) IQ3_S,
--context 256k, MTP, one slot. Agent workloads (long coding/planning sessions through an agent harness), not one-shot prompts.One-shot prompts up to 256K were clean (6/6). The corruption only showed in long agent sessions (140-190K context), roughly once per 15-60 min, as a reply of 256
!stopped by the repeat guard. Same planning workload per arm (~13-21 min each, one run per arm, so small samples):!!!!eventsSTRATA_VERIFY_NO_HOST=1,STRATA_VERIFY_DEVICE_PLAN=1,STRATA_PREFILL_MMQ=offSTRATA_PREFILL_MMQ=offonlySTRATA_VERIFY_NO_HOST=1,STRATA_VERIFY_DEVICE_PLAN=1, MMQ defaultSince then we've run arm F's env for live work: about 10 real coding/planning jobs, ~4-14M tokens each (with cached input), plans up to ~230K tokens per session, and 0 repeat-guard / crash events in the server log over all of them.
Two side notes:
STRATA_PREFILL_MMQ=0is silently ignored by the launcher (the startup line still saysSTRATA_PREFILL_MMQ=auto);offworks. Easy to think you tested MMQ off when you didn't.@gstos commented on GitHub (Nov 7, 2026):
Update on my earlier comment: the card now fails the same way on a current platform, an i9-13900H at Gen4 x8, so older Gen3 boards don't explain it. PyTorch fp16/bf16 GEMM gave the same 6 bad lines, and Vulkan coopmat
test-backend-opsfailed again, with 0 failures when coopmat is off. A published llama.cpp SYCL setup also returned garbage, while the same build on CPU was correct.I'm treating this as a fault in my card, so please discount my long-prompt results here. That's separate from what @agnaylor and @leadgtr7 are seeing unless
gemm-repro.pyfails on their cards too. @leadgtr7, a run of it on your B65 would help separate the two. The script is in the link in my last comment. My card is out now, so I can't testSTRATA_VERIFY_NO_HOST.@leadgtr7 commented on GitHub (Nov 7, 2026):
@gstos ran
gemm-repro.py(unchanged, from the llama.cpp #31560 comment) on our Intel Arc Pro B65 (32 GB): it passes, every linefinite=True.fwupdtool igscon this host).So on this B65 the plain fp16/bf16 GEMM path is healthy, which fits your card being at fault, and our
!!!!result (fixed here bySTRATA_VERIFY_NO_HOST=1+STRATA_VERIFY_DEVICE_PLAN=1) is a separate effect.