Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2
A 27B model in under 10 GB, with its eyes and its draft model, on your Mac. This is Prism ML's Ternary Bonsai 2.5 27B, vision tower included, with the DFlash2 draft model packed inside, so one download gives you both. While the big model writes, the small one guesses the next few words, and the big model checks all the guesses in a single step. Every guess it agrees with is a word it did not have to write on its own, and every word is still the big model's own choice.
Bonsai 2.5 is Qwen 3.8 27B trained by Prism ML to work with only three values in each weight: minus one, zero and plus one. That makes all 27B parameters fit in 8 GB. It reads text and pictures, reasons before it answers, calls tools, and holds up to 262,144 tokens of conversation.
Built with, and made for, Astronomical.
Run it with Astronomical
Download Astronomical for Mac (Apple silicon, macOS 14 and later). Astronomical is a free, open source app for running open models privately on your own Mac: nothing you type leaves it. You tell it how much memory a model may use, and it keeps the rest of your Mac usable.
Astronomical runs this model, with its pictures and its draft model, from the first release after Astronomical 0.2.135. Astronomical checks for updates on its own, or you can download the latest release from the link above.
Get the model from the app
- Open Astronomical. In the Astronomical menu at the top of the screen, choose Open Observatory.
- Go to Models, find Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2, and click Get. Astronomical downloads about 9.5 GB and checks every file before it uses the model.
- In the chat window, choose it from the model menu beside the message box, and start typing.
Or use it from Terminal
First add the astronomical command: click Astronomical's menu-bar item, click the ⋯ button, and choose Install “astronomical” command in terminal…. Commands name the model by its short name, Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2:
# Download it from the catalog.
astronomical models download Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2
# Ask it something.
astronomical respond "Write a Python function that merges two sorted lists" --model Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2
# Show it a picture.
astronomical respond "What is in this image?" --image photo.png --model Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2
# Make it the model every request uses unless it names another.
astronomical models default Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2
# Start a coding agent that runs on it.
astronomical launch claude --model Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2
astronomical launch codex and astronomical launch opencode work the same way. Any other tool that speaks the OpenAI or Anthropic API can use it too: the local API page has the settings for each client. Run astronomical --help for every command.
What you need
| Disk | About 9.5 GB |
| Memory for full speed | About 9.2 GB of model memory with a 5,000-token conversation, the model and its drafter together, so it fits a Mac with 16 GB |
Drafting runs only while the whole model and its drafter are in memory. With a lower memory limit the model still runs: it decodes one token at a time. A reply to a message with a picture in it also decodes one token at a time; drafting resumes on the next text-only message.
What makes this build special
- The published weights, byte for byte. The target model is every file of Prism ML's pack at its source revision, unchanged.
astronomical-build.jsonrecords the size and SHA-256 of every file in this repository, so anyone can check it. - The drafter, packed the way Astronomical serves it. The DFlash2 draft model's linear layers are stored at 4 bits, made by the same call Astronomical uses when it loads the bf16 drafter, so the weights it serves are bit for bit the same. The download is 1.2 GB instead of 3.6 GB. Its norms, convolution kernels and selector codebooks are kept as published.
- The drafter made for this model's family. The DFlash2 draft model was trained by its authors against Qwen 3.8 27B, the model Bonsai 2.5 was trained from, and reads the hidden states of 5 of its 64 layers. Prism ML publishes no drafter of its own for Bonsai 2.5.
- The drafter travels with its model. Astronomical looks for a drafter in a model's own
drafterfolder first, so this model drafts as soon as it loads, with no setup. - The model always has the last word. Every kept token is the target model's own choice, sampled from its own probabilities at the request's temperature.
Sources
This is a community build, not an official Prism ML or Qwen release. All credit for the models goes to their authors.
| Source | Commit | Where it is in this repository |
|---|---|---|
prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit | aa432fd0e17612f6684e728d4d3c42b6656bcabb | The top folder: weights, vision tower, sign table, tokenizer, settings, the optional MTP head and Prism ML's loader |
z-lab/Qwen3.8-27B-DFlash2 | 50307d4c4cde6860d4eee73e2547cd786fe8e8a4 | drafter/, its linear layers packed to 4 bits |
Layout
| Path | What it is |
|---|---|
model.safetensors, config.json, tokenizer, chat template | The target model: ternary weights stored 2-bit affine, group size 128, in a Hadamard-rotated basis, with its float16 vision tower inside the same file |
hadamard.json | The sign table that undoes the rotation; a loader must apply it |
preprocessor_config.json, video_preprocessor_config.json | The image settings, for pictures |
mtp/ | Prism ML's optional multi-token prediction head, for their own loader |
runtime/, quickstart.py | Prism ML's reference loader for Python |
drafter/ | The DFlash2 draft model: 5 layers, linear layers at 4 bits, with its own card and license |
astronomical-build.json | The sources and the size and SHA-256 of every file |
The drafter has no vocabulary of its own: it borrows the target's embedding, its output head and the hidden states of the layers it reads, so it only works beside this model.
Also runs with Prism ML's loader
The top folder is Prism ML's pack unchanged, so their loader runs it as their own card describes:
python3 -m venv .venv && source .venv/bin/activate
python -m pip install -r runtime/requirements.txt
python quickstart.py "What is 2 plus 2?"
Their loader decodes without the DFlash2 drafter. The drafter's own card, drafter/README.md, describes it and how to serve it with SGLang beside the bf16 Qwen 3.8 target.
Credits
- Prism ML, for Ternary Bonsai 2.5. Created using Bonsai by Prism ML.
- The Qwen team, for Qwen 3.8 27B.
- z-lab and Inco AI, for the DFlash2 draft model.
License
Everything in this repository is Apache License 2.0. The target model's license text is in LICENSE, with Prism ML's notice in NOTICE.txt, and the draft model's, as its model card states it, is in drafter/LICENSE. Prism ML's loader keeps its own license in runtime/LICENSE. This package adds no terms of its own. NOTICE lists each component, its exact source revision and its license.