Specifications
Artifacts
All 27B repositories are in the Bonsai 27B collection on Hugging Face.
Every repo also ships an
mmproj file for the vision tower (+0.9 GiB), needed for image input regardless of which weight format you pick.
How to run it
Through the demo repo (ternary 27B is the default, so no flags needed):Vision and tool calling
27B is trained for both. Send an image as a normal OpenAI-styleimage_url content part, and a tools array for function calling — both come back through the standard API, no prompt hacks required:
choices[0].message.tool_calls carries the call. See Tool calling & MCP in the demo repo for MCP server setup and the full agentic walkthrough, and Open WebUI for a point-and-click demo of the same capabilities.
Thinking mode
27B reasons by default. Toggle it per request withthinking_budget_tokens (0 to disable, -1 for unlimited), cap it server-wide with --reasoning-budget N, or turn it off entirely with BONSAI_THINKING=0 ./scripts/start_llama_server.sh. The built-in chat UI has a Reasoning effort picker (Off / Low / Medium / High / Max) that overrides the server default per conversation.
Large images are downscaled to ~1,024 vision tokens by default on Metal, Vulkan, and CPU to keep latency reasonable; CUDA and ROCm run uncapped. Override with
BONSAI_IMAGE_MAX_TOKENS (0 disables the cap — useful for reading small text in screenshots).