mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
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#3849
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/2081
Author: @imanu86
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:pr/prefill-dequant-sm75📝 Commits (1)
58bb72bdequant: 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=0keeps the old kernel; other cards are untouched. 0.1.43's #1720 coalesced the Q8_0 paththe 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(theSTRATA_TC_SM75switch, 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.