Text Generation
GGUF
llama.cpp
ternary
2-bit
llama-cpp
cuda
metal
on-device
hybrid-attention
prismml
bonsai
conversational
Instructions to use prism-ml/Ternary-Bonsai-2-27B-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16 # Run inference directly in the terminal: llama cli -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16 # Run inference directly in the terminal: llama cli -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Use Docker
docker model run hf.co/prism-ml/Ternary-Bonsai-2-27B-gguf:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prism-ml/Ternary-Bonsai-2-27B-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prism-ml/Ternary-Bonsai-2-27B-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prism-ml/Ternary-Bonsai-2-27B-gguf:F16
- Ollama
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with Ollama:
ollama run hf.co/prism-ml/Ternary-Bonsai-2-27B-gguf:F16
- Unsloth Desktop
- Pi
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "prism-ml/Ternary-Bonsai-2-27B-gguf:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with Docker Model Runner:
docker model run hf.co/prism-ml/Ternary-Bonsai-2-27B-gguf:F16
- Lemonade
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Run and chat with the model
lemonade run user.Ternary-Bonsai-2-27B-gguf-F16
List all available models
lemonade list
- Hermes Agent
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prism-ml/Ternary-Bonsai-2-27B-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf prism-ml/Ternary-Bonsai-2-27B-gguf:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "prism-ml/Ternary-Bonsai-2-27B-gguf:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
[Guide] Running Ternary Bonsai 2 on ik_llama.cpp: Lossless repack to PQ2_0 (Native CUDA offload & Fast CPU -rtr)
๐๐ฅ 2
#107 opened 1 day ago
by
Gaby8999
MoE for Bonsai looks imminent โ circumstantial evidence from the llama.cpp fork
๐๐ฅ 3
1
#105 opened 3 days ago
by
mktnhr
Latest versions of fork do not work on Apple Silicon
๐ 1
1
#104 opened 5 days ago
by
zencrab
base64 decoding test on 150 chunks
10
#103 opened 9 days ago
by
KottCh
Independent test: 98% retention on easier tasks, 87% on harder reasoning/coding (vs 4-bit Qwen3.8 27B)
๐ฅโค๏ธ 7
8
#102 opened 9 days ago
by
heldoutlab
Ternary-Bonsai-2-27B-PQ2_0: Comprehensive Model Evaluation and User Review
1
#101 opened 11 days ago
by
lscdev2
Speculative Drafters for Ternary-Bonsai-2-27B (11~13 tok/s on Apple Silicon M3)
๐ฅ 1
3
#100 opened 13 days ago
by
NOhhh
Has anyone compared Ternary Bonsai 2 model quality retention versus ISTA-DASLab's GSQ-RCO?
๐ 1
11
#99 opened 14 days ago
by
ssvb
RTX 3060 12GB measured: 37.6 tok/s, 626 tok/s prefill, 9.1 GB at 32K
โค๏ธ 1
#98 opened 15 days ago
by
nazeerAilabs
Please someone fork this with Kimi Delta Attention as well!
#97 opened 17 days ago
by
N7Shepard
Crazy fast, already optimized to over 70 tokens/s, can be pushed up to 300 tokens/s, on an 8GB 4060.็้ฃ๏ผๅทฒ็ป่ขซไผๅๅฐ70token/sไปฅไธ,ไฟฎๆนๆ้ซ300token/s๏ผๅจ8G็4060
๐๐ฅ 1
2
#96 opened 17 days ago
by
SuperLogic
Request to bonsai
๐๐ 7
8
#95 opened 17 days ago
by
Banaxi-Tech
Bonsai 2 in Strata: 64.4 tok/s on one RX 7900 XT with no MTP.
#94 opened 19 days ago
by
SkyIsNotGreen
thank you very much
๐ฅ 2
#92 opened 21 days ago
by
zeroyet
Llama.cpp fork update regression?
๐ 2
3
#91 opened 22 days ago
by
ysf78
bonsai version of qwen 3.8 flash next and qwen3.8-27b but swift version
๐ 1
#90 opened 22 days ago
by
trombonator
RTX 2060 SUPER 8GB: Bonsai 2 27B PTQ1_0 jumps from 16.76 to 39.31 tok/s after a llama.cpp update (no MTP)
1
#89 opened 22 days ago
by
mktnhr
prism-llama-cli update above b10743 is bad for SVG!
2
#88 opened 23 days ago
by
KottCh
Independent results for Bonsai-2 PQ2_0 (GSM8K / MATH / HumanEval) with caveats
#87 opened 24 days ago
by
SkyIsNotGreen
It did not met my expectation (No it actually great)
5
#86 opened 28 days ago
by
emircanerkul
Bonsai 3
๐ 6
2
#84 opened 28 days ago
by
jezzza1401
โ2 logit bias on PTQ1_0, RTX 5060 Laptop: MATH-500 44/50 โ 43/50
#83 opened about 1 month ago
by
7dollarbooks
Add RTX 3080 (10 GB) to the cross-platform throughput table
#82 opened about 1 month ago
by
Siphion
Works on Tesla V100-16GB (SM 7.0): 52 tok/s @ 64K context
#81 opened about 1 month ago
by
Vyach59
nobody told us, but Pelikan can be ANIMATEEED!
1
#80 opened about 1 month ago
by
KottCh
could gemma4-31B-it be better?
๐ 2
1
#79 opened about 1 month ago
by
luckystar199746
Intel Arc: a faster SYCL path for PTQ1_0 (about 88 t/s with MTP on a B580)
3
#78 opened about 1 month ago
by
torchit1
Sitting frozen like a nuclear bomb, the 8G laptop speeds up from 50 tokens straight to 70 tokens๏ผ8Gๅๆฌกไป50Token/Sๅคงๅน ๅๅฐๆๆ็70Token/s
5
#75 opened about 1 month ago
by
SuperLogic
I made a ternary 35B-A3B based on the results of my previous Bonsai-2 forensics & research work.
๐ฅ 5
#74 opened about 1 month ago
by
SkyIsNotGreen
Think too much
1
#73 opened about 1 month ago
by
jezzza1401
Which Jinja Template?
1
#70 opened about 1 month ago
by
Omnomynous
image to SVG test: Ichigo :)
๐ฅ 4
3
#69 opened about 1 month ago
by
KottCh
Does not work in LM Studio (NB - update CUDA, use NOXZURE1's answer)
10
#68 opened about 1 month ago
by
SoulFireMage
Memory performance
๐ 1
3
#67 opened about 1 month ago
by
trombonator
One 27B model, two jobs โ chat:50token/s + JEV decision engine:0.5s โ on an 8 GB laptop
๐ง 3
1
#65 opened about 1 month ago
by
SuperLogic
Can you create Ternary versions for 35b-a3b models?
๐ 1
#64 opened about 1 month ago
by
naildirect
Pull coding capability, the Tetris.html which Bonsai-2-27b generated cannot play - console error
#63 opened about 1 month ago
by
mind0n
I took Bonsai 2 27B apart, part 2: the format is public, the last 8% is ordinary ternary QAT.
๐ 1
6
#62 opened about 1 month ago
by
SkyIsNotGreen
Set the model name and min_p in the GGUF metadata (weights unchanged)
๐ 1
#59 opened about 1 month ago
by
bri-prism
for 16gb vram context size <=114688 is fast. Pelican is gorgeous :)
๐คฏ๐ 4
8
#56 opened about 1 month ago
by
KottCh
intel alchemist kernel
#55 opened about 1 month ago
by
Demilenos
Real KLD testing against Unsloth's gguf BF16 of Qwen 3.8-27B
๐๐ 4
3
#54 opened about 1 month ago
by
mrumel
When will they release the official version with ROCM or Vulkan support for the 6900XT?
1
#53 opened about 1 month ago
by
aidoluiz
AMD works just wonderfully, here is how:
โค๏ธ 1
4
#52 opened about 1 month ago
by
RegisteredWednesday
issue : 6800 (rdna 2) gpu card on PrismML-Eng llama.cpp . cant run model by unsloth Studio and ..
๐ 1
#51 opened about 1 month ago
by
myhugginfacegacc
SYCL backend: any speculative type collapses performance (even target prefill drops ~200x) - draft model itself is healthy
#50 opened about 1 month ago
by
Yoo00ooOO
How does the 2080 Ti 22G perform with this model?
2
#49 opened about 1 month ago
by
coresen
PLEASE stop lying about the "intelligence" of the model.
๐ฅ๐ 28
7
#47 opened about 1 month ago
by
Splarkszter
ๅจ4060็ฌ่ฎฐๆฌ๏ผ8Gไธ๏ผไผๅๅฐ45Token/Sไนๅ๏ผๅๆ10%ๅฐ50Token/S๏ผไฝ่ฟ่ฟไธๆฏไธ้...็่ฎบไธ้ๅฏ่ฝ้ซ่พพ65Token/S
๐ 2
2
#46 opened about 1 month ago
by
SuperLogic
Solved "xhigh" loop and include MTP. Test on 4080 12G VRAM laptop, reach ~60 t/s
๐๐ 3
#45 opened about 1 month ago
by
zhijin123