Archived
kbench: a kernel that lays out a weight table's experts is handed them laid out
A weight table reached every kernel as the tensor its planes decode to. libr4d's 4-bit grouped GEMMs read each expert through their layout hooks (the w4 codes as R4D_DT_MOEW4, the E4M3 scales of w4nl64a8h), so moe_gemm_w4a8 refused every case with "dtype this kernel does not serve", which counts as a failure. Each expert is now laid out from its planes (the container's or kf_draw_table's) and the entries are stacked one laid expert apart, while the oracle still reads the decoded table. The container pass and the replay both do it, and a table counts as laid out where the replay decides whether to compare exactly. kfixture: kf_table_entry, kf_draw_entry_planes (kf_draw_table's per-expert draw, the same bytes) and kf_lay_table. fixture_test: a table's experts are each laid out by the kernel.
This commit is contained in:
1 parent
e0c3f971dc
commit
394b8cd290
5 files changed
+206
-15
No files matched your search
+2
-2
@@ -443,8 +443,8 @@ comparison with the recording runs either way. `--no-cache` runs it regardless.
|
||||
|
||||
Against a container (`-m`), weight operands are read from it: each weight's canonical planes,
|
||||
which the kernel under test gets through its own `layout`/`relayout` hooks and the oracle gets
|
||||
decoded, and every expert of a weight table. This is the only test of the artifact and of the
|
||||
layout hooks.
|
||||
decoded, and every expert of a weight table, laid out expert by expert and stacked. This is the
|
||||
only test of the artifact and of the layout hooks.
|
||||
|
||||
```sh
|
||||
rad-kbench -m flashnext-w4.rad --home $RADIANCE_HOME --bench --report kbench.md
|
||||
|
||||
Reference in new issue
Block a user