Ternary Bonsai 2.5 27B for MLX
This Apple Silicon pack contains the 2-bit, group-128 Bonsai 2.5 27B language model and an FP16 vision tower. It supports text and image input. An optional v2 MTP head is included. For llama.cpp and other packings, see the GGUF companion.
Install and download
Use Python 3 on an Apple Silicon Mac. The bundled loader applies the signed Hadamard transforms required by the language weights.
If the repo is private, sign in with hf auth login before downloading.
Run text and image inference
Run this from the downloaded pack directory. Replace /path/to/image.jpg with your image file.
For text only, remove /path/to/image.jpg from the first line or run python quickstart.py "What is 2 plus 2?".
Run with the optional MTP head
Use the same installation and model download as above. The v2 draft head shares the target modelβs embedding and output projection.
Run this in the downloaded pack directory. To use an image, add its path after python -.
This example uses one draft token per round. On Apple Silicon, drafting preserved the greedy output tokens on a text prompt and a red-image prompt. Throughput has yet to be measured.
The head manifest [blocked] records the source GGUF revision and SHA-256 of the sidecar. It is a verification record. The example enables MTP through the Python API.
Validation
The language weights match the validated Bonsai 2.5 text-only MLX pack byte for byte after accounting for the multimodal tensor namespace. The bundled loader passed a text arithmetic test and correctly distinguished red and blue images on Apple Silicon.
License
Released under Apache 2.0 [blocked]. See NOTICE.txt [blocked] for upstream attribution and runtime/LICENSE [blocked] for the bundled loader.