oracle: a four-bit expert's E4M3 scale view decodes, on the grid its dtype names

The scale view of a w4nl64a8h, w4nl32a8h or w5nl64a8h expert is the E4M3 scale
plus its fixed second level, which enc_selection_logical could not read, and
libref described the weight scale on block fp8's grid for every dtype. So
RADIANCE_OP_ORACLE left every moe_gemm_q and moe_gemm_q_mod4 issue at those
formats NOT CHECKED. Both fixed; libref's arithmetic and serving unchanged.
This commit is contained in:
keptn42 authored and StillDeadcode committed 2026-10-05 12:52:44 +02:00
1 parent fe899bf60c
commit 4252353bc2
8 files changed
+391 -15

No files matched your search

+5 -4
View File
@@ -62,10 +62,11 @@ std::string enc_name(const RadEncoding& e);
* `data[k]`, dense [rows[k], cols[k]] in its own elements -- as `n` elements of dtype `dt` at
* `out`: the tensor a reference implementation reads where a kernel reads the stored form. One
* plane is converted element by element (a bf16 scale plane into an f32 reference, codes as their
* values); codes with the scalar codebook they index, each code as its table entry; the whole
* encoding is decoded. RAD_OK, or RAD_E_SHAPE with `why` when the planes do not
* make that tensor -- part of an encoding, which decodes to nothing on its own, or extents that
* disagree with `n`; or the decoder's own refusal. */
* values); codes with the scalar codebook they index, each code as its table entry; a scale with
* the levels of its chain above it, each scale as their product; the whole encoding is decoded.
* RAD_OK, or RAD_E_SHAPE with `why` when the planes do not make that tensor -- part of an
* encoding, which decodes to nothing on its own, or extents that disagree with `n`; or the
* decoder's own refusal. */
int enc_selection_logical(const RadEncoding& e, const int* sel, int n_sel, const int64_t* rows,
const int64_t* cols, const void* const* data, uint32_t dt, int64_t n,
void* out, std::string* why);