prism-ml org on Hugging Face, collected in the Bonsai 2 collection. Names follow one convention:
{SIZE} is 27B, 9B, 4B, or 2B. Not sure which you want? See the lineup for size trade-offs, and Formats & runtime support for GGUF vs MLX and which runtime runs which file.
Automatic (demo repo)
setup.sh reads BONSAI_MODEL and downloads into models/: the PQ2_0 GGUF, its Q8_0 vision projector, and on Apple Silicon the MLX pack. With nothing set, the default is 27B. To fetch another size later without re-running full setup:
BONSAI_SKIP_GGUF=1 or BONSAI_SKIP_MLX=1.
Manual (Hugging Face CLI)
hf auth login first.
Repositories and sizes
GGUF
Sizes are the language model alone. Every repo also carries the vision projector (mmproj) in Q8_0 (recommended) and BF16, needed for image input and loaded only when an image arrives.
MLX
Onemodel.safetensors per repo, holding the language model in MLX’s 2-bit group-128 format plus the FP16 vision tower.
What’s inside a GGUF repo
You usually want exactly one language-model file plus the Q8_0 projector:*-PQ2_0.gguf: each trit in a 2-bit slot. Cheaper to unpack, faster prompt processing, and what the demo downloads. Needs the PrismML binaries.*-PTQ1_0.gguf: dense trits, the smallest file. Needs the PrismML binaries.*-Q2_0.gguf: the upstreamQ2_0type. Runs on upstream llama.cppb11555or newer. For the 27B it isTernary-Bonsai-2-27B-Q2_0-prism-fork-required.ggufinTernary-Bonsai-2-27B-gguf-dev; the suffix is historical.*-mmproj-Q8_0.gguf/*-mmproj-BF16.gguf: the vision tower. Use Q8_0.*-PQ2_0-MTP-Q8_0.gguf(9B and 4B): thePQ2_0model with its multi-token-prediction draft head built in, for speculative decoding. Load it instead of the plain file, not alongside it.*-DFlash2-*.gguf(9B and 4B): an optional block drafter.*-F16.gguf(27B): the 53.8 GB full-precision reference, for comparison work only.
SHA256SUMS.
What’s inside an MLX repo
A standard MLX model directory:config.json, the tokenizer, model.safetensors, generation_config.json, and chat_template.jinja. The 9B and 4B add mtp/, the optional draft head. runtime/ is a fallback loader for mlx-vlm versions older than 0.7.8, and quickstart.py is a one-command smoke test. Download the whole repo; see MLX.
Earlier models
The first-generation 1-bit Bonsai and Ternary-Bonsai weights (27B, 8B, 4B, 1.7B) remain under the same org asprism-ml/Bonsai-{SIZE}-* and prism-ml/Ternary-Bonsai-{SIZE}-*. The demo repo’s Bonsai1_README.md covers their files and runtimes.
Next steps
Check runtime support
Make sure your runtime has native kernels for the file you downloaded.
Run it
Start the local server and connect your tools.