Unofficial conversion of prism-ml/Ternary-Bonsai-2.5-27B-GGUF
(Ternary-Bonsai-2.5-27B-PQ2_0-mtp.gguf) into the same safetensors layout as the vLLM-format Bonsai 2 27B
(quant_method: prism_ternary, int32-packed ternary codes + FP16 group scales, g128, blockwise Hadamard basis).
The ternary weights are not re-quantized: codes and scales are copied bit-for-bit from the GGUF.
| Part | Source |
|---|---|
| Language model (64 blocks), embedding, lm_head | Bonsai 2.5 GGUF (PQ2_0) |
MTP draft head (mtp.*) |
Bonsai 2.5 GGUF (blk.64.nextn, Q4_0 dequantized to BF16) |
Vision tower (model-vision.safetensors) |
Qwen3.8-27B vision tower in BF16 (same as the Bonsai 2 vLLM setup), not the 2.5 mmproj |
| Tokenizer / config | Same as Bonsai 2 27B |
prism_ternary (Bonsai 2 27B on vLLM). Setup used here:
https://github.com/Nakanokensetsu/bonsai-27b-wsl-tp2 (vLLM 0.34, TP=2 on 2× 12 GB).
Point the model directory to this repo instead of the Bonsai 2 one; nothing else changes.gdn_v_grouped); the converter restores HF order.conv_gguf_pq2.py + gguf_min.py (included):
TEMPLATE_DIR=<vLLM-format Bonsai 2 27B dir with mtp.* and vision> \
python conv_gguf_pq2.py Ternary-Bonsai-2.5-27B-PQ2_0-mtp.gguf <out_dir>
Requires prism_ternary (for the Hadamard helpers) and torch/safetensors/numpy.
License: Apache-2.0, following the original model. All credit to PrismML.
model-00003-of-00003.safetensors 3.7 GBmodel-00002-of-00003.safetensors 3.3 GBmodel-00001-of-00003.safetensors 3.3 GBmodel-vision.safetensors 921 MB