From 8998349eec9ec8334c0f599ca5972ea81aa55f24 Mon Sep 17 00:00:00 2001 From: mici81 Date: Sat, 24 Oct 2026 12:43:19 +0000 Subject: [PATCH] qwen35_fp8, gemma3: the weight reads beside the all-reduces are switched off by RADIANCE_PREFETCH_BESIDE=0 1.12.0 dropped RADIANCE_PREFETCH; the reads are now issued, or not, by prefetch_beside's own switch. Co-Authored-By: Claude Opus 5.5 (1M context) --- arch/gemma3/gemma3.cpp | 2 +- arch/qwen35_fp8/qwen35_fp8.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/gemma3/gemma3.cpp b/arch/gemma3/gemma3.cpp index cec5d9b7..35164a5b 100644 --- a/arch/gemma3/gemma3.cpp +++ b/arch/gemma3/gemma3.cpp @@ -1373,7 +1373,7 @@ static int declare(RadBuilder* b, const RadModelMeta* meta, const RadBuildCtx* c m.fuse_mx_ar = ar; } /* ---- the weight reads beside the decode all-reduces (prefetch_beside, rad_arch.h). Only at - * more than one rank; RADIANCE_PREFETCH=0 declares none (decl_prefetch). */ + * more than one rank; RADIANCE_PREFETCH_BESIDE=0 issues none (prefetch_beside). */ if (g.world > 1 && rad_op_declared(b, "prefetch")) { for (int64_t l = 0; l < g.n_layer; ++l) { Layer& lay = m.layers[(size_t)l]; diff --git a/arch/qwen35_fp8/qwen35_fp8.cpp b/arch/qwen35_fp8/qwen35_fp8.cpp index f341a5a4..4700ad48 100644 --- a/arch/qwen35_fp8/qwen35_fp8.cpp +++ b/arch/qwen35_fp8/qwen35_fp8.cpp @@ -1052,7 +1052,7 @@ static int declare(RadBuilder* b, const RadModelMeta* meta, const RadBuildCtx* c * so the GEMM behind it has its weight's leading bytes read into the on-die cache there: gate_up * behind the mixer's reduction, the next layer's first projection (the delta net's in-projection, * an attention layer's q|gate) behind the feed-forward's. Only at more than one rank; - * RADIANCE_PREFETCH=0 declares none (decl_prefetch). */ + * RADIANCE_PREFETCH_BESIDE=0 issues none (prefetch_beside). */ if (g.world > 1 && rad_op_declared(b, "prefetch")) { for (int64_t l = 0; l < m.n_main; ++l) { Layer& lay = m.layers[(size_t)l];