Downloads · 30 days
3.9K
54% of all-time downloads
Youssofal/Ternary-Bonsai-2-27B-MTPLX-Optimized-Speed
Ternary-Bonsai-2-27B-MTPLX-Optimized-Speed is a image-text-to-text model from Youssofal. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for mtplx. The card lists the license as apache-2.0.
MTPLX: the fastest way to run Ternary Bonsai 2 27B on a Mac. Native multi-token-prediction speculative decoding on Apple Silicon, exact at any temperature.
Downloads · 30 days
3.9K
54% of all-time downloads
All-time downloads
7.2K
Public
Parameters
27.4B
8.8 GB on disk
Likes
20
Public
Click a slice to open those files.
.safetensors8.8 GB · 100%
How the weights are stored.
U3226.9B · 98%
From the Hugging Face model README
MTPLX: the fastest way to run Ternary Bonsai 2 27B on a Mac. Native multi-token-prediction speculative decoding on Apple Silicon, exact at any temperature.
Prism ML ternary 27B model with vision and MTP. Compact weights for smaller Macs.
Prism ML's Ternary Bonsai 2 27B is Qwen 3.8 27B rebuilt with ternary weights, and Prism ML reports it keeps 98.2 percent of the full model's benchmark average in 8.85 GB. On MTPLX it runs on GPU kernels written for it, with the Qwen 3.8 27B multi-token-prediction head drafting ahead. That makes it faster than the 4-bit Qwen 3.8 27B in half the memory. It reads images, and it runs on a Mac with 16 GB.
Prism ML's own figure for Bonsai 2 27B on an M5 Max with MLX is 46.8 tok/s. On MTPLX the same chip decodes it at 64.4 tok/s after a 4,061-token prompt.
This is the Bonsai 2 27B MLX pack for MTPLX, the fastest way to run Bonsai 2 on a Mac. MacBook Pro M5 Max with 128 GB, sampled at the model's own settings (temperature 1.0, top-p 0.95, top-k 20), thinking off, 512 generated tokens, one model loaded at a time.
| Prompt | Bonsai 2 27B Optimized Speed | Qwen 3.8 27B Optimized Speed | Peak memory, Bonsai and 27B |
|---|---|---|---|
| 4,061 tokens | 64.4 tok/s | 52.6 tok/s | 11.4 and 23.9 GB |
| 16,350 tokens | 57.1 tok/s | 51.0 tok/s | 14.6 and 27.0 GB |
Runs on Apple Silicon Macs with 16 GB of unified memory or more. From MTPLX 2.12.0 it is the first recommendation on M3, M4 and M5 Macs with 16 to 31 GB.
| Download | 8.85 GB |
| Peak while serving | 11.4 GB at a 4K prompt, 14.6 GB at 16K |
| Recommended Macs | 16 GB+ unified memory (18 GB+ for agent clients such as OpenCode) |
| Context window | 8,192 tokens on 16 GB, 20,480 on 18 GB, 94,208 on 24 GB, up to 262,144 |
| MTP depth | 1 |
| Reasoning effort | medium by default, xhigh available |
| Sampling | temperature 1.0, top-p 0.95, top-k 20 |
The serving contract ships inside mtplx_runtime.json. MTPLX reads it on
load. Drafts are accepted with the probability-ratio rule plus residual
resampling, so the output follows the model's own distribution at any
temperature.
Mac app (MTPLX 2.12.0 or later): download at mtplx.com, pick "Bonsai 2 27B Optimized Speed".
Command line (MTPLX 2.12.0 or later):
pip install mtplx
mtplx serve --model Youssofal/Ternary-Bonsai-2-27B-MTPLX-Optimized-Speed
Siblings: Qwen 3.8 27B Optimized Speed (the 4-bit 27B, for Macs with 32 GB or more) and MiMo V2.6 Qwen 9B Optimized Speed.
Base model: prism-ml/Ternary-Bonsai-2-27B-mlx-2bit,
built from Qwen/Qwen3.8-27B
(Apache 2.0; LICENSE and NOTICE.txt in this repo). Created using Bonsai by
Prism ML.