mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4615] [Engine] Scope: opt-in IQ2_XXS gate/up for SYCL int8 prefill #2092
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#2092
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 @pankleks on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4615
Area
[Engine]
What do you want to do?
Would you accept a SYCL-only, default-off IQ2_XXS gate/up extension to the existing fused int8 prompt-expert path as a focused PR?
This is a scope request under CONTRIBUTING.md, not a claim that the clean branch is ready for review. I have a private prototype and measured it on two Arc Pro B50s. A small preview is available here:
0bc4a7d13085035dc249f4d94da53a86d08894e6.46c152a1310f77cd2f0ce2c7cd213962df14fe83.What do you do today instead?
The existing int8 gate/up dispatch covers IQ3_S, IQ3_XXS and IQ2_S. IQ2_XXS experts take the FP16 conversion/matrix path. In the tested ISTA GSQ-RCO IQ3_XXS model, 9/48 layers use IQ2_XXS gate/up. Retaining their expanded FP16 weights is costly: 9.375 MiB per expert, or 4.6875 GiB for all 512 experts of one layer.
The proposed path decodes the existing IQ2_XXS codebook/signs/scales directly into DPAS operands instead of materializing those FP16 matrices.
Proposed scope and tradeoffs
STRATA_SYCL_IQ2_XXS_I8=1. Unset and all other values retain the old format set.STRATA_PREFILL_MMQ=0still selects FP16 everywhere.Historical prototype evidence, 29 October 2026
Provenance: private source based on
fa663fabc5c2c568d6035b3ae853b38e1762865a(0.2.5 / engine 0.1.50), with unchanged local telemetry and the SYCL host-job capacity fix described in #3805 present in both arms. The clean preview excludes those local patches. These are not clean-main or preview-head measurements.3027f82fe3b9eae696b42862962b42d9ca3407465292f7072a539ac189fc20c8.d8f13818de369789f2ff95c524943b780e0db3850d00df5c0024c25c81aa7696.7.0.0-38-generic, xe, Level Zero reported driver1.14.37020; oneAPI 2026.1 SYCL Release/JIT build. No AOT measurement.STRATA_VERIFY_NO_HOST=0; VRAM reserve 2048 MiB; GPU power policyauto; service limit 40 GiB, no service swap. Expert profile SHA-256ddddf9b361dd1cb1e68ef8d130759fa15da3b84d74f21d37b28f377493b80bbcunchanged.cache_n=0. Separate private crossover caches; all starts reported 13,546 expert slots, 7,908 on the primary. Existing GPU collector unchanged. Native engine protocol, not an HTTP/SSE latency benchmark.Median throughput, tok/s:
All 12 paired prompt-throughput observations favored on, but only 2/12 generated outputs matched exactly. Decode changes are mixed, not same-output speedups. This small experiment is not a standard/approved community benchmark or evidence for other cards.
All individual measured throughput samples (off / on, tok/s)
Validation status
Passed on the private prototype, not the preview head:
quantize_act_parityandiq_multi_parityon each card.Commands underlying the prototype kernel checks included:
Failed/corrected during that experiment: an initial compile lacked the copied codebook and was corrected before GPU execution. The raw smoke scorer initially treated the engine's
<|im_end|>token as answer text, producing invalid 3/20 scores. Stored token IDs were rescored with the server's stop-token rule; prompts/expectations/answers were unchanged, and raw results were retained. The remaining exact-copy failure omitted a final period in every arm.Not run: clean preview-head build/runtime; complete default-path byte-identity comparison; HTTP/vision integration; independent quality corpora; contexts over 4K; sustained/concurrent load; other GPUs, Windows or AOT targets. CUDA/HIP/Metal files are untouched and were not built. A B50 long-load wedge history is an additional reason not to infer sustained stability from this short pass.
Related work and next step
I checked open/closed issues and PRs for IQ2_XXS, IQ2/int8/DPAS and
esimd_moecoverage. Related but different:If this scope is acceptable, the next step is exact-head build/kernel revalidation and a focused PR with reproducible sanitized evidence, not a default change. Is this the preferred direction, or would you prefer the IQ2_XXS FP16 path work first?
Prepared with AI assistance in OpenCode. The prototype tests and measurements above were executed on the submitter's two B50s; neither maintainer approval nor validation of the clean preview head is implied.