Downloads · 30 days
311
10% of all-time downloads
Rahim/Ternary-Bonsai-27B-dspark
Ternary-Bonsai-27B-dspark is a machine learning model from Rahim. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as apache-2.0.
The DSpark speculative-decoding drafter for prism-ml/Ternary-Bonsai-27B-mlx-2bit, converted to a standard safetensors checkpoint in the DeepSpec standalone layout.
Downloads · 30 days
311
10% of all-time downloads
All-time downloads
3.1K
Public
Parameters
3.6B
7.3 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors7.3 GB · 100%
From the Hugging Face model README
The DSpark speculative-decoding drafter for prism-ml/Ternary-Bonsai-27B-mlx-2bit, converted to a standard safetensors checkpoint in the DeepSpec standalone layout.
PrismML publishes this drafter GGUF-only
(Ternary-Bonsai-27B-dspark-bf16.gguf
— no safetensors export exists upstream). This repo is a 1:1, lossless repack of that file:
tensor names remapped from llama.cpp/GGUF names back to the original HF Qwen3DSparkModel
export layout (the exact inverse of PrismML's own conversion/dspark.py), all weights kept at
their source precision (BF16), plus a synthesized DeepSpec-style config.json from the GGUF
metadata. No weights were modified, quantized, fine-tuned, or otherwise altered.
A 3.6B-parameter EAGLE-style block-diffusion drafter (DeepSpec DSpark lineage), trained by PrismML against the ternary Bonsai-27B target:
[1, 16, 31, 46, 61] (of 64)Drafters are target-specific: this one only accelerates the ternary Bonsai-27B. The 1-bit variant has its own matched drafter.
Speculative decoding for Bonsai-27B on Apple Silicon — output is lossless (byte-identical to plain greedy decoding of the target; temperature sampling is an exact sample from the target):
pip install mlx-dspark # needs mlx >= 0.32.0
mlx-dspark generate --model prism-ml/Ternary-Bonsai-27B-mlx-2bit \
--max-draft auto --prompt "Implement binary search in Python."
mlx-dspark resolves this drafter automatically for the
Bonsai targets; --max-draft auto calibrates the speculation depth to your machine and content
(measured on an M4 Pro: ≈1.1–1.2× on code/structured output; it parks itself on content where a
2-bit target's fast plain step can't be beaten). The drafter is quantized to 4-bit at load
(≈2 GB resident; drafter precision does not affect acceptance).
All weights were trained and released by PrismML under Apache 2.0
as part of the Bonsai 27B family
(ternary/1-bit rebuilds of Qwen3.6-27B). This repo only changes the container format.
Conversion: gguf_convert.py.