
This companion guide follows the video Run a 27B Coding Agent Locally: Bonsai 2.5 Install in 3 Commands, a 129-second walkthrough that installs Ternary Bonsai 2.5 27B on Ubuntu 24.04 with the official setup script and gets a real coding answer out of it on CPU, with no cloud and no subscription.
This is a companion to that video, and it keeps video claims separate from added research. The steps below follow the video order and match a sandbox run proven on Ubuntu 24.04 x86_64 on 2026-11-25, with exact commands and outputs quoted from the production notes. Background such as benchmark figures comes from the linked primary sources, not from the video frames. Note the video discloses on screen that its terminal frames are rendered stills recreating real test-run output, never presented as live footage. I did not re-run these steps while writing this guide, so treat every step below as untested on your machine until you verify it yourself.
You need 64-bit Ubuntu 24.04 with git, gcc, and curl, plus about 8 GB of free disk for the model and tools. There is no account, no token, no subscription, and no GPU required. Both the demo code and the model weights are Apache 2.0 licensed, which the video states means free for commercial use. Speed numbers from the vendor are vendor-reported only. The video's own timing check comes later and is one short local run, not a benchmark.

These steps match the sandbox-verified run on Ubuntu 24.04 x86_64. First install the build tools, which needs root as on any standard Ubuntu setup.
sudo apt-get install -y git gcc curlThen clone the official demo repo and step inside. The taught path below uses your home directory, the standard non-root equivalent of the tested setup.
git clone https://github.com/PrismML-Eng/Bonsai-demo.gitcd Bonsai-demoThen run the setup script. It checks your system tools, installs its own Python with uv, fetches the matching model runner, and reports ready. In the sandbox run, setup exited 0 and ended with Setup complete! (BONSAI_FAMILY=bonsai25 BONSAI_MODEL=27B), with [OK] No GPU detected -> using CPU build (x64). That completion line is what success looks like.
./setup.shThe script picks the right model file for your machine. On a box with no GPU that is the PQ2_0-mtp ternary build, about 7 GB, with checksums verified. In the sandbox run the download fetched 2 files (Fetching 2 files: 100% | 2/2), landed them in models/bonsai25-gguf/27B/, and reported [OK] Model download complete. followed by [OK] llama.cpp is ready!. On disk that is Ternary-Bonsai-2.5-27B-PQ2_0-mtp.gguf (about 7.0 GB) plus the mmproj-Q8_0 projector file, roughly 8 GB total with the runner binaries.

The demo auto-selects CUDA binaries on NVIDIA boxes, but those need the CUDA runtime installed. On driver-only boxes the CPU build is the working path, which is what was proven here. The CUDA path was not exercised in the sandbox run, so treat it as untested.
Now make it work with a one-shot coding prompt. The BONSAI_CTX=4096 prefix caps the context for smaller boxes, since the default 262144 context is memory-unaware. Raise it only if you have RAM to spare. Smaller downloads exist (BONSAI_MODEL=4B, with 2B/4B/9B/27B available), but only the default 27B was exercised.
BONSAI_CTX=4096 ./scripts/run_llama.sh -p "Write a bash one-liner that lists the five largest files in the current directory. Output only the command, nothing else." -n 512The model thinks out loud first, and that thinking trace is your proof it is reasoning rather than reciting. A shorter direct run disables the thinking template and answers with just the one-liner, which in the sandbox run was ls -S | head -n 5.
BONSAI_CTX=4096 ./scripts/run_llama.sh -p "Write a bash one-liner that lists the five largest files in the current directory. Output only the command, nothing else." --chat-template-kwargs '{"enable_thinking": false}' -n 128Verify it your way. The run header names the exact model file and the CPU build (build: b12178-03ec600, ftype: PQ2_0 - 2.13 bpw), and the timing line shows a few tokens a second on CPU. In the sandbox run that line read [ Prompt: 5.5 t/s | Generation: 2.3 t/s ]. Slow, but local and private, and that is one short run on a shared node, not a benchmark. Need the chat server instead: one script starts it on localhost:8080, where /health returning {"status":"ok"} means it is serving.
BONSAI_CTX=4096 ./scripts/start_llama_server.sh
The video points to the official Bonsai-demo repo and its Quick Start: the same three commands above come straight from the docs. The model weights live in the prism-ml/Ternary-Bonsai-2.5-27B-GGUF repo, ungated under Apache 2.0, and the release was announced in the Introducing Ternary Bonsai 2.5 27B post on November 24, 2026. Day-one discussion is in the Hacker News thread. Vendor-reported figures there (75.6 on SWE-bench Verified, 60.1 on Terminal-Bench 2.1, 90.5 on AppWorld, 204 tokens per second on an RTX 4090) are vendor claims, aired with that label and never as tested fact.
One compatibility note from the sandbox run, recorded here and not in the video: pulling this model through Ollama failed in testing (unsupported tensor "output.weight" size overflows on Ollama v0.40.18, whose bundled runner predates the ternary format). Use the official demo path above. MTP drafting, MCP tools, vision, and Open WebUI are named in the docs as next steps and were not exercised, so they stay untested.
Related viewing on https://s-scottek.com: the Unsloth Studio computer-use guide and the LM Studio install and first-chat guide cover the same local-AI-on-your-hardware lane from different angles.