[PR #1339] [CLOSED] Experimental SM120 eight-column Q8 QKV projection #3397

Closed
opened 2026-11-07 14:41:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: perf/q8-t8-main


📝 Commits (5)

  • 4237c24 cuda: add opt-in SM120 Q8 eight-column QKV MMQ projection
  • 81f16f4 docs: record focused qualification and measured results
  • b57144b Merge commit '61b3fb5dd3' into HEAD
  • 2764a5c Refresh dense T8 experiment with current-main model and backend evidence
  • 039f257 Include sanitized dense T8 engine and component logs

📊 Changes

51 files changed (+41532 additions, -2 deletions)

View changed files

📝 CMakeLists.txt (+14 -1)
➕ docs/experiments/dense-t8-main/README.md (+32 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/1339-default-main/engine.log (+72 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/1339-default-main/memory-samples.json (+3781 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/1339-default-main/result.json (+846 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/1339-default-new/engine.log (+72 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/1339-default-new/memory-samples.json (+3717 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/1339-default-new/result.json (+846 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/README.md (+59 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/cuda-status.json (+43 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-audit.json (+154 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-candidate/engine.log (+75 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-candidate/memory-samples.json (+3695 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-candidate/result.json (+851 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-control/engine.log (+72 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-control/memory-samples.json (+3681 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-control/result.json (+846 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-t8-fallback-t1-on0/engine.log (+62 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-t8-fallback-t1-on0/memory-samples.json (+3893 -0)
➕ docs/experiments/dense-t8-main/current-main-refresh/current-t8-fallback-t1-on0/result.json (+846 -0)

...and 31 more files

📄 Description

Adds a default-off Q8 QKV MMQ path for CUDA SM120, exactly eight activation columns, 2,560 inputs and 10,240 outputs. Q8 activation codes and promoted half scales are preserved; arithmetic reduction order changes. Other shapes retain current main's matrix dispatcher. Refreshed to upstream main 61b3fb5d, preserving its current QKV fork and fallback behavior.

Fresh CUDA/HIP/SYCL builds passed. The CUDA scalar/capture/mutation/lifetime fixture passed and Compute Sanitizer memcheck reported zero errors. A single warmed isolated stage measured 20.543751 → 14.330000 µs, including quantization/repacking; this is not a whole-request gain.

Eight full model cases completed with exact-routing controls. Default-off matches main's 512 output IDs. T8 on/off first differ at index 16; observed decode rates were 70.98 off versus 68.28 on, with changed output/work. The earlier apparent request-speed gain did not reproduce. Keep the feature experimental/default off, with no quality-equivalence claim.

The long-prompt T1/T4 benchmarks match all 512 IDs and add no eight-column launches. Their preceding 44-token function prompts still use five eight-column verifier reads under --spec 8, independently of the MTP cap; those 128-token function outputs first differ at index 26. Thus an MTP cap is not a global feature-off control. All eight narrow arithmetic checks passed; the long generated module was not scored.

Fresh evidence, limits and reproduction includes full token arrays, counters, timing observations, sampled memory, sanitized engine/component logs and exact source/binary provenance.


🔄 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/1339 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `perf/q8-t8-main` --- ### 📝 Commits (5) - [`4237c24`](https://github.com/Niko1221/Strata/commit/4237c24aa8bd7ccbbb5acc0092d3c7e755eb02cb) cuda: add opt-in SM120 Q8 eight-column QKV MMQ projection - [`81f16f4`](https://github.com/Niko1221/Strata/commit/81f16f4c01e21e4563502831d7231d1e0ba6f542) docs: record focused qualification and measured results - [`b57144b`](https://github.com/Niko1221/Strata/commit/b57144b620daddf912255d5b692d6c3c6a3c3f48) Merge commit '61b3fb5dd3f1e8ec09cf7e4e05208bc6d3c46406' into HEAD - [`2764a5c`](https://github.com/Niko1221/Strata/commit/2764a5cd88e4eb2fb75a1620107148bf698b2d4c) Refresh dense T8 experiment with current-main model and backend evidence - [`039f257`](https://github.com/Niko1221/Strata/commit/039f2574fcfe7e851b29d4e21de46b75465e4063) Include sanitized dense T8 engine and component logs ### 📊 Changes **51 files changed** (+41532 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+14 -1) ➕ `docs/experiments/dense-t8-main/README.md` (+32 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/1339-default-main/engine.log` (+72 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/1339-default-main/memory-samples.json` (+3781 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/1339-default-main/result.json` (+846 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/1339-default-new/engine.log` (+72 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/1339-default-new/memory-samples.json` (+3717 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/1339-default-new/result.json` (+846 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/README.md` (+59 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/cuda-status.json` (+43 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-audit.json` (+154 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-candidate/engine.log` (+75 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-candidate/memory-samples.json` (+3695 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-candidate/result.json` (+851 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-control/engine.log` (+72 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-control/memory-samples.json` (+3681 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-q8-t8-final-control/result.json` (+846 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-t8-fallback-t1-on0/engine.log` (+62 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-t8-fallback-t1-on0/memory-samples.json` (+3893 -0) ➕ `docs/experiments/dense-t8-main/current-main-refresh/current-t8-fallback-t1-on0/result.json` (+846 -0) _...and 31 more files_ </details> ### 📄 Description Adds a default-off Q8 QKV MMQ path for CUDA SM120, exactly eight activation columns, 2,560 inputs and 10,240 outputs. Q8 activation codes and promoted half scales are preserved; arithmetic reduction order changes. Other shapes retain current main's matrix dispatcher. Refreshed to upstream main `61b3fb5d`, preserving its current QKV fork and fallback behavior. Fresh CUDA/HIP/SYCL builds passed. The CUDA scalar/capture/mutation/lifetime fixture passed and Compute Sanitizer memcheck reported zero errors. A single warmed isolated stage measured 20.543751 → 14.330000 µs, including quantization/repacking; this is not a whole-request gain. Eight full model cases completed with exact-routing controls. Default-off matches main's 512 output IDs. T8 on/off first differ at index 16; observed decode rates were 70.98 off versus 68.28 on, with changed output/work. The earlier apparent request-speed gain did not reproduce. Keep the feature experimental/default off, with no quality-equivalence claim. The long-prompt T1/T4 benchmarks match all 512 IDs and add no eight-column launches. Their preceding 44-token function prompts still use five eight-column verifier reads under `--spec 8`, independently of the MTP cap; those 128-token function outputs first differ at index 26. Thus an MTP cap is not a global feature-off control. All eight narrow arithmetic checks passed; the long generated module was not scored. [Fresh evidence, limits and reproduction](https://github.com/CC-David-CC/Strata-a5500/tree/039f2574fcfe7e851b29d4e21de46b75465e4063/docs/experiments/dense-t8-main/current-main-refresh) includes full token arrays, counters, timing observations, sampled memory, sanitized engine/component logs and exact source/binary provenance. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:41:12 +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#3397
No description provided.