S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
local-ai 2026-11-25

Run a 27B Coding Agent Locally: Bonsai 2.5 Install in 3 Commands

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.

Before you start

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.

WHAT YOU NEED card listing 64-bit Ubuntu 24.04 plus git, gcc, and curl, about 8 GB of free disk with no account and no GPU, Apache 2.0 code and weights free for commercial use, and the note that vendor speed claims are vendor-reported with the video's own timing check to come later
WHAT YOU NEED card listing 64-bit Ubuntu 24.04 plus git, gcc, and curl, about 8 GB of free disk with no account and no GPU, Apache 2.0 code and weights free for commercial use, and the note that vendor speed claims are vendor-reported with the video's own timing check to come later (Still from the walkthrough video.)

Install the demo

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.

Then 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.

Then 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.

Pull the model

The 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.

Simulated terminal showing ./setup.sh downloading the GGUF Bonsai-2.5-27B PQ2_0-mtp build with 2 files fetched, the model download complete, llama.cpp ready, and a 7 GB model with checksums verified, with the on-screen note that the terminal output is recreated from the test run and the download shortened
Simulated terminal showing ./setup.sh downloading the GGUF Bonsai-2.5-27B PQ2_0-mtp build with 2 files fetched, the model download complete, llama.cpp ready, and a 7 GB model with checksums verified, with the on-screen note that the terminal output is recreated from the test run and the download shortened (Still from the walkthrough video.)

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.

Ask it to work and verify

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.

The 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.

Verify 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.

Simulated terminal showing the run header with build b12178-03ec600 and PQ2_0 model type, the direct-answer run command with thinking disabled answering ls -S with head -n 5, and the timing line at 5.5 prompt and 2.3 generation tokens per second, with the on-screen note that the terminal output is recreated from the test run
Simulated terminal showing the run header with build b12178-03ec600 and PQ2_0 model type, the direct-answer run command with thinking disabled answering ls -S with head -n 5, and the timing line at 5.5 prompt and 2.3 generation tokens per second, with the on-screen note that the terminal output is recreated from the test run (Still from the walkthrough video.)

Check the official source

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.

Watch the walkthrough

Watch on YouTube

Webster the press owl — click to chat