Skip to content

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++

verify: say in the comments that sm_7x takes argmax_rows with STRATA_ARGMAX_ROWS_SM70=1

Warabii1248ab7c97721651
diff --git a/src/core/verify.cpp b/src/core/verify.cpp
index a8791cc67..d6ebf6083 100644
--- a/src/core/verify.cpp
+++ b/src/core/verify.cpp
@@ -1818,7 +1818,7 @@ bool Verifier::record_window(int T, cudaStream_t cs, std::string& err) {
// Greedy, the default, is recorded here as before (no extra launch or sync per window). A request that
// samples or penalizes is sampled again host-side after the replay (run()) with its own parameters and a
// fresh draw counter: a captured sampler would bake them in and replay the same draws forever.
- if (argmax_rows_wanted()) { // sm_80 to sm_89: the pick over many blocks a row (bitwise the one-block kernel's)
+ if (argmax_rows_wanted()) { // sm_80 to sm_89 (sm_7x opt-in): the pick over many blocks a row (bitwise the one-block kernel's)
argmax_rows(head_logits_, T, (int) n_vocab_, arg_scratch_, m_out_, cs);
} else {
SamplerParams sp;
diff --git a/src/kernels/cuda/verify_kernels.cu b/src/kernels/cuda/verify_kernels.cu
index bf6282da3..b3b1e6442 100644
--- a/src/kernels/cuda/verify_kernels.cu
+++ b/src/kernels/cuda/verify_kernels.cu
@@ -938,7 +938,7 @@ bool argmax_rows_wanted() {
#if defined(__HIPCC__)
return false;
#else
- // sm_80 to sm_89: sample_tokens' greedy pick there is the one-block kernel (sm_90+ has the cluster kernel)
+ // sm_80 to sm_89, and sm_7x with STRATA_ARGMAX_ROWS_SM70=1: sample_tokens' greedy pick there is the one-block kernel (sm_90+ has the cluster kernel)
static const bool want = [] {
int dev = 0, major = 0;
if (cudaGetDevice(&dev) != cudaSuccess || cudaDeviceGetAttribute(&major, cudaDevAttrComputeCapabilityMajor, dev) != cudaSuccess)