mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4635] [Engine] SYCL: opt-in IQ2_XXS fused int8 prompt experts #5123
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#5123
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/4635
Author: @pankleks
Created: 10/29/2026
Status: 🔄 Open
Base:
main← Head:feat/sycl-iq2xxs-int8-opt-in📝 Commits (1)
0bc4a7d[Engine] add opt-in IQ2_XXS SYCL prompt experts📊 Changes
8 files changed (+202 additions, -14 deletions)
View changed files
📝
docs/INTEL_INT8_EXPERTS.md(+12 -0)📝
sycl/CMakeLists.txt(+18 -0)📝
sycl/include/strata/prefill/esimd_moe.hpp(+12 -0)➕
sycl/src/kernels/esimd_iq2xxs_optin_test.cpp(+19 -0)📝
sycl/src/kernels/esimd_moe_parity.cpp(+27 -3)📝
sycl/src/prefill/esimd_moe.dp.cpp(+42 -9)➕
sycl/src/prefill/iq2xxs_grid.inc(+69 -0)📝
sycl/src/prefill/prefill.cpp(+3 -2)📄 Description
Problem and result
IQ2_XXS gate/up experts cannot use the SYCL fused int8 prompt-expert path, so they materialize FP16 weights before oneMKL products. This adds default-off IQ2_XXS/type-16 coverage with
STRATA_SYCL_IQ2_XXS_I8=1, keeping the existing crossover/fallback rules. IQ2_XS is not included.Draft, not requesting merge/review readiness: maintainer scope agreement is pending in #4615. Exact-head build and kernel validation passed; submitted-head full-model validation remains outstanding. Historical measurements below must not be read as performance results for this submission revision.
Related discussion
Approach
Decode the IQ2_XXS 8-value grids, sign IDs and 32-value scales into the existing ESIMD s8 DPAS operand. This avoids the expanded FP16 weight matrices rather than caching them (9.375 MiB per expert at the tested model shape).
1; unset/0/other strings keep the old format set.STRATA_PREFILL_MMQ=0still selects FP16 everywhere.Activations are quantized as in the existing int8 path. This is not a bitwise-equivalent FP16 optimization; answers can differ in wording. No executable default is changed.
Validation
Submission:
0bc4a7d13085035dc249f4d94da53a86d08894e6, based on upstream46c152a1310f77cd2f0ce2c7cd213962df14fe83.Passed
git show --checkreviewed. Only separate SYCL implementation/test/build files and its component documentation changed.strata,esimd_moe_parity,esimd_iq2xxs_optin_test,esimd_moe_mode_test,quantize_act_parity,iq_multi_parityat the submission commit above. No local production patches were added.0,false,01,11,1, and existing mode-choice test.esimd_moe_parity, IQ2_XXS with IQ4_NL and Q2_0 down,quantize_act_parity,iq_multi_parity), none skipped; plus 24 direct numerical cases covering both down formats, MT 2/4/8, GRF 128/256, seed 20261029. Zero failed commands. Production's deployed older release was gracefully restored and its config/unit/binary/collector/profile hashes and both enabled local flags verified; no new kernel wedge/reset or Strata segfault was observed in the boot log.Exact-head commands executed in the oneAPI environment (source/build paths below are portable placeholders):
SRCwas a clean checkout of the full submitted commit above.GGMLwas pinned dependency3cf03257f219afbe7334045ff7c6a06ac68c627d. Hardware phase 2026-10-29 19:24:52–19:27:56 UTC, Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, Ryzen 9 5950X, two Arc Pro B50 16 GiB, xe/Level Zero driver 1.14.37020, oneAPI 2026.1. No AOT or full-model test was performed on the clean submitted head.Historical private-prototype evidence, not validation of the submitted revision
Older tested code:
fa663fabc5c2c568d6035b3ae853b38e1762865a(0.2.5 / engine 0.1.50), with unchanged host-job and telemetry fixes in both arms. The IQ2_XXS prototype-only patch SHA-256 wasd8f13818de369789f2ff95c524943b780e0db3850d00df5c0024c25c81aa7696; its executable SHA-256 was3027f82fe3b9eae696b42862962b42d9ca3407465292f7072a539ac189fc20c8. #4615 retains the first campaign's individual samples, settings and failures.cache_n=0. IQ2_XXS-only versus both flags off median prompt throughput:Actual prompt lengths 96/105/1007/4074. B70: AOT bmg-g31, prefill 4096, balanced PL/EN profile, mirror 22528 MiB, NO_HOST=1, power
on, 32 GiB service limit. B50 pair: JIT, split 25, prefill 1024, original SYCL profile, mirror 12288 MiB, NO_HOST=0, powerauto, 40 GiB service limit. Same IQ3_XXS model and 262144 configured context, INT8 KV/resident 32768, spec 4/min-p 0.5; profile and settings unchanged within each comparison. Model source revision/full GGUF hashes were not recorded; profile hashes and detailed first-campaign settings are in #4615. The B70 and B50 numbers are not a controlled comparison between machines.Failed / corrected in historical testing
Clean submitted-head build/kernel campaign: none observed; all selected tests passed.
The initial private compile lacked the copied codebook; corrected before GPU execution. A private smoke scorer originally decoded the terminal end token as answer text; stored token IDs were rescored using the server's stop-token rule without changing answers or expectations. Immediate post-unload telemetry assertions saw the one-second sampler's cached loaded snapshot; separate refresh-aware checks passed. These harness failures and raw results were retained; no production telemetry fix was needed.
Not run
Limits
Please keep this draft until scope is agreed and the validation gap is acceptable. Historical gains motivate the patch; they do not establish this clean newer revision's speed or broad quality. The B50 machine has a known long-load wedge history; no new fault was seen in the short private validation, which is not proof of sustained stability.
AI-assisted implementation and test execution in OpenCode on the submitter's hardware. The clean submission intentionally excludes all unrelated production changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.