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++
prefill: STRATA_PF_PAD with a weight that cannot be padded (an i-quant dense tensor) - X read at its stride
Niko122165a48f0d5702
diff --git a/src/prefill/gemm.cu b/src/prefill/gemm.cuindex 4858bdfb5..1be38082a 100644--- a/src/prefill/gemm.cu+++ b/src/prefill/gemm.cu@@ -454,6 +454,19 @@ void Gemm::native(const uint16_t* X, int ggml_type, const void* W_blocks, float*}#endifif (ldx > 0 && ldx != K) {+#ifdef STRATA_USE_HIP+ // X arrived padded but the weight cannot be (an i-quant without a strided dequant, or the scratch is too+ // small for N x (K + 64)): the weight unpadded, X read at its stride - the same products, the same bits+ const int64_t rows = scratch_elems_ / K;+ bool ok = rows > 0;+ if (ldy <= 0) ldy = N;+ for (int64_t r0 = 0; ok && r0 < N; r0 += rows) {+ const int64_t n = (N - r0 < rows) ? N - r0 : rows;+ strata::kernels::dequant_f16(ggml_type, W_blocks, r0, n, K, scratch_, stream_);+ ok = strata_pf_gemm_f16_ld(X, ldx, scratch_, K, Y + r0, T, n, K, ldy, beta, stream_);+ }+ if (ok) return;+#endifstd::fprintf(stderr, "prefill gemm: a padded X (ldx %lld, K %lld) needs STRATA_PF_PAD's path\n",(long long) ldx, (long long) K);std::exit(1);