Archived
MXFP4 gated fold: review fixes and docs
The parts of the series' review rounds that concern the fold, carried over when the series was split: - gemm_mxfp4a8_gated_gemv: operand dtypes checked, the activation scale grid read as the gemm_nt_q rows read it (mx_ascale_grid), row pitches checked against the widths; the arrival counters are zeroed before any launch reads them (the memset is on the null stream, which the engine's streams need not wait for). - The layout hooks refuse an operand the gated row does not have; the GeGLU chain refuses out_bf16 (its bf16 plane is a temporary there). - r4d_selftest: the reference plane through the gemv row's own hook must be the same bytes; the small gated cases at K 256. - libr4d/README.md and docs/TOOLS.md: the row, and --perfmxd's fold timing. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
cbc299417e
commit
2721f7c951
8 files changed
+63
-25
No files matched your search
+2
-1
@@ -4827,7 +4827,8 @@ static const RadConstraint cGemmNtQGatedFp8[] = {
|
||||
C_EQ("group", R4D_FP8_BLOCK), C_IN("dtype", "fp8a8"), C_IN("act", "silu"),
|
||||
};
|
||||
/* r4d_gemm_mxfp4a8_gated_gemv: the gemv row's WMMA form (K a multiple of 128, M <= 8) with a block
|
||||
* per 128-column group of the gated output (N/2 a multiple of 128). */
|
||||
* per 16-column tile pair of the gated output; N/2 a multiple of 128, so each 128-column group's eight
|
||||
* blocks meet at its last arriver, which quantises the group. */
|
||||
static const RadConstraint cGemmNtQGatedMx[] = {
|
||||
C_LE("M", 8), C_DIV("K", 128), C_DIV("N", 256), C_EQ("group", 32), C_IN("dtype", "mxfp4a8"),
|
||||
C_IN("act", "silu gelu_tanh"),
|
||||
|
||||
Reference in new issue
Block a user