mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4698] [Engine] Windows SYCL host arena: STRATA_VERIFY_NO_HOST=1 returns '!'x256 from the first token, =0 is correct (Arc Pro B70, IQ3_S, engine 0.1.53) #2147
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#2147
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 @demetree on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4698
Problem
On a Windows build of the SYCL port (this fork's
windows-syclbranch, engine 0.1.53, PR #3607), a model whose experts do not fit the card and that runs out of the host arena (no--stream-experts) returns garbage from the first token whenSTRATA_VERIFY_NO_HOST=1: the reasoning channel is!×256 and the answer is empty. WithSTRATA_VERIFY_NO_HOST=0the same request, same config, same model answers correctly.The engine says which path it took:
Environment
windows-syclat3e61b74e(upstream 0.2.7.1 merged into the fork; PR #3607 is open and unmerged) withsycl\tools\build_windows.bat.4c1eb2ce…aca3(shard 1) and316b46f3…e113(shard 2), both verified against the HF tree. Pack built bytools/iq_pack.pyfrom shard 1; MTP draft from the pinned base checkpoint (de4b8e4d).Reproduce
Config (A and B differ only in the env var):
One request:
Result
STRATA_VERIFY_NO_HOST=1STRATA_VERIFY_NO_HOST=0!!!!!!!!!!!!!!!!…(12 runs of 20+!, 255 chars)We need answer user's simple arithmetic: 17*23 = 391. Need final number only. Ensure no extra.391Repeatability: A produced this every time — 5 starts (32K with
--spec 4+ MTP; 8K with--spec 2; and 8K withSTRATA_PREFILL_MMQ=0to rule the int8 prompt path out). B was correct every time (3 starts). The same settings also repeat!on IQ3_XXS, so it is not specific to this quantization.What I think is happening (hypothesis, not confirmed)
With the host arena and
NO_HOST=1, nothing computes the misses on the CPU, so the GPU reads the routed expert rows from pageable host memory over PCIe while the CPU is filling the same arena — the window the R4 hit path and the doorbell are meant to guard. WithNO_HOST=0the CPU computes the misses and the values are right. I have not instrumented the copy or the window, so this comes from the log line and the A/B, not from a trace.Limits
--stream-experts, and it is not usable on this box: it pins 46.84 GiB and then dies at startup withUR_RESULT_ERROR_DEVICE_LOST, so the mirror could not be compared._WIN32branches insycl/src/core/pinned.dp.cppare upstream, but I have not verified that upstream reaches this code on Windows, so this may be fork-only today.Related
!×256 symptom, but as a long-generation ratchet at a spin bound with the CPU serving the misses (NO_HOST=0). This report is deterministic from token 1 and appears only withNO_HOST=1.