Archived
M2XFP4 (MXFP4v2): quantiser, gfx1201 WMMA kernels, host rows, df2 wiring, .rad packer (Import::ParoM2), stability fixes (counters-in-scratch x3, aql publish fences), kbench rows, runbook (REMAINING.md)
This commit is contained in:
1 parent
9eaf10da6e
commit
ea0908596b
60 files changed
+4619
-193
No files matched your search
+11
-3
@@ -1385,6 +1385,14 @@ static int avx_moe_cb_unrelayout(const RadParam* p, int n_p, int operand, const
|
||||
avxp::avx_relayout_planes<avxp::lay>, nullptr, avxp::avx_unrelayout_planes<avxp::lay>, \
|
||||
nullptr }
|
||||
|
||||
/* gemm_nt_q: its zero-point grids join scale and zero (avx_planes.h) while its m2xfp4 arm
|
||||
* concatenates codes and meta, so the row carries the hook's own relayout pair. */
|
||||
#define ROWL_GQ(nm, opname, fam, what, dts, fn, lay) \
|
||||
{ nm, opname, fam, what, SHAPE_ANY, dts, RAD_DOMAIN_HOST, 0, \
|
||||
nullptr, 0, nullptr, 0, nullptr, nullptr, nullptr, fn, nullptr, avxp::lay, \
|
||||
avxp::avx_relayout_gemm_q<avxp::lay>, nullptr, avxp::avx_unrelayout_gemm_q<avxp::lay>, \
|
||||
nullptr }
|
||||
|
||||
#define DT_FLOAT "bf16 f16 f32 fp8_e4m3 fp8_e5m2 i8 i32, chosen per operand from its own dtype"
|
||||
#define DT_ANY "any dtype rad_types.h names, per operand"
|
||||
#define DT_FLOAT_CB DT_FLOAT "; or u4 / u5 codes into an f32 table, joined (w4nl* / w5nl*)"
|
||||
@@ -1547,9 +1555,9 @@ SIMPLE("avx_gated_quant_fp8", "gated_quant_fp8", "quant",
|
||||
SIMPLE("avx_gemm_nt", "gemm_nt", "gemm", "C = A B^T, f32 accumulate, cache-blocked", DT_FLOAT,
|
||||
L(gemm_nt)),
|
||||
SIMPLE("avx_gemm_nt_bias", "gemm_nt_bias", "gemm", "C = A B^T + bias", DT_FLOAT, L(gemm_nt_bias)),
|
||||
ROWL("avx_gemm_nt_q", "gemm_nt_q", "gemm", "C = A B^T with group-scaled quantised operands",
|
||||
"i8 / fp8 / float A; w4, w2, mxfp4, i8 or float B; u2 / u4 / u5 codes with an f16 scale "
|
||||
"and integer zero per group, joined; f32 accumulate", L(gemm_nt_q), avx_layout_gemm_q),
|
||||
ROWL_GQ("avx_gemm_nt_q", "gemm_nt_q", "gemm", "C = A B^T with group-scaled quantised operands",
|
||||
"i8 / fp8 / float A; w4, w2, mxfp4, m2xfp4, i8 or float B; u2 / u4 / u5 codes with an f16 "
|
||||
"scale and integer zero per group, joined; f32 accumulate", L(gemm_nt_q), avx_layout_gemm_q),
|
||||
SIMPLE("avx_gemm_nt_q_bias", "gemm_nt_q_bias", "gemm", "quantised C = A B^T + bias",
|
||||
"i8 / fp8 / float A; w4, w2, mxfp4, i8 or float B; f32 accumulate", L(gemm_nt_q_bias)),
|
||||
SIMPLE("avx_lora_shrink", "lora_shrink", "gemm", "t = x A[slot]^T per row, base rows untouched",
|
||||
|
||||
Reference in new issue
Block a user