Premium Content Waitlist Banner

Digital Product Studio

Ternary Bonsai 2.5 on 8 GB VRAM: Setup and Settings Guide

An Nvidia graphics card, the kind of hardware used to run local AI models

Ternary Bonsai 2.5 is a 27-billion-parameter language model that takes up about 6 GB. That is small enough to try on an 8 GB graphics card. This guide shows which file to pick, how to install it, and which settings keep it inside 8 GB.

Quick answer: Ternary Bonsai 2.5 27B is a free, Apache 2.0 model from PrismML, released on 24 November 2026. Download it from the official Hugging Face page. The easiest install is PrismML’s Bonsai-demo setup script. PrismML gives no official minimum VRAM. Owners of 8 GB cards report that it fits with one server slot and a 4-bit cache.

Table of Contents

Ternary Bonsai 2.5 at a Glance

What you need to knowDetails
What it doesChat, coding and tool-calling model built for agents; reads images with an extra file
MakerPrismML
Released24 November 2026
Based onQwen3.8-27B
SizeAbout 6 GB, against 53.8 GB for the full 16-bit model
Official sourceHugging Face model page
Works onWindows, Linux and Mac
LicenceApache 2.0, which allows commercial use
CostFree

What Is Ternary Bonsai 2.5?

Most small model files are made by rounding a big model’s numbers down to 4 or 5 bits each. Ternary Bonsai 2.5 goes much further. According to the model card, every weight is one of three values: minus one, zero or plus one. A shared scale is stored for each group of 128 weights. The result averages 1.76 bits per weight.

As a result, a 27-billion-parameter model shrinks to roughly the size of a 7-billion one. In addition, PrismML says the model was built for agents, meaning software that calls tools and writes code in several steps.

Which Ternary Bonsai 2.5 File Should You Download?

Ternary Bonsai 2.5 model page on Hugging Face showing the file sizes
The Ternary Bonsai 2.5 page on Hugging Face on 30 November 2026, with the file sizes listed on the right. Photo: screenshot of huggingface.co, taken by DigiAlps on 30 November 2026.

The download page lists several files. PrismML staff say on the model’s discussion board that they all hold the same weights. Only the packing and the speed differ. Therefore, answer quality should be the same.

FileSizeWhat runs it
PTQ1_05.99 GBPrismML’s llama.cpp fork only
PQ2_07.25 GBPrismML’s llama.cpp fork only
Q2_07.67 GBStandard llama.cpp, build b11556 or newer
mmproj (Q8_0 or BF16)629 MB or 931 MBOptional, adds image input

Files ending in “-mtp” add a faster drafting mode and need the fork. For an 8 GB card, PTQ1_0 is the one to use because it is the smallest. The model card also names it as the pick for Nvidia cards. However, the model card gives one warning: older standard builds load the Q2_0 file without any error and then produce garbage. Update first.

How to Install Ternary Bonsai 2.5 on Windows (Step by Step)

This route uses PrismML’s own setup script. It downloads the right fork and model for you, so there is less to get wrong. You need an Nvidia card, a current driver and Git.

  1. Open PowerShell and copy the setup project.
git clone https://github.com/PrismML-Eng/Bonsai-demo.git
cd Bonsai-demo
  1. Allow the script to run in this window only, then start the setup.
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\setup.ps1
  1. Start the server with a single slot. The next section explains why that matters.
.\scripts\start_llama_server.ps1 -np 1
  1. Open http://localhost:8080 in your browser. You should see a chat page.

Alternatively, if you would rather use standard llama.cpp, download the Q2_0 file and run it directly. This command is from the model card.

hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF Ternary-Bonsai-2.5-27B-Q2_0.gguf --local-dir .
llama-cli -m Ternary-Bonsai-2.5-27B-Q2_0.gguf -ngl 99 -fa on -c 32768 --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 -n 16384

Best Ternary Bonsai 2.5 Settings for 8 GB VRAM

PrismML publishes no minimum VRAM figure for Ternary Bonsai 2.5. The settings below come from the model card and from owners posting on the model’s discussion board. We have not yet tested them ourselves.

  • Use one slot. Add -np 1. The server can otherwise open four slots, each holding its own memory. The model card lists this as its one known issue. One owner of a 10 GB RTX 3080 reported use falling from about 9.5 GB to 7.8 GB.
  • Shrink the cache. Setting BONSAI_KV4=1 stores the conversation cache in 4 bits. The card puts that at about 1.8 GB for 100,000 tokens, against 6.3 GB normally.
  • Keep the context modest. The model accepts up to 262,144 tokens, but a long context costs memory. Start at 32,768.
  • Limit thinking. The model thinks at its highest effort by default. Add --reasoning-budget 2048 for faster answers. A medium effort setting also exists. The card says low effort is not supported.
  • Keep the image file off the card. If you use image input, --no-mmproj-offload keeps that file in normal memory.

One owner of an RTX 3070 with 8 GB, paired with 16 GB of system memory, shared this full set of flags on the discussion board. They reported a 64,000-token context at 42.7 tokens per second. However, treat it as a single user’s result.

--fit on --fit-target 300 -c 65536 -fa on -ctk q4_0 -ctv q4_0 -np 1 -b 64 -ub 64 --jinja --spec-type none --reasoning on

Does Ternary Bonsai 2.5 Work in Ollama, LM Studio or on a Mac?

  • Ollama: the model card shows ollama run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0. A user reports that the “Use this model” button on Hugging Face points to a different file that standard builds cannot run. Type the command by hand, with :Q2_0 at the end.
  • LM Studio: PrismML notes that apps like this ship their own engine. Whether it works depends on how new that engine is. We could not confirm it.
  • Mac: PrismML offers a separate MLX version of about 8.6 GB. Run ./setup.sh from Bonsai-demo, then ./scripts/start_mlx_server.sh.

How Good Is Ternary Bonsai 2.5?

These are PrismML’s own figures from the model card. We found no independent tests yet. Hugging Face showed 554,366 downloads in the model’s first week, so more should follow.

TestBonsai 2.5 (about 6 GB)Qwen3.8-27B full size (53.8 GB)
SWE-bench Verified75.680.6
Terminal-Bench 2.160.170.8
AppWorld90.593.2
Tool-calling average77.277.7

On PrismML’s numbers, the model gives up a few points on coding and almost nothing on tool calling, at about a ninth of the size.

For other models that run on modest hardware, see our guide to uncensored local AI models by graphics card and our walkthrough for running DeepSeek R1 locally.

Common Ternary Bonsai 2.5 Problems and Fixes

ProblemCauseFix
VRAM use far above the file sizeServer opened four slotsAdd -np 1 and set -b equal to -ub
Garbage output from the Q2_0 filellama.cpp build is too oldUpdate to build b11556 or newer
PTQ1_0 or PQ2_0 will not loadStandard llama.cpp cannot read themUse PrismML’s fork or switch to Q2_0
Ollama downloads the wrong fileHugging Face button points to PQ2_0Type the command with :Q2_0
Answers take very longThinking effort is at its highest by defaultAdd --reasoning-budget 2048

Ternary Bonsai 2.5: Frequently Asked Questions

Does Ternary Bonsai 2.5 run on 8 GB of VRAM?

Owners of 8 GB cards report that it does, using the PTQ1_0 file, one server slot and a 4-bit cache. PrismML states no official minimum.

Is Ternary Bonsai 2.5 free?

Yes. It is released under the Apache 2.0 licence, which also allows commercial use.

Which file works with standard llama.cpp?

The Q2_0 file, on build b11556 or newer. The smaller PTQ1_0 and PQ2_0 files need PrismML’s fork.

Is the quality different between the files?

No, according to PrismML staff. The files hold the same weights and differ only in speed and size.

Can Ternary Bonsai 2.5 read images?

Yes, in llama.cpp, when you also load one of the mmproj files.

Featured image: An Nvidia RTX 4090 graphics card (Asus ROG Strix), October 2022: Benlisquare, CC BY-SA 4.0, via Wikimedia Commons. The photo has been cropped.

Sources

SUBSCRIBE TO OUR NEWSLETTER

Stay updated with the latest news and exclusive offers!


* indicates required
Picture of Ali Mehdi
Ali Mehdi

Research is my hobby and I love to learn new skills. I make sure that every piece of content that you read on this blog is easy to understand and fact checked!

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Don't Miss Out on AI Breakthroughs!

Advanced futuristic humanoid robot

*No spam, no sharing, no selling. Just AI updates.

Ads slowing you down? Premium members browse 70% faster.