#8080th of 109 in Model serving

bonsai-demo

Launcher scripts for running Bonsai 2 ternary-quantized LLMs locally via llama.cpp or MLX

Releases and problems feed (RSS)

Stars
3.6k
License
Apache-2.0
Last commit
Nov 2026
Language
Shell
Stars, last 29 weeks+2,793
2 May 2026: 780 stars9 May 2026: 812 stars16 May 2026: 822 stars23 May 2026: 831 stars30 May 2026: 853 stars6 Jun 2026: 873 stars13 Jun 2026: 878 stars20 Jun 2026: 885 stars27 Jun 2026: 890 stars4 Jul 2026: 894 stars11 Jul 2026: 906 stars18 Jul 2026: 1,806 stars25 Jul 2026: 2,037 stars1 Aug 2026: 2,125 stars8 Aug 2026: 2,176 stars15 Aug 2026: 2,220 stars22 Aug 2026: 2,243 stars29 Aug 2026: 2,257 stars5 Sept 2026: 2,274 stars12 Sept 2026: 2,289 stars19 Sept 2026: 2,791 stars26 Sept 2026: 3,144 stars3 Oct 2026: 3,271 stars10 Oct 2026: 3,337 stars17 Oct 2026: 3,411 stars24 Oct 2026: 3,459 stars31 Oct 2026: 3,499 stars7 Nov 2026: 3,522 stars14 Nov 2026: 3,547 stars21 Nov 2026: 3,573 stars

780 on 2 May 20263,573 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Shell scripts that download Bonsai 2 models (2B, 4B, 9B, 27B; ternary, about 1.75 bits per weight) and run them through a PrismML llama.cpp fork or MLX on Apple Silicon. They start llama-server with a built-in chat UI on port 8080, with vision, tool calling and MCP. An optional Open WebUI demo runs on port 9090.

Who it is for: Self-hosters trying PrismML's Bonsai low-bit models on Mac, Linux or Windows

Strengths

  • 27B default download is 7.8 GB in PQ2_0 packing, plus a vision projector
  • Auto-detects Metal, CUDA, ROCm or Vulkan; BONSAI_NGL=0 forces CPU-only
  • Context up to 262,144 tokens; optional 4-bit KV cache cuts KV memory roughly 3.5x
  • Native OpenAI-style tool calls, MCP client and image input in the chat UI

Weaknesses

  • PQ2_0 and PTQ1_0 formats need the PrismML llama.cpp fork, not upstream
  • Only Bonsai models are supported; this is not a general model server
  • Default setup also installs Open WebUI and a Jupyter venv, adding several GB
  • MLX path for 2B/4B/9B uses standalone launchers; Open WebUI MLX integration is 27B only

What it needs

  • GPU optional
  • Needs llama.cpp (PrismML fork), uv, Hugging Face, Open WebUI (optional), mlx-vlm (Apple Silicon)
  • Models: Bonsai 2 2B, Bonsai 2 4B, Bonsai 2 9B, Bonsai 2 27B, GGUF (PQ2_0, PTQ1_0, Q2_0)
  • port 8080

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Model serving

See all 109
Also in Model serving
RankProjectScore
#78kvcachedElastic KV cache for vLLM and SGLang using GPU virtual memory Live demo ↗ (opens in a new tab)2.1k stars+52 (+2.6%) in 30 daysApache-2.061 out of 100
#79Text Generation Web UILocal LLM chat UI and API with five switchable loader backends47.7k starsAGPL-3.060 out of 100
#81production-stackHelm-deployed vLLM cluster with request router and Grafana monitoring2.7k starsApache-2.059 out of 100
#82exllamav3Inference library with EXL3 quantization for LLMs on consumer GPUs1.9k starsMIT59 out of 100
#83zmlZig and MLIR inference stack compiling models for GPUs, TPUs and Trainium4.3k starsApache-2.058 out of 100