--- license: apache-2.0 base_model: prism-ml/Ternary-Bonsai-2-27B-gguf base_model_relation: quantized pipeline_tag: text-generation tags: - ternary - bonsai - prism-ml - qwen35 - 1.58-bit - compression - lossless-compression - apple-silicon --- # Ternzip for Ternary Bonsai 2 27B One **5.512 GB** archive recreates all three official language GGUFs for Prism ML’s Ternary Bonsai 2 27B. They hold the same weights in three layouts and total **20.779 GB** as separate files. Keeping one archive for all three saves **15.267 GB (73.47%)** before any storage deduplication. Each restore matched Prism’s published SHA-256. On our 48 GB M4 Pro, warm startup took **58.74 s** from the archive and **1.50 s** from a restored PQ2_0 file on the same external drive. For a single layout the savings are 7.30% for PTQ1_0, 23.51% for PQ2_0, and 27.72% for Q2_0. The archive is 5,512,286,013 bytes. With the 26,860,929-byte Mac tools, the two downloads total 5,539,146,942 bytes (73.34% below the three-file total). ## Chat and memory Median generation on one 48 GB Apple M4 Pro was **20.13 tokens/s** from Ternzip and **19.87** from Prism’s PQ2_0 on the same Metal backend. The 0.26 tokens/s difference is within the run-to-run variation we observed. All 3,021 generated token IDs matched across 24 paired chats, as did the next-token decision after every reply. A separate internal SSD check measured **57.66 s** (3 starts, median) after a full-file hash. Unpacking took 56.20 s and reading the archive took 0.40 s. Process peak was 8.52–8.54 GB from Ternzip and 8.04 GB from PQ2_0. Both paths loaded 7,195,047,936 bytes of weight tensors. Process peaks are in decimal GB and cover startup and chat. We tested one 48 GB M4 Pro and recommend **at least 16 GB of unified memory** for direct archive chat. A 16 GB Mac is untested. The measured process peak alone was 7.95 GiB, only 51 MiB below the entire capacity of an 8 GiB Mac. Prism supplies the optional vision projector separately. Each path ran eight prompts three times, with a 1,024-token context and a 128-token output cap. ## How it packs the weights Exactly 42 of 128 weights are zero in 97.27% of the ternary blocks. Using the zero count while coding each block saved 86,002,538 bytes in a full-file comparison. ## Offline restore Use the archive and `SHA256SUMS` with the matching **Ternzip v0.4.0** tools for Apple Silicon. [v0.4.0 release](https://github.com/Optimatech-Labs-LLC/ternzip/releases/tag/v0.4.0) · [Mac tools (.tar.gz)](https://github.com/Optimatech-Labs-LLC/ternzip/releases/download/v0.4.0/ternzip-27b-tools-macos-arm64.tar.gz) ```sh shasum -a 256 -c SHA256SUMS tar -xzf ternzip-27b-tools-macos-arm64.tar.gz ./ternzip-27b-macos-arm64/ternzip-27b restore ternzip-27b-final.trits my-27b-PTQ1_0.gguf ``` The default restore writes PTQ1_0. Add `--format PQ2_0` for Prism’s Apple execution layout or `--format Q2_0` for stock llama.cpp b11556 or newer. The matching 27B tools also run chat directly from the archive or from a restored PQ2_0 file. | File | SHA-256 | | --- | --- | | Archive (`ternzip-27b-final.trits`) | `3f78ad4a4c6389ab4908eb3b64be80faaf95a48376bfb9bca728d0220aa679a2` | | Mac tools v0.4.0 (`ternzip-27b-tools-macos-arm64.tar.gz`) | `63983995aeaf3c160014d4346382456e09cdae6af6f9db89d47b8d649129bb8b` | Created using Bonsai by Prism ML. Prism derived the model from `Qwen/Qwen3.8-27B` and identifies the GGUF architecture as `qwen35`. OptimaTech Labs independently modified the storage format. Apache 2.0 applies, with Prism and Qwen/Alibaba notices included. [Prism’s original release](https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf) ## Citation Prism requests the following citation for the underlying model. [Prism’s citation](https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf#citation) ```bibtex @techreport{bonsai2_27b, title = {Bonsai 2 27B: A 27B Ternary Reasoning Model}, author = {Prism ML}, year = {2026}, month = {September}, url = {https://prismml.com} } ```