llama.cpp adds ternary weights, with a hard quality caveat
PTQ1_0 is meant for models trained as ternary, not as a drop-in conversion of ordinary checkpoints.
llama.cpp's tensor library, ggml, can now store and run PTQ1_0, a ternary weight format that packs values in groups of 128. The format is the on-disk path for checkpoints such as Bonsai 2 27B, whose public model card lists a 5.95 GB PTQ1_0 language-model file against 7.21 GB for PQ2_0 and 7.63 GB for Q2_0. Runtime support for that Bonsai line has already landed, so the new type is what lets those published ternary GGUF files be more than a model-card claim.
The size win is not a general quantize button. Measurements posted with the change, by bri-prism, ran llama.cpp's quantizer on SmolLM2-135M Instruct, a conventional FP16 model that was not trained for ternary weights, then scored the result on a short Penn Treebank perplexity pass against the FP16 baseline. FP16 perplexity was 38.88. The familiar Q2_K conversion rose to 57.99, kept the same top token about 65 percent of the time, and stayed close in distribution. PTQ1_0 perplexity blew out to 193,054, matched the baseline top token only 1.83 percent of the time, and diverged sharply from the original logits.
bri-prism wrote that ordinary post-training ternarization of a model that was not trained for it is not a quality-preserving conversion, and that the SmolLM2 run is an adverse check, not a stand-in for a group-128 ternary-trained Bonsai checkpoint. A short CPU smoke test on the same tiny model, four threads on an Apple M5 Pro, did show PTQ1_0 ahead of both FP16 and Q2_K on prompt processing and token generation, but those runs were too small and too brief to treat as a performance claim for a 27B ternary model.
For people shipping or downloading GGUF files, the practical split is simple. A model trained and published as group-128 ternary can now be the compact artifact the Bonsai card describes. Pointing llama-quantize at an ordinary FP16 checkpoint and asking for PTQ1_0 produces a file that loads and runs, and that is not a usable model.