mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1721] [CLOSED] sycl: "parallel" works on the Intel server, and the request after a batch no longer answers token 0 #3631
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#3631
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/1721
Author: @recutita
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:sycl-serve-batch-lines📝 Commits (2)
30e892fsycl: with STRATA_VERIFY_NO_HOST and a mirror, adaptive swaps are off (they left experts in neither)3d0ac1bsycl serve: _pump routes --batch slot lines (BT/BDONE) and ends on a fatal line, as serve/server.py📊 Changes
2 files changed (+31 additions, -1 deletions)
View changed files
📝
sycl/serve/server_intel.py(+21 -0)📝
sycl/src/program/generate.cpp(+10 -1)📄 Description
Title
Issue: none.
Summary
"parallel"(the engine's--batchslots) did not work on the SYCL server: every request stopped after one token.3d0ac1bfixes that insycl/serve/server_intel.py. Once batch windows run, they exposed an engine bug on one card whose experts do not all fit VRAM: the next single request answered token 0 for every position (!!!!, about 1 tok/s).30e892ffixes that and comes first, so no commit of this branch has"parallel"working but the request after it broken.What changed
30e892f:sycl/src/program/generate.cpp: withSTRATA_VERIFY_NO_HOSTand a mirror, adaptive swaps are off.REFUSEDcheck (experts in neither VRAM nor the mirror underSTRATA_VERIFY_NO_HOST) reads the switch once intono_host. A second check follows: if experts were missing from VRAM at start,no_hostis on and the adaptive tier is on,adapt_everybecomes 0 and one line says why.skip = 0) and waits for the host's plan, whichNO_HOST(the xe default instrata-sycl.sh) never sends; the wait gives up at its bound and the layer runs without a plan. WithSTRATA_VERIFY_DEBUG=1: 25 good windows, thend_reswith experts that were resident at start set to -1,skip[] = 0, layer-0 router weights-inf, ids0 1 2 ... 9.NO_HOSTnever runs the host's per-layer service, so it never counts misses and the tier never swaps. A batch window's host path computes misses on the CPU and counts them.3d0ac1b:sycl/serve/server_intel.py:_pumproutes the batch slots' lines.install_logprobs()replacesStrataEngine._pump(to keepLPlines beside their token), and its copy predates--batch: the slots'BT/BDONElines went to the main queue, where no slot reads them. It now does whatserve/server.py's_pumpdoes, in the same order: a line starting with one ofFATAL_PREFIXESends the engine;BT/BDONElines go to their slot's queue; at EOFlast_errkeeps anERRline and every slot queue getsNone. TheLPhandling is unchanged.How it was checked
Arc Pro B70 (32 GB, xe, Linux), AOT
bmg-g31, Flash-Next IQ3_XXS on one card (12,545 expert slots in VRAM, the other experts mirrored),--spec 4 --mtp, 32K context,"parallel": 2. The same chat request (a BST class, 64 tokens, greedy) alone, twice at once, then alone again:3d0ac1bonly!!!!..., 48 s (76 s without--mtp)3d0ac1b,STRATA_VERIFY_NO_HOST=0, no--mtp3d0ac1b,--adapt-every 0, no--mtp--adapt-every 0)NO_HOSTthe single-request path never swapped.--expert-parallel-device, a separate PR) all replies were the same.Extra Notes
30e892fchanges nothing (no misses at start); that is by the code, not run with this branch. WithNO_HOSToff the host serves such experts and swaps stay on.30e892f, adding swapped-out experts to the mirror, would keep the tier on; it changes how the mirror is built and was not tried.Assisted-by: Claude Code with Opus 5.5 medium
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.