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++
fused_gr: the gfx906 fast norm/up launches only in the gfx906 build (CUDA and RDNA did not compile)
JeanP00l0afba54b4c13
diff --git a/src/kernels/cuda/fused_gr.cu b/src/kernels/cuda/fused_gr.cuindex 0531aa0a7..41c048cdc 100644--- a/src/kernels/cuda/fused_gr.cu+++ b/src/kernels/cuda/fused_gr.cu@@ -776,12 +776,13 @@ void launch_multi(const GrMulti& m, int variant, cudaStream_t st, unsigned long// gfx906: the latency-hidden norm/up (STRATA_GR_FAST=0: off) - the same sums in the same order as the kernels// they replace (gr_parity checks the multi-token read against single-token calls bitwise)const bool fast = gr_fast();-#else- const bool fast = false;-#endifif (variant >= kHcSplit) gr_norm_split_kernel<<<dim3((unsigned) n_tok, HC), THREADS, 0, st>>>(m);else if (fast) gr_norm_fast_kernel<<<n_tok, THREADS, 0, st>>>(m);else gr_norm_multi_kernel<<<n_tok, THREADS, 0, st>>>(m);+#else+ if (variant >= kHcSplit) gr_norm_split_kernel<<<dim3((unsigned) n_tok, HC), THREADS, 0, st>>>(m);+ else gr_norm_multi_kernel<<<n_tok, THREADS, 0, st>>>(m);+#endifif (stamp_buf) gpu_stamp(stamp_buf, stamp_i0, (void*) st);const bool staged = variant >= kHcStaged;int tv = 2560;@@ -815,8 +816,11 @@ void launch_multi(const GrMulti& m, int variant, cudaStream_t st, unsigned long}}if (stamp_buf) gpu_stamp(stamp_buf, stamp_i0 + 1, (void*) st);+#if defined(STRATA_HIP_GFX906)if (fast) gr_up_fast_kernel<<<UPM_BLOCKS, THREADS, 0, st>>>(m);- else gr_up_multi_kernel<<<UPM_BLOCKS, THREADS, 0, st>>>(m);+ else+#endif+ gr_up_multi_kernel<<<UPM_BLOCKS, THREADS, 0, st>>>(m);}/// STRATA_HC_SPLIT: unset or 2 = the newest the check accepts (staged), 1 = at most split, 0 = the plain read