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

+4 -1
View File
@@ -381,7 +381,10 @@ typo'd directory is a message, not a silent quality regression.
relayout; the same for `w4nl64a8h`, `w4nl32a8h` and `w5nl64a8h`, with a second level other than
2^-13 refused, a 32-entry table other than `w5nl` refused, and each refusing the others'
encodings. `r4d_selftest --case moe_gemm_w4a8` also checks `w5nl64a8h`'s arranged row bit for
bit against the statement in r4d_layout.cpp, and its inverse.
bit against the statement in r4d_layout.cpp, and its inverse. `moe_gemm_q_mod4`'s four classes
are held to `moe_gemm_q`'s stored bytes in every format, and for both ops what the op oracle
reads through the inverse -- codes as their levels, an E4M3 scale times its second level -- is
held to the quantiser's planes.
- `r4d_selftest --case gram_accum` -- the accumulator against an f64 host Gram, **launched twice
over a seeded buffer**, because a kernel that stored instead of adding would agree with any
single-call oracle.