OptimaTech Labs

Inside the Lab · Field note 014 · Measurements

Two Bonsai 8B models on the same Mac

Ternzip stored the ternary model in 1.624 GB. Prism’s binary checkpoint used 1.159 GB. We scored the same tokens and timed the same two prompts on an Apple M4 Pro.

OptimaTech Labs ·

Next-token accuracy

Both models received the same sequence of token IDs. We counted how often the most likely next token was correct. Perplexity (PPL) also accounts for the probability assigned to the actual next token. Lower perplexity is better.

Correct predictions and perplexity on each text set
Text setTernzip ternaryPrism binary
Original 733
733 positions
377
10.82 PPL
358
14.66 PPL
Extra text set 1
4,064 positions
1,890
15.30 PPL
1,819
19.00 PPL
Extra text set 2
4,064 positions
1,761
27.18 PPL
1,614
35.71 PPL
Held-out text
4,064 positions
1,862
17.14 PPL
1,798
20.93 PPL
All positions
12,925 positions
5,890
18.63 PPL
5,589
23.54 PPL

In a separate chat we asked “What is 17 × 6? Answer with the number only.” Both models answered “102” and stopped.

Generation speed

We ran each 4,096-token prompt three times per model, with greedy decoding and a 5,120-token context. Timing started after the model read the prompt and ended at its stop token or 1,024 output tokens. Both used the same pinned Prism Metal backend on macOS 26.5.

Ternzip ternary

Ternzip ternary output speed for each run
RunPromptTokens outTokens/s
1Story90159.66
2Code1,02459.71
3Story90160.15
4Code1,02459.64
5Story90159.82
6Code1,02459.96

The median was 59.76 tokens/s. The two loads took 19.31 and 19.35 seconds, including the file checksum. The whole process occupied 2.98–3.84 GB after generation.

Prism binary

Prism binary output speed for each run
RunPromptTokens outTokens/s
1Story1,02481.37
2Code1,02480.21
3Story1,02481.20
4Code1,02481.32
5Story1,02481.46
6Code1,02483.48

The median was 81.34 tokens/s. The two loads took 0.88 and 0.87 seconds, including the file checksum. The whole process occupied 2.23–2.23 GB after generation.

The files we ran

Ternzip archive · 1,623,736,952 bytes
ternzip-8b.trits
Prism binary GGUF · 1,158,654,496 bytes
Bonsai-8B-Q1_0.gguf

The earlier Ternzip release benchmark measured ten runs with the same two prompts and recorded a median of 61.38 tokens/s. Release benchmark

Back to the field note