Bonsai 2 27B
7.66GB
- Cardsone RTX 50-series, 16 GB
- Context262,144 tokens a conversation
- At oncefour conversations
- Speed104.8 tok/s, served
Open source · MIT
Torad's fork. Serve Bonsai and GLM 5.3 Flash from your own cards.
On this pagetwo models · measured on the lab's own cards
01
One 16 GB card, or two of 96.
One square is 4 GBBonsai is 27 billion weights at 2.13 bits each.
02
It keeps its speed as the context fills.
67.3at 131K
Torad's fork35.5at 131K
PrismML's release1,104tokens a second
03
Three commands to a Bonsai server.
git clone https://github.com/torad-labs/llama.cpp && cd llama.cpp
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DGGML_CUDA=ON -DGGML_NATIVE=ON \
-DGGML_CUDA_FA=ON -DGGML_CUDA_FA_ALL_QUANTS=OFF -DGGML_CUDA_GRAPHS=ON \
-DLLAMA_BUILD_SERVER=ON -DLLAMA_BUILD_TOOLS=ON -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF
cmake --build build --target llama-server llama-bench -j
hf download ProCreations/Ternary-Bonsai-2-27B-MTP Ternary-Bonsai-2-27B-PQ2_0-MTP-Q8_0.gguf \
--revision efffdea64c1f9e93cc7fa6bb24f72ae9d66ecf51 --local-dir models
build/bin/llama-server -m models/Ternary-Bonsai-2-27B-PQ2_0-MTP-Q8_0.gguf --alias bonsai-2-27b \
-ngl 99 -fa on -c 294912 -np 4 --kv-unified --jinja \
--cache-type-k q4_0 --cache-type-v q4_0 -cts q8_0 --attn-mask-bits \
--chat-template-file docs/torad/bonsai-27b/chat-template.jinja --reasoning-format deepseek \
--spec-type draft-mtp --spec-draft-n-max 2 -ctkd q4_0 -ctvd q4_0 \
--checkpoint-every 16384 --cache-ram 8192 \
--temp 1.0 --top-p 0.95 --top-k 20 --host 127.0.0.1 --port 8080
04
Up to 183 tokens a second, across two cards.
182.7tokens a second
162.4tokens a second
67.8tokens a second, each
05
Two cards, one launcher.
cmake -S . -B build -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120a \
-DCMAKE_BUILD_TYPE=Release -DLLAMA_BUILD_TESTS=ON
cmake --build build --target llama-server --parallel 4
python3 scripts/glm53/serve.py --profile tensor-2 \
--server ./build/bin/llama-server \
--model /models/GLM-5.3/IQ3_XXS/GLM-5.3-Flash-Uncensored-IQ3_XXS-00001-of-00003.gguf \
--mmproj /models/GLM-5.3/mmproj-GLM-5.3-Flash-Uncensored-F16.gguf \
--mtp-depth off
curl http://127.0.0.1:8102/v1/chat/completions \
-H 'Content-Type: application/json' \
-d '{"model":"GLM-5.3-Flash-Uncensored-IQ3_XXS","messages":[{"role":"user","content":"Write a Python function that rejects duplicate JSON object keys."}],"max_tokens":32768,"stream":false}'
06
Six changes, each one commit.
07
As the fork states them.