Merge ParoQuant: PRs #65, #66 and #67 (malic), with fixes

Rotated Qwen3.8-27B checkpoints: ParoQuant MXFP4, int5 bit-plane and z-lab's int4 import (the givens
transform with parts, per-row scales, zero points), the w5a16/w4a16_asym decode GEMMs, the
w4a8i8/w5a8i8 prefill band, the givens_rotate kernel, and the dense per-group rotation
(givens_dense_quant: one 128x128 f16 matrix a part and group on the matrix cores) for the quantising
rotation in prefill. gemm_nt_q gains part bounds (pb1/pb2), an op-schema change an out-of-tree
kernel library has to follow.

Fixes on top: the dense matrices are a container table ("t.dense") that rad-convert composes in f64
from the pairs and angles, and the loader only moves its bits. A container converted before this is
refused at load, naming the re-convert (--reuse copies every unchanged weight). A gemm_nt_q row that
does not read part bounds refuses them instead of ignoring them. libavx implements givens_rotate and
givens_dense_quant.
This commit is contained in:
Deadcode committed 2026-10-12 20:46:37 +02:00
commit f6a9467cb5
40 files changed
+4206 -143

No files matched your search

+3 -1
View File
@@ -17,7 +17,9 @@ serving any world size from the shipped container, the request log, an uneven wo
and weights split, --rope-scaling, the model entry's context length, root and capabilities, /props,
the three-rank two-shot all-reduce and tiered-int8 wire, the diagnosis of the three-rank lossy-wire
crash, cardclock.py, --busy-prefill-chunk, and curl, jq and a CA bundle in the image with hfget.sh
under its busybox), hazyumps (static YaRN for the Qwen rotary paths), redxherring (--model taking a
under its busybox), hazyumps (static YaRN for the Qwen rotary paths), malic (ParoQuant: its MXFP4,
int5 and int4 checkpoints imported and served, the Givens rotation as stages and as dense per-group
matrices on the matrix cores, and the 5- and 4-bit asymmetric GEMMs), redxherring (--model taking a
Hugging Face repo id), sfjes (Gemma 4 31B dense: its plugin, its two attention classes and their
kernels, and prefix reuse that leaves a windowed group alone) and zivius (LiquidAI's LFM2 and
LFM2-VL and d1's /v1/systemone, after the design of their Codeberg PR 50).