[PR #898] [CLOSED] perf: Q8 resident adaptation (+24.5–28.2% rotation gain on RTX PRO 6000) #2903

Closed
opened 2026-11-04 02:04:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/898
Author: @CC-David-CC
Created: 10/5/2026
Status: ❌ Closed

Base: main ← Head: draft/q8-resident-adaptation


📝 Commits (10+)

  • 64987c8 UPDATE.bat / update.sh: update Strata without starting the model (#475)
  • 6d0e648 Opt-in: keep what the expert cache learned across restarts (--expert-profile-save, #477)
  • 5ccf3a7 Engine 0.1.36: a cancelled prompt logged as read so far (#471), the draft-head hint (#474), UPDATE.bat (#475), --expert-profile-save (#477); setup requires it
  • b750bbc #136: fused int8 tensor-core experts for the Q2_0 pack's prompt path, grouped on the GPU (opt-in STRATA_PF_FUSED=1)
  • 6a0d56c #136: the fused experts take a 512-slot streamed ring (a whole layer's experts) by default
  • 6172e4a #136 P3: with the fused experts the prompt path's MoE buffers hold only what the fused kernels need
  • c2bf349 #136: the fused experts take a 1024-slot streamed ring by default (two layers' experts)
  • bbe3d2a Decode on thread-block clusters (sm_90+): the QSA top-k and the greedy argmax, the same ids and tokens
  • 3e5880d #136: the fused int8 prompt experts for the native IQ packs (gate/up IQ2_XXS IQ2_XS IQ2_S IQ3_XXS IQ3_S IQ4_XS, down Q2_0 IQ4_NL; opt-in STRATA_PF_FUSED=1)
  • e5c2836 Merge upstream main (0.1.35) into b70

📄 Description

Draft integration: Q8 on RTX PRO 6000 Blackwell 96 GB, 32K input + 1K output, MTP T4, FP16 KV.

Rotation OFF → ON with async + duplex + per-layer admission fixed: 113.224 → 140.979 tok/s (+24.513%), reverse pair 111.568 → 142.975 (+28.151%). Both pairs have identical output IDs and recorded work. Full-request improvement is 2.88–3.19%; PCIe bytes unchanged, 18.0 GB host-copy payload removed.

Fresh upstream comparison: main + Q8 reader 106.1–106.8 tok/s → full stack 141.7–141.8 tok/s. The reader is required to load this Q8 PLE; the full configurations have different output/work trajectories. See the report for both paired results and full request times.

Depends on #864, #865 and Hardin22's #876 (author preserved) plus duplex/integration work. All flags opt-in; presets unchanged. Seven logical implementation commits. Three CUDA memcheck fixtures: zero errors; default-off parity and Q2 lifecycle checks passed. Broader Q8 state/cancellation/long-input coverage remains, so please keep this as a draft.

Full results, upstream TPS, limitations and history
Immutable evidence and token/work verifier


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/898 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/5/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `draft/q8-resident-adaptation` --- ### 📝 Commits (10+) - [`64987c8`](https://github.com/Niko1221/Strata/commit/64987c891dc7cf3edb954f5b5f6b8cde233594db) UPDATE.bat / update.sh: update Strata without starting the model (#475) - [`6d0e648`](https://github.com/Niko1221/Strata/commit/6d0e648f65795a510d41be9ecbaaf24f54854001) Opt-in: keep what the expert cache learned across restarts (--expert-profile-save, #477) - [`5ccf3a7`](https://github.com/Niko1221/Strata/commit/5ccf3a72cd30159ecaa60d7324a4b79ea9b7b1b5) Engine 0.1.36: a cancelled prompt logged as read so far (#471), the draft-head hint (#474), UPDATE.bat (#475), --expert-profile-save (#477); setup requires it - [`b750bbc`](https://github.com/Niko1221/Strata/commit/b750bbcc142b5a7e398bb53ac89e03d0d0f69016) #136: fused int8 tensor-core experts for the Q2_0 pack's prompt path, grouped on the GPU (opt-in STRATA_PF_FUSED=1) - [`6a0d56c`](https://github.com/Niko1221/Strata/commit/6a0d56c3ead5d7244ad7a4ae0675174423fd5763) #136: the fused experts take a 512-slot streamed ring (a whole layer's experts) by default - [`6172e4a`](https://github.com/Niko1221/Strata/commit/6172e4a1fccfcd3304a5100e4a0ee8ac966ca234) #136 P3: with the fused experts the prompt path's MoE buffers hold only what the fused kernels need - [`c2bf349`](https://github.com/Niko1221/Strata/commit/c2bf349906222ef031ec89381f62a700beb87da7) #136: the fused experts take a 1024-slot streamed ring by default (two layers' experts) - [`bbe3d2a`](https://github.com/Niko1221/Strata/commit/bbe3d2acb58f750731e7e583fedbfbd4a3e31ccf) Decode on thread-block clusters (sm_90+): the QSA top-k and the greedy argmax, the same ids and tokens - [`3e5880d`](https://github.com/Niko1221/Strata/commit/3e5880da02a63392081b27b51811cd3486598fa8) #136: the fused int8 prompt experts for the native IQ packs (gate/up IQ2_XXS IQ2_XS IQ2_S IQ3_XXS IQ3_S IQ4_XS, down Q2_0 IQ4_NL; opt-in STRATA_PF_FUSED=1) - [`e5c2836`](https://github.com/Niko1221/Strata/commit/e5c283685df82d4945f382adccb0cfb0c283581c) Merge upstream main (0.1.35) into b70 ### 📄 Description Draft integration: **Q8 on RTX PRO 6000 Blackwell 96 GB**, 32K input + 1K output, MTP T4, FP16 KV. Rotation OFF → ON with async + duplex + per-layer admission fixed: **113.224 → 140.979 tok/s (+24.513%)**, reverse pair **111.568 → 142.975 (+28.151%)**. Both pairs have identical output IDs and recorded work. Full-request improvement is 2.88–3.19%; PCIe bytes unchanged, 18.0 GB host-copy payload removed. Fresh upstream comparison: **main + Q8 reader 106.1–106.8 tok/s → full stack 141.7–141.8 tok/s**. The reader is required to load this Q8 PLE; the full configurations have different output/work trajectories. See the report for both paired results and full request times. Depends on #864, #865 and **Hardin22's #876 (author preserved)** plus duplex/integration work. All flags opt-in; presets unchanged. Seven logical implementation commits. Three CUDA memcheck fixtures: zero errors; default-off parity and Q2 lifecycle checks passed. Broader Q8 state/cancellation/long-input coverage remains, so please keep this as a draft. [Full results, upstream TPS, limitations and history](https://github.com/CC-David-CC/Strata-a5500/blob/draft/q8-resident-adaptation/docs/Q8_RESIDENT_ADAPTATION.md) [Immutable evidence and token/work verifier](https://github.com/CC-David-CC/Strata-a5500/tree/8c473b947c5076edd39539bc5d69c082b237842b/bench/results/2026-10-05-q8-resident-adaptation) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:04:01 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2903
No description provided.