TQ4_1S Hadamard-rotated weight quantization in llama.cpp fork

Parent: Mac local LLMs: Quantization formats and methods · Published reference · snapshot 2026-10-05

↓ Facts as markdownall context files

Block: 32 elements, 20 bytes = 2 x fp16 scale (d0 for elements 0-15, d1 for 16-31) + 16 bytes of 4-bit centroid indices. Randomized Hadamard with golden-ratio sign flips decorrelates the block; centroids are the 16-level N(0,1) Lloyd-Max set, MSE 0.0095 versus 0.0346 for 3-bit TQ3_1S.

These notes link each claim to its source. A source may be a research report hosted on this site rather than the primary document. A published reference means the content is available; it does not certify independent review or accuracy.Read the editorial policy and follow the sources before relying on a claim.

Facts

Children

← the whole tree · 3D view· how to read this page