Bonsai-2.5-27B-1.75bit-JANG
JANG bundle of prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bit, Prism ML's agentic Ternary Bonsai 2.5 27B (built on Qwen3.8-27B). The language model is a lossless repack of Prism's ternary weights, stored at 1.75 bits per weight (dense trits: 26 bytes + one fp16 scale per 128 weights) and expanded losslessly at load. The vision tower and the MTP draft head are Prism's own tensors, unchanged. Same quality as the source pack.
Runtime: Osaurus 1.0.13 or newer.
Bundle
| Property | Value |
|---|---|
| Architecture | Dense Qwen3.8-27B vision-language model (64 blocks: 48 GatedDeltaNet + 16 full attention) |
| Text weights | ternary {-s, 0, +s}, group size 128, exact; 1.75 bpw dense-trit storage, expanded at load |
| Weight basis | blockwise Hadamard rotation (block 1024, explicit signs), applied to activations at runtime |
| Vision tower | float16, byte-identical to the Prism pack |
| Speculative decoding | Prism MTP v2 draft head included (4-bit, shares the embedding and output head) |
| Weight shards | 6.688 GiB |
| Context | 262,144 tokens |
| Modalities | text, image, video |
The bundle carries the original tokenizer, the Qwen3.8 chat template (thinking, reasoning_effort, tools), image and video processor configs, Prism's hadamard.json, and the source license and notice. EOS is <|im_end|> (248046).
Usage
- Thinking is on by default.
reasoning_effort:xhigh(default, most accurate) ormedium(shorter). The template also acceptslow, but Prism notes it behaves close toxhigh. - Sampling (Prism / Qwen3.8 recommendation): thinking
temperature 1.0, top_p 0.95, top_k 20, min_p 0; instructtemperature 0.7, top_p 0.80, top_k 20, presence_penalty 1.5. - Tool calls use the Qwen3.8 XML function format (
qwen3_coder); reasoning uses<think>blocks. - Turn on speculative decoding (On, Adaptive) to use the MTP head. Every draft is checked by the full model before it is accepted.
Verification (2026-11-24, Apple M5 Ultra)
| Gate | Result |
|---|---|
| Logit parity vs Prism's reference loader | PASS: argmax agreement 1.0 at every position on 4 prompts, identical greedy continuations |
| Weights | 2,057 language tensors and 333 vision tensors byte-identical to the Prism pack (plus 31 MTP head tensors) |
Text, thinking off / on (medium) | PASS: Paris; closed think block with 391 |
| Multi-turn | PASS: exact code-word recall and combination |
| Long context | PASS: fact recalled from a 10,662-token prompt |
| Image / OCR | PASS: shapes and colors; exact OCR of overlaid text |
| Video | PASS: red frames then blue frames |
| Tool calling | PASS: get_weather call emitted, tool result folded into the answer |
| MTP speculative decoding | PASS: drafts verified by the full model; in 8 greedy repeats per prompt, code and prose matched plain decoding exactly, and a long story prompt split at one near-tie token in some repeats (batched verification numerics, not a weight change) |
| 1.75-bit vs ternary bundle | PASS: all 402 expanded modules and logits bit-identical |
License and attribution
Apache-2.0. See LICENSE and NOTICE.txt. This repository is a repacked conversion of Prism ML's Ternary Bonsai 2.5 27B; the weights are Prism ML's work.