From 91fc4192aab6e5c35861c07eb4640072e9bdba17 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 24 Oct 2026 13:49:43 +0200 Subject: [PATCH] minimaxh3: pass mapped to DenseFP8::declare for the modulation's row slices DenseFP8 takes `mapped` as declare()'s argument since bdb37d5; the member the plugin set was no longer read, so each modulation slice's COPY map was declared twice and the plugin refused to declare, in rad-convert and in the engine alike. The plugin now passes it, and the member goes, so a caller that still sets it fails to compile instead of failing at declare. Co-Authored-By: Claude Opus 5.5 --- arch/common/rad_fp8.h | 2 -- arch/minimaxh3/minimaxh3.cpp | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/common/rad_fp8.h b/arch/common/rad_fp8.h index 9af9c854..eecad079 100644 --- a/arch/common/rad_fp8.h +++ b/arch/common/rad_fp8.h @@ -1563,8 +1563,6 @@ struct DenseFP8 { * works against the same E4M3 activation pair. */ rad_weight ref = 0; bool mx = false; - /* The caller made the name map (a row range of a checkpoint tensor); declare() does not. */ - bool mapped = false; /* `mapped`: the caller made the name map already, to ask the encoding before choosing this * struct over another grid's -- a COPY map declared twice is refused (rad_builder.cpp). */ diff --git a/arch/minimaxh3/minimaxh3.cpp b/arch/minimaxh3/minimaxh3.cpp index 8d1a47b3..3f297b64 100644 --- a/arch/minimaxh3/minimaxh3.cpp +++ b/arch/minimaxh3/minimaxh3.cpp @@ -910,9 +910,9 @@ static int declare_tables(RadBuilder* b, const RadModelMeta* meta, Model& m) { const char* bn = nm.f("%s.bias", base); RAD_ARCH_TRY(map_rows(b, wn, { { src_w, (int)(md * ada_rows), ada_rows } })); RAD_ARCH_TRY(map_rows(b, bn, { { src_b, (int)(md * ada_rows), ada_rows } })); - B.ada[md].mapped = true; + /* The row slice is mapped above (DenseFP8 takes that as its argument). */ RAD_ARCH_TRY(B.ada[md].declare(b, nm, base, m.Ws, td, acc, RAD_SHARD_ROW, - grp_layer(grp), { src_w })); + grp_layer(grp), { src_w }, {}, true)); B.ada_b[md] = decl_w(b, bn, RAD_BF16, { m.Ws }, acc, RAD_SHARD_ROW, grp_layer(grp)); if (!B.ada_b[md]) return RAD_E_INVAL; B.op_ada[md] = rw(b, RAD_OP(b, "gemm_nt_q_bias",