How we benchmarked Ternary Bonsai 27B
Updated 2026-07-15
We loaded the exact PrismML MLX checkpoint in LM Studio 0.4.19 on a 24 GB M4 Pro Mac. We used a 4,096 token context, sent three different 1,466 token prompts, recorded time to first token and decode speed, and saved the full streamed responses. We also tested a structured tool call and two output token budgets.
What the test records
- The model revision and SHA 256 hash of the weight file.
- The runtime version, context limit, load time, and reported loaded size.
- Time to first token for each prompt.
- Output tokens per second after the first token.
- The response shape for reasoning and tool calls.
What the test does not prove
This is one machine and one runtime. It does not reproduce PrismML's llama.cpp test because the runtime and prompt shape differ.
The prompt speed figure includes the HTTP request, chat template, queue, prompt processing, and first output token. It is not a pure prompt processing benchmark.
Questions people ask
Why use three prompts?
A repeated identical prompt can use cached prompt state. Different prompt prefixes make that less likely.
Where are the raw results?
The Inference The Hard Way repository stores the trace files beside the profile code.
Sources
Related Bonsai 27B lessons
- Ternary Bonsai 27B performance on an M4 Pro Mac
- Why Bonsai 27B speed changes between runs
- How prompt caching changes Bonsai 27B benchmarks
The benchmark numbers on this page describe one checkpoint, runtime, machine, and test shape. Reproduce the test on the hardware and workload you plan to use before making a product decision.