mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1713] [CLOSED] sycl/Arc: stepped verify window (opt-in STRATA_VERIFY_STEPPED) - CPU experts served between graph segments #3627
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#3627
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1713
Author: @aslater3
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:a770/pr-stepped📝 Commits (9)
8f69d94sycl: publish the doorbell with the uncached write hint33064c3sycl: chunk the expert mirror and raise memlock in the wrapper039992esycl: keep Alchemist's prompt path on its own buffersc756d4bsycl: add the doorbell payload checksumaa71188sycl: stage oneMKL GEMM operands that lie more than 4 GiB into their allocationb40f69fsycl: build Alchemist kernels for allocations past 4 GiBebe06f9sycl: setup picks the Intel card by PCI id and configures Alchemist712bbc9sycl: fix the GEMM staging scratch lifetime and unregister freed allocations4327029sycl: stepped verify window - CPU experts served between graph segments, cached host buffers and plain payload stores📊 Changes
18 files changed (+804 additions, -174 deletions)
View changed files
📝
docs/INTEL.md(+9 -0)📝
include/strata/kernels/elementwise.hpp(+18 -0)📝
sycl/CMakeLists.txt(+8 -1)📝
sycl/include/strata/core/gguf_expert_source.hpp(+7 -4)📝
sycl/include/strata/core/verify.hpp(+13 -0)📝
sycl/include/strata/sycl_doorbell.hpp(+30 -0)📝
sycl/include/strata/sycl_queue.hpp(+45 -1)➕
sycl/probe/doorbell_store.cpp(+43 -0)📝
sycl/serve/strata-sycl.sh(+1 -0)📝
sycl/setup_intel.py(+51 -16)📝
sycl/src/core/expert_cache.cpp(+6 -0)📝
sycl/src/core/gguf_expert_source.cpp(+72 -38)📝
sycl/src/core/layer.cpp(+2 -2)📝
sycl/src/core/session.cpp(+8 -0)📝
sycl/src/core/verify.cpp(+262 -8)📝
sycl/src/kernels/cuda/elementwise.dp.cpp(+142 -102)📝
sycl/src/prefill/gemm.dp.cpp(+58 -0)📝
sycl/src/program/generate.cpp(+29 -2)📄 Description
Stacked on #1602 (Alchemist setup + staging-scratch fix). The first new commit here is the last one.
What it does
STRATA_VERIFY_STEPPED=1is opt-in and off by default, so other GPUs are unaffected. It changes how the doorbell verify window serves CPU experts on Arc A-series.Today the window is one graph. GPU kernels spin on host flags while the CPU pool serves the off-GPU experts inside it. On an A770 that spinning costs about 100–170 ms of GPU wait per window.
With
STRATA_VERIFY_STEPPED=1:STRATA_VERIFY_PIPE=0andSTRATA_PIPE_HELPER_SIBLING=0turn the pipelining and the pinning off.malloc_hostinstead ofhost_malloc_polled, and the doorbell publishes use plain payload stores instead ofsys_store_mapped. The payload checksum still guards every host read.STRATA_VERIFY_HOST_UNCACHED=1keeps both uncached.STRATA_VERIFY_STEPPEDunset, every buffer and store is as onmain.Measured
Setup:
--resident-experts --spec 4 --mtp, greedy decoding, 256 new tokens.712bbc9)STRATA_VERIFY_STEPPED=0STRATA_VERIFY_HOST_UNCACHED=1, measured on the dev branch)The dev branch is this commit on top of an A770 rebase. Its resident set was 17.9 GiB, against 13.7 GiB for this branch with
STRATA_RESIDENT_HEADROOM_GIB=6. On this PR branch alone, with the smaller resident set, stepped decode was 19.9 tok/s. It was memory-bound because part of the expert set was not resident.Output check (greedy): this PR stepped, this PR stepped-off, and #1602 agree for the first 80 tokens. Run-to-run, #1602 itself agrees for 76–79 tokens on this prompt, so that is the existing nondeterminism, not a change.
Not tested
doorbell_plain_payload, ininclude/strata/kernels/elementwise.hpp; its definition is insycl/.On exit, #1602 and this branch both sometimes segfault after the stats are printed (rc 139). It also happens without this commit.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.