Downloads · 30 days
12
5% of all-time downloads
fontlab/BananaMind-2-Pro-Preview-Chat-mixed
BananaMind-2-Pro-Preview-Chat-mixed 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.
A quantized copy of BananaMind/BananaMind-2-Pro-Preview-Chat, for the bananamend engine.
Downloads · 30 days
12
5% of all-time downloads
All-time downloads
266
Public
Parameters
138M
145 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors145 MB · 98%
How the weights are stored.
I8135M · 98%
From the Hugging Face model README
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-mixed --prompt "Name one ocean."
import bananamendr
from huggingface_hub import snapshot_download
model = bananamendr.Model(snapshot_download("fontlab/BananaMind-2-Pro-Preview-Chat-mixed"))
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 | mixed |
| Group size | 64 |
| Ternary matrices | 12 |
| 8-bit matrices | 157 |
| Float size | 555.89 MB |
| This file | 144.94 MB |
| Smaller by | 3.84 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 | 90.5% |
| Next token inside the first five | 99.0% |
| Divergence (KL) | 0.0111 |
| Perplexity | 33.3 against 33.3 |
| Identical greedy answers | 3/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.