mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1818] [CLOSED] fix: make CPU IQ dispatch independent of draft occupancy #3697
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#3697
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/1818
Author: @CC-David-CC
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:fix/draft-independent-iq-dispatch📝 Commits (6)
92d3391fix(cpu): keep IQ expert arithmetic independent of draft groupingd4cc56cMerge remote-tracking branch 'upstream/main' into HEADd080011docs: quantify refreshed IQ consistency costs and parity limits3176ad3docs: retain all refreshed IQ cost measurement logs18d3a37Separate approximate tail routing from IQ dispatch paritya2160b7Merge Strata v0.1.43 into fix/draft-independent-iq-dispatch📊 Changes
75 files changed (+18229 additions, -53 deletions)
View changed files
📝
CMakeLists.txt(+2 -0)➕
bench/results/2026-10-10-draft-independent-iq/README.md(+97 -0)➕
bench/results/2026-10-10-draft-independent-iq/baseline-xeon.log(+33 -0)➕
bench/results/2026-10-10-draft-independent-iq/cross-arm.json(+9 -0)➕
bench/results/2026-10-10-draft-independent-iq/measure.py(+15 -0)➕
bench/results/2026-10-10-draft-independent-iq/model-engine-0.log(+92 -0)➕
bench/results/2026-10-10-draft-independent-iq/model-engine-1.log(+92 -0)➕
bench/results/2026-10-10-draft-independent-iq/model-manifest.json(+252 -0)➕
bench/results/2026-10-10-draft-independent-iq/model-result.json(+1880 -0)➕
bench/results/2026-10-10-draft-independent-iq/solo-manifest.json(+126 -0)➕
bench/results/2026-10-10-draft-independent-iq/solo-result.json(+329 -0)➕
bench/results/2026-10-10-draft-independent-iq/timings.json(+619 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/bench-0-default.log(+87 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/bench-0-legacy.log(+87 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/bench-1-default.log(+87 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/bench-1-legacy.log(+87 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/bench-2-default.log(+87 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/bench-2-legacy.log(+87 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/ctest.log(+14 -0)➕
bench/results/2026-10-10-draft-independent-iq/xeon-avx2/gpu-parity.log(+55 -0)...and 55 more files
📄 Description
Uses the same supported CPU IQ kernel for a token alone and for a group of draft tokens. The previous default switched arithmetic at two tokens, allowing group occupancy to change rounding even when the accepted prefix and rollback were correct. The default now matches
STRATA_IQ_MT_MIN=1, including IQ4_NL down rows.STRATA_IQ_MT_MIN=2retains the legacy behavior for comparison;STRATA_IQ3S_MT1is redundant.Refreshed onto current main (
61b3fb5d). Direct native CPU checks compare each token's gate/up and down rows bit for bit across widths 1 through 8. Default, forced AVX2 and ggml controls pass; the explicit legacy threshold fails the negative control as expected. CUDA/HIP/SYCL builds and CPU checks passed. CUDA/HIP GPU synthetic format comparisons use numerical tolerances and do not prove end-to-end speculative token identity.This is a correctness tradeoff, not an unconditional speed improvement. Fresh Ryzen 7600X3D one-token CPU expert microbenchmarks measured +68.61% time for IQ2_XS, +17.65% IQ2_XXS, +13.22% IQ3_XXS and +10.03% IQ3_S; IQ2_S and IQ4_XS were approximately unchanged. Three processes per setting alternate default/legacy order; these are per-expert costs, not whole-model decode regressions.
The fresh 14-request mixed CPU/GPU no-draft/single-token/drafted comparison passes exactly when approximate tail skipping is disabled (
STRATA_ROUTE_TAIL_SKIP=0). Earlier default-policy divergences are retained and explained: rank-7 skipping uses minimum expert rank across the token window, so adding draft rows can change target contributions. This PR preserves ordinary tail-skip defaults. The controlled main pipeline matrix also passes; suffix-on-pipeline coverage remains incomplete. These finite controls do not claim arbitrary model, CPU/GPU or pipeline parity.Fresh results, full token records, diagnostic controls and all cost logs. Historical validation on its original source. No deployed server configuration was changed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.