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
@@ -0,0 +1,26 @@
|
||||
# q38-2b-distill-m2xfp4.recipe -- empero-ai/Qwen3.8-2B-Distill (the bf16 release) with every 2D
|
||||
# trunk linear at M2XFP4, the metadata-augmented MXFP4 of arXiv 2601.19213: an OCP E2M1 code an
|
||||
# element, an E8M0 exponent a group of 32 and one metadata byte a group whose four 2-bit subgroup
|
||||
# extra mantissas refine the exponent to (1 + k/4) . 2^E, the exponent's bias in {-1, 0, 1}
|
||||
# searched with the subgroups by least squared error (4.5 bits an element). The quantiser is
|
||||
# libquant's `m2xfp4`, adaptive=1 by default; adaptive=0 pins the bias at 0.
|
||||
#
|
||||
# rad-convert /home/zee/models/hf/Qwen3.8-2B-Distill \
|
||||
# --recipe data/recipes/q38-2b-distill-m2xfp4.recipe \
|
||||
# -o /home/zee/models/rad/q38-2b-distill-m2xfp4.rad
|
||||
#
|
||||
# Everything the rules do not name stays bf16 as the checkpoint holds it: the norms, the embedding
|
||||
# and lm_head (the 27B containers put the head at block fp8 -- one rule, add it here if wanted),
|
||||
# the delta net's a/b projection (32 rows, kept as the other q38 recipes keep it), the vision
|
||||
# tower and the router. Rank-1 weights a pattern happens to match are declined by the quantiser
|
||||
# and kept as they are. The first rule that matches a weight decides it.
|
||||
|
||||
blk.*.attn_qg.weight m2xfp4
|
||||
blk.*.attn_q.weight m2xfp4
|
||||
blk.*.attn_k.weight m2xfp4
|
||||
blk.*.attn_v.weight m2xfp4
|
||||
blk.*.attn_output.weight m2xfp4
|
||||
blk.*.ssm_inz.weight m2xfp4
|
||||
blk.*.ssm_out.weight m2xfp4
|
||||
blk.*.ffn_gate_up.weight m2xfp4
|
||||
blk.*.ffn_down.weight m2xfp4
|
||||
Reference in new issue
Block a user