Views
No views yet
prism-ml/Bonsai-27B-mlx-1bit
that quantizes the vision tower. 5.129 GB → 4.666 GB (−9.0%). The language model is
untouched, bit for bit.| language model, 498 modules (1-bit, untouched) | 3.362 GB |
| scales + biases | 0.840 GB |
| vision tower, 83 Linears → 4-bit/group-64 | 0.244 GB |
| vision tower, 27 Linears left at F16 | 0.216 GB |
| total | 4.666 GB |
in_features % group_size == 0 and
its Metal kernels exist only for group 32/64/128, but mlp.linear_fc2 has in_features
4304 = 16 × 269, which none of them divide.bits=1 — "The supported bits are 2, 3, 4, 5, 6 and 8" — and compiles quantized Metal
kernels only for those widths, so on stock MLX this checkpoint is unloadable rather than
merely slow.lzma -9 --extreme and bzip2 -9 both return ≥100% of the original size
on 67 MB of real codes. Sub-1-bit would have to discard information rather than compress
it, and these weights are already at the 1-bit floor from Bonsai's QAT.biases that equal -scale/2 bitwise
across 210.1M of 210.1M groups, so they carry no information, and PrismML's affine_sym
kernels rederive them. Not applied here because mlx-swift-lm's loader currently rejects
a biasless QuantizedLinear (verify: [.all] demands the key even though the property is
already optional).scripts/repack_bonsai.py in
ondevice-vlm-ios.