[PR #360] [CLOSED] qsa_prompt_attn: Volta (sm_70) crashes in the prompt path - compare the full compute capability #2597

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

📋 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)

  • 218f015 qsa_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 and
answers a 22-token prompt, then dies on the first ~900-token prompt:

prefill copy_i32: unspecified launch failure

qsa_prompt_attn_batch reads only the compute capability's major version: < 7 refuses the device, < 8 means
Turing. A V100 is 7.0, so it passes as Turing and launches the m16n8k8 kernel. In a sm_70 build mma16816 compiles that
kernel to __trap() (__CUDA_ARCH__ < 750), and the trap surfaces at the next sync as the launch failure above. The
comment 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_major to cc because it now holds both parts. No change for sm_75 and newer, AMD, or Pascal (6.x was already
refused).

Tested

Tesla V100-PCIE-16GB, CUDA 12.4, Linux, IQ3_S pack, --kv int8 --spec 4, greedy, 256 tokens out:

Prompt Before After (prompt / output tok/s)
22 tokens OK OK
~900 tokens crash 222 / 40
~6.8K tokens crash 680 / 41.5
~26.7K tokens crash 966 / 43

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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/360 **Author:** [@DingoOz](https://github.com/DingoOz) **Created:** 10/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-volta-prompt-attn` --- ### 📝 Commits (1) - [`218f015`](https://github.com/Niko1221/Strata/commit/218f01552a1c56c906bc6902ec6ecc8dd65c0bc8) qsa_prompt_attn: compare the full compute capability, so Volta (7.0) keeps the old kernel ### 📊 Changes **1 file changed** (+8 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/kernels/cuda/qsa_prompt_attn.cu` (+8 -7) </details> ### 📄 Description ## The bug With 0.1.31 built for a V100 (`-DCMAKE_CUDA_ARCHITECTURES=70 -DSTRATA_EXPERIMENTAL_SM60=ON`), the engine loads and answers a 22-token prompt, then dies on the first ~900-token prompt: ``` prefill copy_i32: unspecified launch failure ``` `qsa_prompt_attn_batch` reads only the compute capability's major version: `< 7` refuses the device, `< 8` means Turing. A V100 is 7.0, so it passes as Turing and launches the m16n8k8 kernel. In a sm_70 build `mma16816` compiles that kernel to `__trap()` (`__CUDA_ARCH__ < 750`), and the trap surfaces at the next sync as the launch failure above. The comment 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_major` to `cc` because it now holds both parts. No change for sm_75 and newer, AMD, or Pascal (6.x was already refused). ## Tested Tesla V100-PCIE-16GB, CUDA 12.4, Linux, IQ3_S pack, `--kv int8 --spec 4`, greedy, 256 tokens out: | Prompt | Before | After (prompt / output tok/s) | | --- | --- | --- | | 22 tokens | OK | OK | | ~900 tokens | crash | 222 / 40 | | ~6.8K tokens | crash | 680 / 41.5 | | ~26.7K tokens | crash | 966 / 43 | 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01:38 +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#2597
No description provided.