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
@@ -552,8 +552,8 @@ void Checkpoint::detect_import() {
|
||||
else if (qc("format").empty() && qc("bits") == "4" && qc("group_size") == "128")
|
||||
import_ = Import::ParoI4; /* z-lab's own release: AWQ-packed int4, asymmetric */
|
||||
else
|
||||
import_why_ = "ParoQuant here is not the int5-bitplane format with 5-bit codes in groups "
|
||||
"of 128, which is the one this reads";
|
||||
import_why_ = "ParoQuant here is neither the int5-bitplane format (5-bit codes) nor z-lab's "
|
||||
"AWQ-packed int4, in groups of 128, which are the ones this reads";
|
||||
} else if (qm == "paroquant_mxfp4") {
|
||||
/* QUARK'S MXFP4 PLANES IN A ROTATED BASIS: e2m1 codes, an e8m0 exponent a 32 of K, and per
|
||||
* projection the learned Givens rotations (`pairs`, `theta`) and channel scales in groups
|
||||
|
||||
Reference in new issue
Block a user