TabbitBlog

Run Ternary Bonsai 2.5 27B Locally: GGUF and VRAM

Choose the correct GGUF format and runtime, and estimate the memory beyond the model file.

In this article
  1. Key takeaways
  2. Choose the GGUF and runtime together
  3. Estimate disk and memory before fetching weights
  4. Run the upstream Q2_0 file
  5. Run the PrismML file if your backend supports it
  6. Make a repeatable first-run record
  7. Add context, vision and tool calls in that order
  8. Use a result to pick the next adjustment

Yes, you can run Ternary Bonsai 2.5 27B locally if you match the GGUF file to a compatible runtime and have room for weights, context cache and buffers. Use the Q2_0 file with upstream llama.cpp build b11556 or newer for a straightforward upstream setup. Pick PTQ1_0 or PQ2_0 if you intend to use PrismML's binaries. All three contain the same model family in different packings. PrismML deployment guide

The smallest official file is PTQ1_0 at 5.93 GB. It requires PrismML's runtime. Upstream users should budget around 7.6 GB of disk space for Q2_0 before adding cache or other files. PrismML specifically warns that older upstream builds can open Q2_0 and produce bad text without a useful warning. That makes a verified response as important as a successful load. In the LocalLLaMA release discussion, a contributor published results over repeated tasks on one laptop and disclosed involvement in the framework. That is a useful reporting example and applies to that specific setup.

Key takeaways

  • Choose Q2_0 for upstream llama.cpp b11556 or later. Confirm the version of the actual binary that opens the file.

  • Choose PTQ1_0 for the smallest official file with a compatible PrismML binary. PQ2_0 is a separate PrismML file, so follow the supported backend guidance for your machine.

  • Budget around 5.93, 7.2 or 7.6 GB of disk for the text weights, depending on packing. Measure runtime memory and leave room for the browser and OS.

  • Start with text and a small context. Add one image via the matching mmproj file after validating text.

  • The MTP artifact can be tested as a separate deployment. Start with the plain file so speculative decoding does not complicate troubleshooting.

Choose the GGUF and runtime together

FileApproximate weight sizeRuntimeWhen to start here
Ternary-Bonsai-2.5-27B-PTQ1_0.gguf5.93 GBPrismML llama.cpp binariesYou need the smallest supplied weights and can use the supported fork
Ternary-Bonsai-2.5-27B-PQ2_0.gguf7.2 GBPrismML llama.cpp binariesYour chosen backend and Prism instructions use this packing
Ternary-Bonsai-2.5-27B-Q2_0.gguf7.6 GBUpstream llama.cpp b11556 or laterYou want an upstream build and have extra weight space
Separate vision projectorCheck the current repository fileMatching image-capable runtimeAdd only for image input
MTP filesCheck the current MTP repositoryCheck PrismML's speculative-decoding instructionsCompare after verifying a plain model

The size column describes the weight files. The runtime maps model data, creates work buffers and can allocate cache based on configured context and parallel requests. The version rules are specific to this release. A frontend that imports a GGUF may ship an older llama.cpp binary. Verify that embedded build in its own logs or documentation. Official GGUF repository and PrismML format and deployment guide

Estimate disk and memory before fetching weights

Disk is the easiest capacity to confirm. Allow the weight file, the download cache, any imported copy and the visual projector if you need it. Pick one file first. Keeping all three packings may use more disk and make it easier to launch the wrong one. Save the exact filename and repository revision. That also lets you tell whether a later update changed your deployment.

Runtime memory depends on where the engine places the file's tensors and working allocations. On a discrete GPU, check free VRAM with your normal desktop applications and record whether part of the model remains on the CPU. For example, 7.6 decimal GB is about 7.08 GiB before any cache and buffers. An 8 GiB GPU with a desktop already consuming memory may have very little room left. Treat it as a machine to measure, especially if you want a long context or all layers on the GPU. On Apple silicon, use total memory pressure and swap alongside the process's reported allocation.

Peak ≈ device-resident weights + active KV cache + work buffers
       + visual buffers when in use + other programs on that device

The cache and buffers are configuration-specific. Look for separate allocation lines in llama.cpp's logs and check them at two context sizes with one request. Measure after load and after a representative prompt. Changing context and offload together makes it hard to see which control did what. If a model loads with some layers on the CPU, measure memory there and the time until a complete validated response. A system that needs to swap heavily can start generating and still be unsuitable for interactive work. Local browser automation explains which resources a browser workflow also uses.

Run the upstream Q2_0 file

Install llama.cpp from a trusted upstream release or build whose reported version is b11556 or newer. The runtime must match your backend for acceleration. A supported CPU build gives you a small correctness baseline if GPU setup is uncertain. The project documents prebuilt packages and compilation options. llama.cpp upstream repository and PrismML Q2_0 guidance

Use the following procedure with the Hugging Face CLI installed and llama-cli on your path. The download command fetches a multi-gigabyte file. The launch uses a small context and zero GPU layers (-ngl 0) for a simple correctness check. Increase those settings only after you verify the result. These commands are adapted from vendor instructions. They were not executed for this article.

llama-cli --version
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 0 -c 4096 \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
  -p "Compute 7 plus 5. Give the result as a number." -n 1024

Confirm that the expected filename appears in the load log and that the response arrives with 12. If the build enters a conversation mode, send the same question as the first message and exit after reviewing the answer. The small context and output cap here are for a smoke test. The vendor's longer examples use different values. A response truncated by the token cap is a useful separate case. Increase the cap only when you have memory headroom and know why it ended. Do not compare tokens per second from this CPU-oriented check with a tuned GPU run.

After it passes, retry with GPU acceleration supported by the binary. Use the GPU layer option recommended by the runtime, check the allocation plan, and start with the same prompt and context. If all GPU layers fail to fit, reduce the offloaded layers or use a checkpoint/backend that fits. Keep CPU and GPU results in different rows. If a matched Q2_0 file yields nonsense, check the exact version reported by the process before adjusting sampling. PrismML's warning makes that the first check. Official runtime support

Run the PrismML file if your backend supports it

Get the PrismML binary that corresponds to your OS and acceleration backend using the link in PrismML's guide. Keep it in its own directory so the system path cannot accidentally call upstream. Compare the version and launcher location before fetching a file. For PTQ1_0, choose the documented binary and the official file with the exact suffix. For PQ2_0, change both the selected documented path and the filename where required by the target backend.

The example below uses an explicit binary path. Substitute the actual path on your machine after extracting or building it. Keep prompt, context and offload arrangement comparable in any measurement. The short launch retains the official GPU layer and flash-attention options. Use it on the documented matching backend. PrismML runtime and launch examples

./llama-cli --version
hf download prism-ml/Ternary-Bonsai-2.5-27B-GGUF Ternary-Bonsai-2.5-27B-PTQ1_0.gguf --local-dir .
./llama-cli -m ./Ternary-Bonsai-2.5-27B-PTQ1_0.gguf -ngl 99 -fa on -c 4096 \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 \
  -p "Compute 7 plus 5. Give the result as a number." -n 1024

If your binary rejects an unknown type, check whether it is upstream and whether the suffix is PTQ1_0 or PQ2_0. Both packings require the PrismML runtime. If the smoke check succeeds, save a log showing the reported file and the memory used. Add acceleration at fixed context and record any performance change. A first result of 12 only proves this request completed. When comparing a local setup with another model for coding, use a fixed repository and a verifiable change. See Qwen3.8-27B browser tasks for a separate model workflow.

Make a repeatable first-run record

Keep one record per run even if the model never answers. Capture the OS, GPU and driver, the exact binary path and version, the selected GGUF revision, and the launch options. Record the operating system's free memory before launch. Once the runtime prints its load plan, save how many layers were assigned to the accelerator, where the cache was allocated, and whether the memory was reserved at startup or changed during the request.

For the first trial, verify a short arithmetic answer. Add a second constrained trial so an apparently successful run offers more evidence. For example, supply the text "Plan Birch, 17 credits, region North" and ask for a JSON object containing the three visible fields and one missing field for expiration. Grade the content by hand once. Check that 17 is a number, North is the region, and the model left expiration empty. Log a parse error if extra reasoning or Markdown prevents the client from reading the object. That result tells you whether the prompt and chat template behave as expected. An exact result on two tiny requests is enough to proceed to an application trial, not enough evidence to pick a quant for every task.

Run the same two inputs when changing from CPU processing to GPU processing. If one binary reports invalid text and the other gives a correct answer, keep both version strings in the record. When doing work on a browser, restart the test after changing the frontend or adapter because it may use a different binary or prompt template.

Add context, vision and tool calls in that order

Increase context after the text run is stable. Measure a short turn, then run a request with a representative prompt and increase the context limit one step. Observe the cache lines and memory pressure. If you need concurrent chats, test your expected concurrency in a separate run. Changing the number of live sessions can affect both cache and latency. Keep the downloaded quant fixed for this comparison.

For images, obtain the mmproj file identified by PrismML in the same repository and use the documented --mmproj option. Test with a fictional screenshot containing a visible ID, a date and a missing field. Ask for the ID and date verbatim and an explicit missing value. If the text answer works and the image fails, check the projector, path, MIME type and actual server request before increasing context. PrismML vision instructions and browser versus screen control

Try the MTP file only after you have a plain baseline. PrismML says the MTP file already includes a draft head and its speculative mode needs compatible binaries and flags. Start one separate service with the MTP variant so the same endpoint does not silently point to the baseline model. Measure time, output and memory in the same task before drawing a conclusion about your hardware. MTP notes

A browser task still needs a browser connection, permissions and a client that uses the model's structured responses. Connect the endpoint only after the text and image requests that you need work. Start with a read-only browser task and ask for an exact known value from a fictional page. Save a real call and returned value as well as the answer. For this stage, the first browser task checklist, MCP and CLI guide and agent-to-browser connection guide address different pieces of the setup.

Use a result to pick the next adjustment

Symptom or machineFirst actionResult to save
Q2_0 loads but returns scrambled textConfirm upstream b11556 or newer in the actual processVersion, filename, fixed prompt and output
Unknown tensor type with PTQ1_0 or PQ2_0Verify the PrismML binary path and backendBinary location and type error
8 GiB dedicated GPU or constrained memoryStart with small context and measure free memory and offloadVRAM, host RAM, context, time and correctness
Text works but image failsConfirm matching projector and actual request payloadArtifact pair, image receipt and answer
Short prompt works, long prompt stopsCheck context, generation cap and cache allocation separatelyTermination reason and peak allocation
Tool answer looks right but lacks a callCheck structured response, execution receipt and returned stateComplete trace through the browser

If you need an independent run sheet, fix simple inputs and record the result when you change a single configuration. Browser prompt templates help keep task inputs stable. For local web tests, the local web app validation guide shows where to capture the evidence. Count load and correction time if you compare these builds for regular work. Cost per successful task

Use upstream Q2_0 if you prefer mainstream llama.cpp compatibility. Use PTQ1_0 when compact weights are worth the extra setup and your machine supports the published PrismML path. Pick PQ2_0 when its backend path fits your hardware. In every case start by confirming a correct fixed answer and measuring memory with the desktop open. Test longer context, screenshots or browser tools only after the plain checkpoint passes.

FAQ

Which Bonsai GGUF works with upstream llama.cpp?

Choose Q2_0 with b11556 or newer. Older builds can load these weights and produce invalid text.

Can an 8 GiB GPU run Bonsai 2.5 27B?

It depends on format, remaining VRAM, cache and offload. Test a short context and verify both output and peak memory.

Can I open PTQ1_0 or PQ2_0 in standard llama.cpp?

Both require PrismML's supported binaries. Check the exact path and backend if you see an unknown tensor type.

How do I enable images?

Use the matching mmproj from the official repository and a compatible image runtime. Verify a small image after text works.

When should I try the MTP file?

Verify the plain checkpoint first. Then measure MTP in a separate service with the documented speculative options.

Take the next step

Let Tabbit work alongside you.

Research across tabs, automate repetitive browser work, and keep every piece of context within reach.