mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3805] [Engine] Fix SYCL host expert job overflow #4788
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#4788
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/3805
Author: @pankleks
Created: 10/23/2026
Status: 🔄 Open
Base:
main← Head:fix/sycl-host-expert-job-capacity📝 Commits (1)
9044023fix(sycl): bound host expert jobs to their token capacity📊 Changes
5 files changed (+190 additions, -6 deletions)
View changed files
📝
sycl/CMakeLists.txt(+10 -0)➕
sycl/include/strata/host_expert_jobs.hpp(+27 -0)📝
sycl/src/core/expert_source.cpp(+5 -6)➕
sycl/tests/host_expert_jobs_native_test.cpp(+76 -0)➕
sycl/tests/host_expert_jobs_test.cpp(+72 -0)📄 Description
Problem and result
On Strata 0.2.2 (
011c9e600a93), a Linux SYCL JIT build loaded IQ3_XXS successfully but crashed on the first streamed arithmetic request. The machine runs Ubuntu 26.04 with a Ryzen 9 5950X and two Arc Pro B50 16 GB cards, with--layer-split 25,--prefill 1024,--spec 4, a 262144 context, INT8 KV and--kv-resident 32768. Host-served experts were enabled (STRATA_VERIFY_NO_HOST=0). The request was “What is 6 times 7? Reply with only the number.”, streamed, temperature 0, thinking disabled.The core showed
ExpertJobMulti::nt == 9although its token arrays holdMAXT == 8. Repeated routed IDs had overfilled a job and overwritten itsfmtpointer. The resulting stack reachednative_gu_rowsfromExpertPool::drainandrun_split_multi_native.The fix bounds each job to
MAXTentries and starts another job when necessary, without dropping any routed output. The same fix has passed live inference on the affected 0.2.2 installation. The PR is rebased onto currentmain(5c8dd322528c); the SYCL dispatch implementation is identical there.Related discussion
No matching overflow fix was found in open or closed issues/PRs. #3626 reports a similar CPU-row-reader stack on CUDA with IQ1_M, but the cause has not been verified as the same. This SYCL-only PR does not claim to resolve that report.
Approach
Validation
Passed:
quantize_act_parityandiq_multi_parityon each B50; streamed arithmetic; tool-call/result round-trip; Polish output; CPU vision; a 4093-token three-anchor prompt and cached follow-up; unload/reload and resumed two-card telemetry. That installation also has separate local telemetry patches, not included here.Exact submitted revision
904402345ea8be3b0571be25b91ddd845111bfa5, based on5c8dd322528c: Linux SYCL JIT Release, oneAPI 2026.1, Ubuntu 26.04, Ryzen 9 5950X, two B50s. A separate checkout was used; production was not switched.GGML_SRCbelow denotes the clean checkout of the pinned llama.cpp revision3cf03257f219afbe7334045ff7c6a06ac68c627d.Build succeeded; both host tests passed (32 grouping cases and 32 native evaluations). Both GPU parity tests also passed on each B50:
The exact submitted grouping code also passed this standalone sanitizer run on the B50 host and a second Linux workstation:
Failed:
-11/ SIGSEGV. The private core was inspected locally and is not uploaded.FAIL: job token count 8, capacity 8 (nt=1 pattern=1). The corrected grouping passes.Not run:
Limits
This fixes the confirmed host-job overflow. It does not establish why repeated IDs arose, change the router, or deduplicate routing contributions. Arithmetic equivalence is established only for the synthetic Q4_0 regression, not all quantizations or configurations. AI-assisted investigation and implementation; the evidence above comes from the actual local runs.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.