AIToday
Large Language ModelsOpen-Source AIZenn AI/MLPublished: Nov 5, 2026, 06:00 JST

Bonsai 2 27B matches Qwen3.8-27B on single-shot, lags on monocoder

Send on LINE
Bonsai 2 27B matches Qwen3.8-27B on single-shot, lags on monocoder

3 Key Points

  1. What happened

    Under one Mac mini, one llama-server build, and the same -c 32768 context, ternary Bonsai 2 27B (1.77 bits/weight) showed no clear quality gap versus Qwen3.8-27B (2.88 bits/weight) on four single-shot tasks, and ran about 2.3–2.8× faster.

  2. Why it matters

    That speed edge came without an obvious single-shot quality penalty in this small test, though the author cautions the sample is too small to call a conclusion.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The test targets a specific claim: that ternary quantization can hold quality at a much lower bit budget. Bonsai 2 27B apparently compresses the Qwen3.8-27B base to one-ninth the size (5.95GB) while advertising 98.2% retained accuracy, and the author's own bits/weight calculation puts it at 1.77 versus 2.88 for the conventional Q2_K build. Getting the model to run at all required building the PrismML llama.cpp fork from source, since Ollama's bundled engine cannot read the ternary tensor layout, and the build needed -DGGML_NATIVE=OFF to get past an Apple Clang error.

The re-measurement matters because the earlier study7 numbers for Qwen3.8-27B came from a different machine and engine, so the author re-ran both models on the same Mac mini with the same -c 32768 context. On single-shot tasks the differences looked like generation-to-generation noise: both had FizzBuzz errors in their hand-written examples, both showed zero simplified-Chinese leakage, and Bonsai 2 actually explained Python's @ decorator syntax correctly while Qwen3.8-27B drifted into the design-pattern meaning. The one directional signal was monocoder: Bonsai 2 failed both Kalman-filter runs while Qwen3.8-27B succeeded both times, though SVD split 1/2 for each, so the author treats it as a hint rather than a finding. A size sweep adds context: at 2B and 4B the ternary versions broke more often on basic instruction-following than same-size conventional models, while at 9B and 27B the gap narrowed—except that at 27B the conventional model still led on monocoder.

FAQ
Can I just run Bonsai 2 27B in Ollama?
No. The model pulls, but ollama show and ollama run both fail with a tensor size overflow error, because the model uses a custom ternary tensor layout that standard llama.cpp (which Ollama uses internally) cannot read. The author built a dedicated PrismML llama.cpp fork from source instead.
What build and memory workarounds were needed?
The build failed until -DGGML_NATIVE=OFF was added, because Apple Clang rejected the -mcpu=native probe. At runtime, the default 262,144-token context exhausted the 16GB unified memory, so the author limited context to -c 32768.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleMeta buys Conductor, parallel AI coding agent startup