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",