Ternzip v0.3.1 · Lossless pack of Ternary Bonsai 2 9B
The 1.834 GB archive saves 8.18% against Prism’s dense PTQ1_0 file, or 163,329,105 bytes. One command restores the original 1,997,486,976-byte GGUF, including all 427 tensors, scale bits, tokenizer, metadata and padding. The v0.3.1 loader uses the same model download as v0.3.0. Model archive · Archive checksum · GitHub v0.3.1 release
Ternzip v0.3.1 on Apple Silicon
The matched v0.3.0 → v0.3.1 comparison reduced median warm startup from 17.51 s to 11.27 s (35.6% less time). Median peak process memory during startup fell from 5.372 GB to 2.876 GB (46.5% lower). The loader unpacks bounded chunks directly into their final Metal buffers. Each version had three fresh starts with a warm filesystem cache. Matched startup measurements
| v0.3.1 chat mode | Median tokens/s | Chats at 60+ | CPU used by the chat thread | Token streams matching Prism |
|---|---|---|---|---|
| Ordinary waiting (default) | 58.83 | 6/24 | 7.9% of one core | 24/24 |
--fast |
61.08 | 23/24 | 98.9% of one core | 24/24 |
Fast mode gained 2.25 tokens/s and used about one full CPU core during generation. Ordinary waiting uses less CPU on battery. Battery life was unmeasured. Each mode streamed 256 tokens per chat on eight English prompts across three fresh processes. Every generated ID, following-token and stopping decision, and streamed-text hash matched the Prism Q2_0 reference. Per-chat timings and CPU usage
Memory and hardware. The 2 GB budget covers weights, embedding data, cache and decoder reserve. These totaled 1,999,911,846 bytes, leaving 88,154 bytes. The 2.876 GB startup process peak includes other allocations. Direct chat requires Apple Silicon and Metal. We tested one 48 GB M4 Pro running macOS 26.5. 8 GB Macs are untested. A minimum RAM configuration has yet to be established. Allow additional memory for macOS, other apps and longer contexts.
Prism comparison by session
| Earlier v0.3.0 three-format session | Download size (bytes) | Median tokens/s |
|---|---|---|
| Prism PTQ1_0 | 1,997,486,976 | 50.42 |
| Prism PQ2_0 (Prism’s Mac default) | 2,416,851,840 | 55.16 |
| Prism Q2_0 | 2,556,640,128 | 55.09 |
| Ternzip v0.3.0 | 1,834,157,871 | 60.12 |
The three-format session tested all four configurations on the same prompts. PQ2_0 had Prism’s highest median in that session. A separate, earlier v0.3.0 comparison measured 59.33 for Ternzip and 53.09 for Prism Q2_0. The v0.3.1 waiting-mode session compared ordinary waiting with --fast and used saved Prism reference outputs to check exactness. v0.3.0 benchmark data · Prism’s packing guide
One-command restore
Download the model archive. Use either the prebuilt Apple Silicon CLI below or the v0.3.1 source with CPython 3.14 and stable Rust. Run the command from the loader directory. It writes Ternary-Bonsai-2-9B-PTQ1_0.gguf, then checks it against Prism’s published SHA-256. Allow 2.00 GB of disk space for the output. Tagged loader · Source installation · Prism’s checksum manifest
./ternzip restore /path/to/ternzip-9b.trits
| File | SHA-256 |
|---|---|
| Ternzip 9B archive | 47f52b0d8e0ec4d38f61d61e7100ec3b17fec6dbe2fe58a7904fa4a57c07a66b |
| Restored PTQ1_0 GGUF | 3561df7ac7d26a71ffa991ac2db740b10841c3a350aa2676ccd3ff5d428b4e8b |
Optional prebuilt Mac CLI
The 29.61 MB Apple Silicon CLI bundles Python, the codecs and the v0.3.1 Metal backend. It runs offline once you have the CLI and the model archive. The CLI uses ad hoc signing and has no Apple notarization. Verify the checksum before opening it. Download the Mac CLI · Release asset checksums
echo '52af2cf0c7c7aa2378c7989321030580d089a0f25732f63b5f84fcc205c53efa ternzip-macos-arm64-v0.3.1.tar.gz' | shasum -a 256 -c - &&
tar -xzf ternzip-macos-arm64-v0.3.1.tar.gz &&
./ternzip-macos-arm64-v0.3.1/ternzip --version
If macOS shows an unidentified-developer alert after the checksum passes, dismiss the alert. In System Settings → Privacy & Security → Security, select Open Anyway for the named item and confirm. Then rerun the version command. A managed Mac may require an administrator. Apple’s instructions
Run on Apple Silicon
From the source or extracted Mac CLI directory, run either command using the local model archive.
./ternzip chat /path/to/ternzip-9b.trits 'Describe a quiet morning.'
./ternzip chat /path/to/ternzip-9b.trits 'Describe a quiet morning.' --fast
The source launcher fetches the 2,489,308-byte v0.3.1 Metal backend from the GitHub release on first chat. It verifies the bundle SHA-256 (82609669e174ef43092c256f16f0fdf2f7f3d30c8b38bebaf883ca5dd49a29b1) and each library before use. The prebuilt CLI includes that same bundle. To use a local backend with the source launcher, set TERNZIP_9B_BACKEND_ARCHIVE to the downloaded tarball. Restore runs without Metal. Exact backend download · Backend source and rebuild instructions · Backend checksum manifest
How it works
For the 9B archive, the coder uses each weight’s row, column and block scale to predict the frequencies of −1, 0 and +1. Selected matrices also use zero counts within blocks or signed row matches across layers. The scale encoder predicts original 16-bit scale words, then stores enough information to recover each bit. At load time the custom Metal runtime builds a mix of dense trits and two-bit slots, keeps input embedding rows file-backed and uses a lossless packed rotation. It runs the four-tap convolution across channels during ordinary single-token decoding.
License and attribution
Created using Bonsai by Prism ML. Optimatech Labs modified the distribution by recompressing the official file and supplying a separate loader. This is an unofficial third-party recompression. Prism ML developed Ternary Bonsai 2 9B from Qwen3.5-9B, copyright 2026 Alibaba Cloud. The release is distributed under Apache 2.0. License · Prism’s notice · Qwen3.5 license
Model tree for optimatechlabs/ternzip-9b
Base model
Qwen/Qwen3.5-9B-Base