mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #360] [CLOSED] qsa_prompt_attn: Volta (sm_70) crashes in the prompt path - compare the full compute capability #2597
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#2597
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/360
Author: @DingoOz
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:fix-volta-prompt-attn📝 Commits (1)
218f015qsa_prompt_attn: compare the full compute capability, so Volta (7.0) keeps the old kernel📊 Changes
1 file changed (+8 additions, -7 deletions)
View changed files
📝
src/kernels/cuda/qsa_prompt_attn.cu(+8 -7)📄 Description
The bug
With 0.1.31 built for a V100 (
-DCMAKE_CUDA_ARCHITECTURES=70 -DSTRATA_EXPERIMENTAL_SM60=ON), the engine loads andanswers a 22-token prompt, then dies on the first ~900-token prompt:
qsa_prompt_attn_batchreads only the compute capability's major version:< 7refuses the device,< 8meansTuring. A V100 is 7.0, so it passes as Turing and launches the m16n8k8 kernel. In a sm_70 build
mma16816compiles thatkernel to
__trap()(__CUDA_ARCH__ < 750), and the trap surfaces at the next sync as the launch failure above. Thecomment above the check already says an older card should keep the old kernel; only the check missed Volta.
The fix
Compare major*10+minor: below 75 returns false (the old kernel), below 80 is Turing. The variable is renamed from
cc_majortoccbecause it now holds both parts. No change for sm_75 and newer, AMD, or Pascal (6.x was alreadyrefused).
Tested
Tesla V100-PCIE-16GB, CUDA 12.4, Linux, IQ3_S pack,
--kv int8 --spec 4, greedy, 256 tokens out:These match 0.1.26 on the same card (221 / 680 / 982 tok/s prompt). The UD-Q4_K_XL import also runs with the fix
(~20 tok/s output, with every expert in RAM).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.