From ab5ea838de3c15802008f92aec01b6e76e81f4d4 Mon Sep 17 00:00:00 2001 From: Warabii1248 <93115877+Warabii1248@users.noreply.github.com> Date: Tue, 13 Oct 2026 22:55:12 +0900 Subject: [PATCH] pf_wmma: say in the comment where the WMMA2 tile layout comes from --- src/kernels/cuda/iq_kernels.cu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernels/cuda/iq_kernels.cu b/src/kernels/cuda/iq_kernels.cu index 332809a8..9445fb40 100644 --- a/src/kernels/cuda/iq_kernels.cu +++ b/src/kernels/cuda/iq_kernels.cu @@ -3965,7 +3965,8 @@ __global__ void __launch_bounds__(WG_THREADS) gemm_iq_f16_grouped_kernel(int ty, } } -// ---- STRATA_PF_WMMA2=1 (opt-in): IQ2_S gate/up and IQ4_NL down, tiled after a llama.cpp fork's Volta MoE kernel. +// ---- STRATA_PF_WMMA2=1 (opt-in): IQ2_S gate/up and IQ4_NL down, tiled like a Volta MoE kernel in the +// PR author's own unpublished llama.cpp patches. // A block: W2_RB = 128 weight rows of one expert x W2_CB = 64 of its sorted rows, K stages of W2_KT = 64. Thread t dequantizes // row t % 128, 32-value sub-block t / 128 of each K stage from the raw stage in shared memory (one IQ2_S super-block or four IQ4_NL // blocks per row, read by the whole block as 4-byte words, the next one already in registers). 8 warps = 4 (32 weight rows) x 2