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 <noreply@anthropic.com>
This commit is contained in:
AlexandClaude Opus 5.5 authored and StillDeadcode committed 2026-10-25 12:05:40 +01:00
1 parent aa5dfaec19
commit 91fc4192aa
2 files changed
+2 -4

No files matched your search

-2
View File
@@ -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). */
+2 -2
View File
@@ -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",