Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
qsa_prompt_attn: the tensor-core kernels need sm_75 - a V100 (sm_70) keeps the old kernel (#371)
Niko12216aa51c24d892
diff --git a/src/kernels/cuda/qsa_prompt_attn.cu b/src/kernels/cuda/qsa_prompt_attn.cuindex 93a66f03b..4af82be2f 100644--- a/src/kernels/cuda/qsa_prompt_attn.cu+++ b/src/kernels/cuda/qsa_prompt_attn.cu@@ -979,21 +979,24 @@ bool qsa_prompt_attn_batch(const float* q, const QsaAttnPools& pools, const int3{ // sm_75 or newer: the MMA above compiles for both. sm_80+ runs the cp.async kernel (launch_i8); Turing has// no cp.async, so it runs the v1 kernel (launch<1>, same accuracy, another summation order). An older card// keeps the old kernel.- static int cc_major[64] = {};+ // #371: the compute capability with its minor - sm_70 (V100) has no m16n8k8 (the kernels trap below sm_75)+ static int cc[64] = {};int dev = 0;if (cudaGetDevice(&dev) != cudaSuccess || dev < 0 || dev >= 64) { cudaGetLastError(); return false; }- if (cc_major[dev] == 0) {- int major = 0;- if (cudaDeviceGetAttribute(&major, cudaDevAttrComputeCapabilityMajor, dev) != cudaSuccess) {+ if (cc[dev] == 0) {+ int major = 0, minor = 0;+ if (cudaDeviceGetAttribute(&major, cudaDevAttrComputeCapabilityMajor, dev) != cudaSuccess ||+ cudaDeviceGetAttribute(&minor, cudaDevAttrComputeCapabilityMinor, dev) != cudaSuccess) {cudaGetLastError();return false;}// STRATA_QSA_WARP=1|attn (an A/B arm): the pre-sm_80 kernels on any card, as RTX 20 runs themconst char* w = std::getenv("STRATA_QSA_WARP");- cc_major[dev] = w && (!std::strcmp(w, "1") || !std::strcmp(w, "attn")) ? 7 : strata::cc_major_of(major);+ cc[dev] = w && (!std::strcmp(w, "1") || !std::strcmp(w, "attn")) ? 75+ : 10 * strata::cc_major_of(major) + strata::cc_minor_of(minor);}- if (cc_major[dev] < 7) return false;- turing = cc_major[dev] < 8;+ if (cc[dev] < 75) return false;+ turing = cc[dev] < 80;}#if defined(__HIPCC__)// the tensor-core kernels are compiled out on AMD (its major version is not a CUDA sm); RDNA4 has its own int8-KV