Install the command-line tools
If Git is not installed, run this in Terminal and finish the macOS installer.
Git downloadsxcode-select --installSelect a source-backed Bonsai 2 · 27B package, start the PrismML llama.cpp fork, then verify a multi-step reasoning answer locally.
| Machine | PTQ1_0 | PQ2_0 | CRACK PTQ1_0 | CRACK PQ2_0 |
|---|---|---|---|---|
| NVIDIA GPU 8 GB VRAM | CUDA; 8 GB VRAM works at short context. | 8 GB is tight at short context; 10–12 GB recommended. | Community PTQ1_0; same 5.95 GB fit, validate weights. | Community PQ2_0; 8 GB tight, 10–12 GB recommended. |
| NVIDIA GPU 10–12 GB VRAM | CUDA; comfortable at short context. | CUDA; recommended tier for 7.21 GB PQ2_0. | Community PTQ1_0; same fit, validate weights. | Community PQ2_0; recommended tier, validate weights. |
| NVIDIA GPU 16 GB VRAM | CUDA; ample VRAM for package plus context. | CUDA; ample headroom for longer context. | Community PTQ1_0; ample VRAM, validate weights. | Community PQ2_0; ample headroom, validate weights. |
| AMD Radeon GPU 16 GB VRAM (ROCm/HIP) | ROCm/HIP via PrismML fork; validate on your Radeon GPU. | ROCm/HIP via PrismML fork; validate on your Radeon GPU. | Community PTQ1_0; ROCm/HIP route needs your driver validation. | Community PQ2_0; ROCm/HIP route needs your driver validation. |
| Intel Arc GPU 12 GB VRAM (Vulkan) | Vulkan PTQ1_0 supported; some drivers fall back. | No native Vulkan PQ2_0 kernels; use PTQ1_0 or CPU. | Community PTQ1_0; Vulkan route same as official PTQ1_0. | No native Vulkan PQ2_0 kernels; use PTQ1_0 or CPU. |
| Apple Silicon 16 GB unified memory | Metal; 16 GB unified memory recommended minimum. | Metal; 16 GB unified memory recommended for 7.21 GB pack. | Community PTQ1_0; Metal route, validate weights. | Community PQ2_0; Metal route, validate weights. |
| Apple Silicon 8 GB unified memory | Not recommended; 16 GB unified memory is practical minimum. | Not recommended; 16 GB unified memory is practical minimum. | Not recommended; 16 GB unified memory is practical minimum. | Not recommended; 16 GB unified memory is practical minimum. |
| CPU system RAM 16 GB | CPU-only; 16 GB system RAM can run, 32 GB comfortable. | CPU-only; 16 GB RAM can run, 32 GB comfortable. | Community PTQ1_0; CPU-only same RAM guidance. | Community PQ2_0; CPU-only same RAM guidance. |
| CPU system RAM 32 GB | CPU-only; 32 GB RAM gives comfortable headroom. | CPU-only; 32 GB RAM gives comfortable headroom. | Community PTQ1_0; CPU-only same RAM guidance. | Community PQ2_0; CPU-only same RAM guidance. |
Memory and context figures are setup estimates, not measured benchmarks. Use the PrismML llama.cpp fork for packed Bonsai 2 weights.
| Machine | PTQ1_0 | PQ2_0 | CRACK PTQ1_0 | CRACK PQ2_0 |
|---|---|---|---|---|
| NVIDIA GPU 8 GB VRAM | 8192 tokens; short-context start, reduce if OOM. | 4096 tokens; 8 GB is tight, 10–12 GB recommended. | 8192 tokens; community weights, short-context start. | 4096 tokens; community PQ2_0, 8 GB tight. |
| NVIDIA GPU 10–12 GB VRAM | 16384 tokens; short-context start, headroom varies. | 16384 tokens; recommended tier, reduce if OOM. | 16384 tokens; community weights, same headroom caveat. | 16384 tokens; community weights, same headroom caveat. |
| NVIDIA GPU 16 GB VRAM | 32768 tokens; ample VRAM, reduce for longer prompts. | 32768 tokens; ample VRAM, reduce for longer prompts. | 32768 tokens; community weights, same headroom caveat. | 32768 tokens; community weights, same headroom caveat. |
| AMD Radeon GPU 16 GB VRAM (ROCm/HIP) | 16384 tokens; ROCm/HIP starting point, validate driver. | 16384 tokens; ROCm/HIP starting point, validate driver. | 16384 tokens; community weights, validate ROCm/HIP. | 16384 tokens; community weights, validate ROCm/HIP. |
| Intel Arc GPU 12 GB VRAM (Vulkan) | 8192 tokens; Vulkan PTQ1_0 start, reduce if fallback slows. | Unsupported Vulkan PQ2_0; use PTQ1_0 or CPU. | 8192 tokens; community PTQ1_0, same Vulkan caveat. | Unsupported Vulkan PQ2_0; use PTQ1_0 or CPU. |
| Apple Silicon 16 GB unified memory | 16384 tokens; 16 GB unified memory start, reduce if swap. | 16384 tokens; 16 GB unified memory start, reduce if swap. | 16384 tokens; community weights, same unified-memory caveat. | 16384 tokens; community weights, same unified-memory caveat. |
| Apple Silicon 8 GB unified memory | Not recommended; use 16 GB Apple Silicon row. | Not recommended; use 16 GB Apple Silicon row. | Not recommended; use 16 GB Apple Silicon row. | Not recommended; use 16 GB Apple Silicon row. |
| CPU system RAM 16 GB | 8192 tokens; 16 GB RAM start, 32 GB more comfortable. | 8192 tokens; 16 GB RAM start, 32 GB more comfortable. | 8192 tokens; community weights, 16 GB RAM start. | 8192 tokens; community weights, 16 GB RAM start. |
| CPU system RAM 32 GB | 32768 tokens; 32 GB RAM gives comfortable headroom. | 32768 tokens; 32 GB RAM gives comfortable headroom. | 32768 tokens; community weights, same RAM headroom. | 32768 tokens; community weights, same RAM headroom. |
Choose an official or source-linked Bonsai 2 · 27B package, select your operating-system route, and confirm a multi-step reasoning answer locally.
Select the weights you want. The instructions, downloads and settings change with your choice.
Save your machine in My Hardware to get an automatic starting choice. You can always choose any package yourself.
Estimated from 5.95 GB package size; 6 GB GPU needs CPU/RAM offload and 16 GB Apple Silicon is the practical minimum. These are setup estimates, not benchmarks.
Choose your computer first, then its GPU path. The instructions below update to match your selection.
Metal via PrismML llama.cpp fork; 16 GB unified memory recommended. 8 GB is not recommended because macOS and KV cache leave no headroom.
If Git is not installed, run this in Terminal and finish the macOS installer.
Git downloadsxcode-select --installIn Terminal create the working folder, clone the publisher demo, and enter its directory.
PrismML Bonsai demo PrismML llama.cpp forkmkdir -p "$HOME/YouRunAI-Ternary-Bonsai-2-27B"
cd "$HOME/YouRunAI-Ternary-Bonsai-2-27B"
git clone https://github.com/PrismML-Eng/Bonsai-demo.git
cd Bonsai-demoThe publisher setup installs the compatible llama.cpp fork binary. Skip the default PQ2_0 download, MLX and Open WebUI because the selected PTQ1_0 package is downloaded separately.
PrismML environment variable reference PrismML backend supportBONSAI_SKIP_GGUF=1 BONSAI_SKIP_MLX=1 BONSAI_OPENWEBUI=0 ./setup.shFetch Ternary-Bonsai-2-27B-PTQ1_0.gguf (5.95 GB) and the optional Q8_0 projector into a dedicated subfolder so other installed Bonsai packages are untouched.
mkdir -p "models/yourunai/official-ptq1"
curl -fL --progress-bar "https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/resolve/main/Ternary-Bonsai-2-27B-PTQ1_0.gguf?download=true" -o "models/yourunai/official-ptq1/Ternary-Bonsai-2-27B-PTQ1_0.gguf"
curl -fL --progress-bar "https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf/resolve/main/Ternary-Bonsai-2-27B-mmproj-Q8_0.gguf?download=true" -o "models/yourunai/official-ptq1/Ternary-Bonsai-2-27B-mmproj-Q8_0.gguf"BONSAI_GGUF pins the launcher to Ternary-Bonsai-2-27B-PTQ1_0.gguf. BONSAI_CTX=16384 matches the 16 GB Apple Silicon row in the context matrix; lower it to 8192 or 4096 if macOS starts swapping. The model reports a 262144-token maximum, but the running Metal context is whatever you pass here. Keep this Terminal window open; open a second Terminal for client requests.
llama.cpp server guideBONSAI_CTX=16384 BONSAI_GGUF="models/yourunai/official-ptq1/Ternary-Bonsai-2-27B-PTQ1_0.gguf" BONSAI_MMPROJ="models/yourunai/official-ptq1/Ternary-Bonsai-2-27B-mmproj-Q8_0.gguf" ./scripts/start_llama_server.sh
open http://localhost:8080From the second Terminal, send a known-answer multi-step problem through the OpenAI-compatible route and confirm the final number matches your own calculation.
curl -s http://127.0.0.1:8080/v1/chat/completions -H "Content-Type: application/json" -d '{"model":"Ternary-Bonsai-2-27B-PTQ1_0.gguf","messages":[{"role":"user","content":"A train travels 60 miles in 1.5 hours, then 90 miles in 2.5 hours. What is its average speed for the whole trip? Show the steps."}],"max_tokens":1024,"temperature":1.0,"top_p":0.95,"top_k":20}'Open the built-in llama.cpp web UI at http://localhost:8080. Type a follow-up prompt, press Send, and wait for the reply that uses the earlier turn. If memory is tight, stop the server with Ctrl+C and restart it with a smaller BONSAI_CTX such as 8192 or 4096.
open http://localhost:8080The selected package responds in local chat and gives the correct answer to your known multi-step problem. Check its result independently; this setup is not a model-quality benchmark.
Reasoning quality varies by prompt and package. Memory guidance is a short-context setup estimate, not a speed claim. Use the PrismML runtime for Bonsai 2 packed weights.
Confirm you are using the PrismML llama.cpp fork, not stock llama.cpp or an Ollama tag. These packed Bonsai 2 files need the fork's ternary kernels and Hadamard transforms.
Close other GPU-heavy applications and reduce the context setting. On a 6 GB GPU, use partial CPU/RAM offload; package file size is not total runtime memory.
Launch with the package-specific GGUF path instead of relying on the shared default, which can select another installed file.
Choose a PTQ1_0 package instead. PrismML has no native Vulkan kernels for PQ2_0. If PTQ1_0 fails on your driver, use the CPU path and check PrismML's backend support notes.
Original instructions, model files, and compatibility notes behind this setup.
Source-backed package and platform-route plan for private local chat with Qwen3.5 · 9B. Preserves the official Ollama 9B package, a smaller 4B family fallback, and a clearly labeled community uncensored GGUF option.
Run Qwen3.8 27B with Ollama, connect it to Cline in VS Code, and make one reviewable code change in a tiny local project.
Generate images from text prompts in ComfyUI with the fast distilled or more adjustable base 4B model. Save your results and reuse the visual workflow.