Skip to content

Support Ternary Bonsai 2.5 27B - #857

Open
linson007 wants to merge 1 commit into
incoai:mainfrom
linson007:bonsai-2.5-27b
Open

linson007 wants to merge 1 commit into
incoai:mainfrom
linson007:bonsai-2.5-27b

Conversation

@linson007

@linson007 linson007 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Closes #852.

What

Adds Prism ML's Ternary Bonsai 2.5 27B to the models Splash suggests and documents its support.

Bonsai 2.5 keeps Bonsai 2's qwen35 architecture and rotated PQ2_0 GGUF format, so the engine path is unchanged:

  • Its GDN ssm_alpha/ssm_beta are F32 instead of BF16; the loader already carries both as F32.
  • Its PQ2_0-mtp file declares one extra prediction block; the planner already leaves declared prediction blocks unread, and Splash decodes with the Qwen3.8-27B DFlash2 draft.
  • Its BF16 vision projector has the same structure as Bonsai 2's.

Changes

  • Adds prism-ml/Ternary-Bonsai-2.5-27B-GGUF:PQ2_0 to install/suggested-models.tsv for the desktop app and shell completion.
  • Updates the README and docs/models.md.
  • Adds a selection test covering the plain and -mtp files.
  • Does not add PTQ1_0 (type 143 is unimplemented), Q2_0 (the rotated token table must be PQ2_0), or the MLX 2-bit pack (Prism's safetensors Hadamard rotation is not implemented).

Testing

On a 24 GB M4 (10 GPU cores), macOS 27:

  • make check-source — pass.
  • make check-python — 1854 tests passed, 8 skipped; ruff check and format pass.
  • splash serve --model prism-ml/Ternary-Bonsai-2.5-27B-GGUF:PQ2_0 — downloads, installs the DFlash2 draft and BF16 vision projector, loads in about 4.5 s, context 8K.
  • Greedy completion What is 84 * 3 / 2? returned 126 with finish_reason: stop.
  • test-real vision parity — pass.
  • Native runtime oracle core run — pass (constrained lanes, branched paths, mixed steps, no-lane rows, budget masks, cold-cache and state checks, preemption). The remaining four release variants were stopped because each takes about 40 minutes on this 10-core M4.
  • test-http-real — pass: chat, streaming, tools, structured output, thinking budget, Responses, Anthropic Messages, images, PDF, judgments, cache reuse, and timeout recovery (http smoke: PASS).

Ternary Bonsai 2.5 keeps Bonsai 2's qwen35 architecture and rotated
PQ2_0 GGUF format. Its GDN alpha/beta are F32 instead of BF16, which the
loader already carries as F32, and its PQ2_0-mtp file's extra prediction
block is planned as unread. Splash serves it with the Qwen3.8-27B DFlash2
draft and its BF16 vision projector.

- Suggest prism-ml/Ternary-Bonsai-2.5-27B-GGUF:PQ2_0 in the desktop app and
  shell completion.
- Document the F32 alpha/beta, the ignored MTP head, and that only PQ2_0 is
  served (PTQ1_0's type is unimplemented; Q2_0's token table is not PQ2_0).
- Cover the repository's plain and -mtp file selection.

Tested on a 24 GB M4 (10 GPU cores): the model downloads, loads, serves
greedy and constrained requests, and its vision parity passes; make
check-python passes 1854 tests with 8 skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Ternary Bonsai 2.5 27B

1 participant