[PR #2081] [CLOSED] dequant: the prompt projections' BF16 dequant with 16-byte stores on sm_75 (bit-exact; STRATA_TC_SM75=0 keeps the per-group kernel) #3849

Closed
opened 2026-11-07 15:31:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2081
Author: @imanu86
Created: 10/12/2026
Status: ❌ Closed

Base: main ← Head: pr/prefill-dequant-sm75


📝 Commits (1)

  • 58bb72b dequant: the prompt projections' BF16 dequant with 16-byte stores on sm_75 (bit-exact; STRATA_TC_SM75=0 keeps the per-group kernel)

📊 Changes

2 files changed (+59 additions, -3 deletions)

View changed files

➕ include/strata/core/tc_sm75.hpp (+28 -0)
📝 src/kernels/cuda/dequant_bf16.cu (+31 -3)

📄 Description

Title

Issue: none (bit-exact speed change on sm_75).

Summary

On compute capability 7.5 the prompt path's BF16 projections are dequantized by a kernel that writes 16 bytes per
thread instead of 2 bytes every 64. A conversion with no arithmetic: the output is bit for bit the per-group
kernel's. STRATA_TC_SM75=0 keeps the old kernel; other cards are untouched. 0.1.43's #1720 coalesced the Q8_0 path
the same way; this covers the BF16 projections on Turing.

What changed

src/kernels/cuda/dequant_bf16.cu (the sm_75 kernel and its dispatch), include/strata/core/tc_sm75.hpp (the
STRATA_TC_SM75 switch, shared with the hc16 PR).

Measurements

Part of the 100 s -> 75 s of a 131K prompt on the RTX 2080 Ti stage (with SIMT by default and hc16). Values identical
(memcmp of the dequantized images in the fork's test build).

Built and started on v0.1.43 (RTX 2080 Ti + RTX 3060 layer split, Windows): the engine serves as before, same answer; the dequantized images were compared byte for byte in the fork's test build when the change was made.

Part of a series from a public patch registry (stack/ in the fork imanu86/Strata-2080Ti), see #2073.


🔄 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/2081 **Author:** [@imanu86](https://github.com/imanu86) **Created:** 10/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/prefill-dequant-sm75` --- ### 📝 Commits (1) - [`58bb72b`](https://github.com/Niko1221/Strata/commit/58bb72bdba12f988eb01abb4e95d0659ce939480) dequant: the prompt projections' BF16 dequant with 16-byte stores on sm_75 (bit-exact; STRATA_TC_SM75=0 keeps the per-group kernel) ### 📊 Changes **2 files changed** (+59 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `include/strata/core/tc_sm75.hpp` (+28 -0) 📝 `src/kernels/cuda/dequant_bf16.cu` (+31 -3) </details> ### 📄 Description ## Title Issue: none (bit-exact speed change on sm_75). ## Summary On compute capability 7.5 the prompt path's BF16 projections are dequantized by a kernel that writes 16 bytes per thread instead of 2 bytes every 64. A conversion with no arithmetic: the output is **bit for bit** the per-group kernel's. `STRATA_TC_SM75=0` keeps the old kernel; other cards are untouched. 0.1.43's #1720 coalesced the Q8_0 path the same way; this covers the BF16 projections on Turing. ## What changed `src/kernels/cuda/dequant_bf16.cu` (the sm_75 kernel and its dispatch), `include/strata/core/tc_sm75.hpp` (the `STRATA_TC_SM75` switch, shared with the hc16 PR). ## Measurements Part of the 100 s -> 75 s of a 131K prompt on the RTX 2080 Ti stage (with SIMT by default and hc16). Values identical (memcmp of the dequantized images in the fork's test build). Built and started on v0.1.43 (RTX 2080 Ti + RTX 3060 layer split, Windows): the engine serves as before, same answer; the dequantized images were compared byte for byte in the fork's test build when the change was made. Part of a series from a public patch registry (`stack/` in the fork imanu86/Strata-2080Ti), see #2073. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:31:11 +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#3849
No description provided.