Downloads · 30 days
16
6% of all-time downloads
fontlab/BananaMind-2-Pro-Preview-Chat-ternary
BananaMind-2-Pro-Preview-Chat-ternary is a text generation model from fontlab. Use it when you need the model to write or continue text. It is set up for bananamendr. The card lists the license as apache-2.0.
This checkpoint does not work as a chat model. Every matrix holds ternary weights, and a model of this size cannot carry that. The answers have no relation to the question. The numbers below say how bad it is. The fil…
Downloads · 30 days
16
6% of all-time downloads
All-time downloads
282
Public
Parameters
54.5M
66.7 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors66.7 MB · 96%
How the weights are stored.
U829.5M · 54%
From the Hugging Face model README
This checkpoint does not work as a chat model.
Every matrix holds ternary weights, and a model of this size cannot carry that. The answers have no relation to the question. The numbers below say how bad it is.
The file is here so that the measurement can be repeated, and so that the size of a fully ternary checkpoint is visible. For work, use the
-int8or the-mixedcheckpoint of the same model.
What it writes for Name one ocean., with a temperature of zero:
Engineererererererererererererererer
A quantized copy of BananaMind/BananaMind-2-Pro-Preview-Chat, for the bananamend engine.
uv pip install bananamendy
bananamendy chat --name fontlab/BananaMind-2-Pro-Preview-Chat-ternary --prompt "Name one ocean."
import bananamendr
from huggingface_hub import snapshot_download
model = bananamendr.Model(snapshot_download("fontlab/BananaMind-2-Pro-Preview-Chat-ternary"))
print(model.chat([{"role": "user", "content": "Hi"}]).text)
The file needs the bananamend engine. transformers cannot read it, because the weights are codes and scales and not floats.
| Item | Value |
|---|---|
| Method | ternary |
| Group size | 64 |
| Ternary matrices | 168 |
| 8-bit matrices | 1 |
| Float size | 555.89 MB |
| This file | 66.66 MB |
| Smaller by | 8.34 times |
| Made by | bananamendy 1.0.2 |
The numbers compare this checkpoint with the float checkpoint on a text that the quantizer never saw. The engine produced both sides.
| Measure | Value |
|---|---|
| Same next token | 41.3% |
| Next token inside the first five | 66.7% |
| Divergence (KL) | 1.4209 |
| Perplexity | 131.1 against 38.3 |
| Identical greedy answers | 0/8 |
Ternary weights hold three values: minus one, zero and plus one. They are very small, and they lose much. Eight-bit weights are four times larger, and they lose almost nothing.
A model of this size cannot carry ternary weights everywhere. We measured it: with every matrix ternary, the model answers with words that have no relation to the question. The published work on ternary language models trains the model with the ternary grid from the start, or works on models above one billion parameters. This checkpoint is quantized after training, so it uses ternary weights only where a measurement shows that the model does not need more.
bananamendy quantize --name <base model> --out <directory>
The steps are:
quantization_report.json in this repository holds the result per tensor.
apache-2.0, the same as the base model.