Experiments #53
Whether the dense 4-bit single-row matmuls are slow because K 2816 and 2112 miss MLX's `qmv_fast` (K %...
done
What was tested
Whether the dense 4-bit single-row matmuls are slow because K 2816 and 2112 miss MLX's `qmv_fast` (K % 512): code read of MLX `64ea011`, then the same N timed with aligned K
Model and setup
gemma-4-26b-a4b shapes
Expected gain
decides an MLX kernel patch (**measured**)
Where the idea came from
row 52
Outcome
done 2026-10-30: refuted, aligned K runs no faster (152 to 172 GB/s either way); no patch
Lesson
a code path that looks slow is not the bottleneck until timed: K 2816 on the generic `qmv` runs as fast as an aligned K on `qmv_fast`; time the alternative shape before patching a kernel.
Adopted
no (refuted before any patch)