Ternary-Bonsai-2.5-27B: a multimodal 27B model with extreme compression down to 6 GB and a 262K context
2 min readupdated
This model is a heavily compressed version of the Qwen3.8-27B architecture, optimized to run on standard consumer and cloud GPUs without losing core capabilities. Thanks to 1.58-bit ternary quantization (PTQ1_0), the model weights shrank from 53.8 GB to a modest 5.99 GB while retaining a native 262,144-token context, multimodal image understanding, and strong reasoning skills. The model comes in ready-to-use GGUF formats with support for fast deployment via Colab and CLI scripts.
Key features
- Extreme compression: the model weighs just 5.99 GB instead of 53.8 GB thanks to ternary weights {-1, 0, +1}.
- Native multimodality: support for image analysis via specialized vision projectors (mmproj).
- Massive context: work with a window of up to 262K tokens on standard GPUs thanks to KV-cache compression.
- Built-in MTP: some variants include Multi-Token Prediction to speed up text generation by 1.5 to 1.8 times.
What you can do
- Run a heavy 27B multimodal model on a free or standard GPU in Google Colab.
- Analyze images and upload documents using the Q8_0 vision projector optimized for lower VRAM consumption.
- Process long texts and codebases thanks to the massive context window and KV-cache quantization (TurboQuant / WHT).
Example
# Запуск генерации текста с помощью скачанной модели через кастомный CLI
system_prompt = "You are an insightful, highly articulate AI assistant."
prompt = "Explain quantum computing using an accessible everyday metaphor."
!{cli_bin} \
-m "{model_path}" \
-ngl 99 -fa on \
-c 8192 \
-sys "{system_prompt}" \
-p "{prompt}" \
--temp 0.7 --top-p 0.8 --top-k 20 --min-p 0 --presence-penalty 1.5 --repeat-penalty 1.0 \
-n 2048 \
--reasoning off
Read more
DetailsBase model: Qwen3.8-27B
File size (PTQ1_0): ~5.99 GB
Supported context: up to 262,144 tokens
License: Apache 2.0










Comments