mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #371] 0.1.31: qsa_prompt_attn_batch traps on sm_70 (V100) in a layer split: unspecified launch failure on the first prompt #176
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#176
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?
Originally created by @AxalotLDev on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/371
Setup
-DSTRATA_EXPERIMENTAL_SM60=ON(arch70-real;89-real), CUDA 12.9, Linux, Dockerexpert_cache auto,kv int8,prefill auto(chunk 8192), context 262144Symptom
The engine starts normally (
session is up, expert cache filled, prompt path loans printed), then the first prefill of the first request kills it. Deterministic on every start. The engine log ends with:exit code 1 (once SIGSEGV). 0.1.30 on the same rig and the same config reads 211k-token prompts without problems, so this is a 0.1.31 regression for sm_70 cards in a split.
Diagnosis
copy_i32is not the culprit: the error is sticky and surfaces at the nextcheck(). WithCUDA_LAUNCH_BLOCKING=1the failing kernel names itself:In
src/kernels/cuda/qsa_prompt_attn.cu:mma16816()compiles to__trap()for device code below sm_75 (#if !STRATA_PA_SM80 && (defined(__HIPCC__) || !defined(__CUDA_ARCH__) || __CUDA_ARCH__ < 750)), as the comment at the top of the file says;qsa_prompt_attn_batch(the #270 follow-upsb6bdc70/d9cbe3c, new in 0.1.31) checks only the major version:sm_70 has major 7, so it passes the guard, is classified as Turing, and
launch<1>(the m16n8k8 tensor-core kernel) is launched on the V100. Every block hits__trap()-> "unspecified launch failure". Before 0.1.31 the guard wascc_major[dev] < 8, so sm_70 fell back to the old non-MMA kernel and everything worked.The guard admits major 7, but the device code traps below 7.5: the minor version is what decides, and it is not consulted.
Reproduce
Any split rig with an sm_70 card (V100 / Titan V) as a stage GPU: start the engine, send any prompt. On a single-GPU rig with only an sm_70 card the same guard should fire the same way (not tested here).
Workaround used here
Building 0.1.30 for the split pair. A local patch to the guard (compare the full compute capability against 75 instead of the major against 7) makes 0.1.31 work on this rig, but I am reporting it so the guard can be fixed upstream; I have not tested whether other kernels added in 0.1.31 have the same major-only pattern (I checked qsa_select.cu, fused_gr.cu and native_qsa_score.cu, their guards look correct).
@Niko1221 commented on GitHub (Oct 1, 2026):
Thanks, confirmed: the host check compared only the major version (7) while the kernel needs sm_75. Fixed for the next release: an sm_70 card (V100) keeps the old prompt attention kernel, as in 0.1.30. sm_75 and newer cards choose exactly as before. This issue closes with the release.
@Niko1221 commented on GitHub (Oct 1, 2026):
Fixed in 0.1.33: an sm_70 card keeps the old prompt attention kernel. Thanks!