Archived
ParoQuant int5/int4: review fixes -- docs, the w5 layout pinned and inverted, zero points checked, int4 import tested
* docs/OPS.md: the dtypes w5a16, w4a16_asym, w5a8i8, w4a8i8_asym, givens_quant_act_i8g, and which rows read pb1/pb2. * r4d_gemm_w5a16_nt_m64: drop the unused two's-complement dequant copied from w4; the errors name this kernel. * r4d_layout: r4d_rad_unrelayout_w5 (the inverse, wired to both w5 rows; the int4 rows take w4's); a zero point that is not a 4-/5-bit code is refused at load (the int8 prefill kernel reads five bits of it, the f16 one all). * rad_fp8.h: one linear_is_givens predicate (table dtypes checked for both formats, the zero plane's u8 too); declare_rotation declares the tables and rot_stages only, decl_rot_op the op in front of each GEMM. * tests: relayout_parity pins the w5 stored form and its refusal; checkpoint_test imports z-lab's int4 as a fused gate|up (two rotated parts); the selftest's asymmetric planes and part bounds come from one helper each. * checkpoint: the ParoQuant refusal names both readable forms.
This commit is contained in:
1 parent
3491aca6fe
commit
a19cbcae85
10 files changed
+312
-187
No files matched your search
+4
-4
@@ -4711,7 +4711,7 @@ static const RadKernelInfo kKernels[] = {
|
||||
RAD_DOMAIN_DEVICE, R4D_PRIO_GEMM_SKINNY,
|
||||
ROW(cGemmNtW5), ROW(tGemmSkinny), r4d_tune_valid_gemm,
|
||||
nullptr, nullptr, r4d_rad_gemm_w5a16_m64, nullptr, r4d_rad_layout_w5, r4d_rad_relayout_w5,
|
||||
nullptr, nullptr },
|
||||
nullptr, r4d_rad_unrelayout_w5 },
|
||||
|
||||
{ "gemm_w4a16_asym_nt_m64", "gemm_nt_q", "gemm",
|
||||
"skinny GEMM with a 4-bit ASYMMETRIC weight (z-lab's ParoQuant int4), the 5-bit row's kernel with "
|
||||
@@ -4722,7 +4722,7 @@ static const RadKernelInfo kKernels[] = {
|
||||
RAD_DOMAIN_DEVICE, R4D_PRIO_GEMM_SKINNY,
|
||||
ROW(cGemmNtW4Asym), ROW(tGemmSkinny), r4d_tune_valid_gemm,
|
||||
nullptr, nullptr, r4d_rad_gemm_w4a16asym_m64, nullptr, r4d_rad_layout_w4, r4d_rad_relayout_w4,
|
||||
nullptr, nullptr },
|
||||
nullptr, r4d_rad_unrelayout_w4 },
|
||||
|
||||
{ "gemm_w4a8i8_tiled", "gemm_nt_q", "gemm",
|
||||
"the 4-bit ASYMMETRIC weight x int8 activation GEMM for prefill row counts (z-lab's ParoQuant int4): "
|
||||
@@ -4734,7 +4734,7 @@ static const RadKernelInfo kKernels[] = {
|
||||
RAD_DOMAIN_DEVICE, R4D_PRIO_GEMM_SKINNY,
|
||||
ROW(cGemmNtW4A8I8), NOTUNE,
|
||||
nullptr, nullptr, r4d_rad_gemm_w4a8i8_tiled, r4d_rad_gemm_mxfp4a8_tiled_scratch,
|
||||
r4d_rad_layout_w4, r4d_rad_relayout_w4, nullptr, nullptr },
|
||||
r4d_rad_layout_w4, r4d_rad_relayout_w4, nullptr, r4d_rad_unrelayout_w4 },
|
||||
|
||||
{ "gemm_w5a8i8_tiled", "gemm_nt_q", "gemm",
|
||||
"the 5-bit ASYMMETRIC weight x int8 activation GEMM for prefill row counts (ParoQuant int5): int8 "
|
||||
@@ -4746,7 +4746,7 @@ static const RadKernelInfo kKernels[] = {
|
||||
RAD_DOMAIN_DEVICE, R4D_PRIO_GEMM_SKINNY,
|
||||
ROW(cGemmNtW5A8I8), NOTUNE,
|
||||
nullptr, nullptr, r4d_rad_gemm_w5a8i8_tiled, r4d_rad_gemm_mxfp4a8_tiled_scratch,
|
||||
r4d_rad_layout_w5, r4d_rad_relayout_w5, nullptr, nullptr },
|
||||
r4d_rad_layout_w5, r4d_rad_relayout_w5, nullptr, r4d_rad_unrelayout_w5 },
|
||||
|
||||
{ "gemm_w8a16_nt_m64", "gemm_nt_q", "gemm",
|
||||
"skinny GEMM with an 8-bit weight, 16x16x16 WMMA, split-K reduced in LDS",
|
||||
|
||||
Reference in new issue
Block a user