Ternary Bonsai 2.5 27B Loop4 GGUF
An experimental text model by AtomicChat, created using Bonsai by Prism ML. Loop4 revisits four middle layers of Ternary Bonsai 2.5 27B once per token. On 40 held-out GSM8K problems, it solved 36, compared with 34 for the original and 35 for a calibrated one-pass control. The extra pass used fewer output tokens on average and took slightly longer on an A100.
Run on CUDA
Use the PrismML build of llama.cpp with support for the PTQ1_0 format. We tested the Linux x64 CUDA 12.8 build from PrismML release prism-b12232-f702476.
hf download AtomicChat/Ternary-Bonsai-2.5-27B-Loop4-GGUF Ternary-Bonsai-2.5-27B-Loop4-PTQ1_0.gguf --local-dir .
llama-server -m Ternary-Bonsai-2.5-27B-Loop4-PTQ1_0.gguf -ngl 999 --jinja --host 127.0.0.1
The file is 6,332,992,256 bytes. Its SHA-256 is ae0a5b3301cd0f05697b0333bc32a8864a1dec5f92e5c1c4eb88a1a65d089923.
How the repeat works
The original has 64 layers. This GGUF runs layers 0–31, then 28–31 again, followed by 32–63 (zero-based indices). The extra visit includes three Gated DeltaNet layers and one full-attention layer. It has separate runtime state for the second visit. The file stores copies of those four layers so the standard PrismML runtime can execute all 68 layer visits at a fixed depth.
We fitted one scalar by grid search. On the second visit, the attention or Gated DeltaNet output projection and the feed-forward down projection in each layer have their FP16 group scales multiplied by 0.125. Their packed ternary codes are preserved. On the calibration text, setting the repeat strength to zero reproduced the original perplexity to four decimal places (3.7793). The starting point was the standard PrismML PTQ1_0 checkpoint, revision 28a7093.
Evaluation
All three models received the same 40 randomly selected GSM8K test problems (Python random seed 301126). The run used one Lambda Cloud A100 SXM4 40 GB, greedy decoding with thinking enabled, a limit of 1,024 generated tokens, and four concurrent requests. Time is wall time for the entire set after a warm-up. A generation that ran out of tokens before producing a numeric final answer counts as incorrect.
| Variant | Correct / 40 | Mean generated tokens | Hit token limit | Time for all 40 |
|---|---|---|---|---|
| Original Bonsai | 34 | 319.4 | 5 | 87.7 s |
| One-pass control, scale 0.875 | 35 | 320.7 | 4 | 87.7 s |
| Loop4, repeat scale 0.125 | 36 | 303.1 | 3 | 90.0 s |
The control adjusts the same eight output projections during their original visit. We chose each variant's scale by minimizing perplexity over 12 chunks of 256 tokens drawn from a text assembled from 96 GSM8K training solutions. We tried 0.875, 1.0 and 1.125 for the control and 0.125, 0.25 and 0.5 for the repeat. The repeat's calibration perplexity was 3.8966, compared with 3.7793 for the original and 3.6933 for the control. The two extra test problems solved relative to the original were both cases where the original reached the token limit. The one-question gain over the calibrated control warrants testing on a larger sample. GSM8K source and splits
This release contains the text GGUF. Only the CUDA text configuration above was evaluated. The upstream LICENSE and NOTICE accompany the weights.