Text Generation
GGUF
llama.cpp
ternary
2-bit
llama-cpp
cuda
metal
on-device
hybrid-attention
agentic
tool-calling
speculative-decoding
mtp
prismml
bonsai
conversational
Instructions to use prism-ml/Ternary-Bonsai-2.5-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.5-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.5-27B-GGUF:Q2_0 # Run inference directly in the terminal: llama cli -hf prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
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.5-27B-GGUF:Q2_0 # Run inference directly in the terminal: llama cli -hf prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
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.5-27B-GGUF:Q2_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
Use Docker
docker model run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use prism-ml/Ternary-Bonsai-2.5-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.5-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.5-27B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
- Ollama
How to use prism-ml/Ternary-Bonsai-2.5-27B-GGUF with Ollama:
ollama run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
- Unsloth Desktop
- Pi
How to use prism-ml/Ternary-Bonsai-2.5-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.5-27B-GGUF:Q2_0
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use prism-ml/Ternary-Bonsai-2.5-27B-GGUF with Docker Model Runner:
docker model run hf.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
- Lemonade
How to use prism-ml/Ternary-Bonsai-2.5-27B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
Run and chat with the model
lemonade run user.Ternary-Bonsai-2.5-27B-GGUF-Q2_0
List all available models
lemonade list
- Hermes Agent
How to use prism-ml/Ternary-Bonsai-2.5-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.5-27B-GGUF:Q2_0
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:9931/v1 hermes config set model.default prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use prism-ml/Ternary-Bonsai-2.5-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.5-27B-GGUF:Q2_0
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:9931/v1 \ --custom-model-id "prism-ml/Ternary-Bonsai-2.5-27B-GGUF:Q2_0" \ --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"
Download presets/llama.cpp/mtp-sycl.json from prism-ml/Ternary-Bonsai-2.5-27B-GGUF: direct link, hf CLI and curl.
- Browser
- Download file 4.57 kB
-
https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF/resolve/main/presets/llama.cpp/mtp-sycl.json
- Command line
-
hf download hf://prism-ml/Ternary-Bonsai-2.5-27B-GGUF/presets/llama.cpp/mtp-sycl.json
-
curl -L -o mtp-sycl.json https://huggingface.co/prism-ml/Ternary-Bonsai-2.5-27B-GGUF/resolve/main/presets/llama.cpp/mtp-sycl.json
4.57 kB
| { | |
| "schema": "prism-mtp-backend-settings/v1", | |
| "model": "Bonsai 2.5 Ternary 27B with MTP draft head (v2)", | |
| "backend": "sycl", | |
| "source": { | |
| "repo": "prism-ml/Ternary-Bonsai-2.5-27B-gguf-mtp", | |
| "revision": "538feafac9 (main, same card as tag v2)", | |
| "document": "README.md", | |
| "head_version": "v2", | |
| "note": "Private, unreleased model. Settings and numbers are copied from the card; do not redistribute." | |
| }, | |
| "file": { | |
| "name": "Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf", | |
| "size_bytes": 6232818944, | |
| "sha256": "e0fc5f3d47b9c926d52677d303b19df356a2376614b3e1cb9973865fc04ca431" | |
| }, | |
| "why_this_file": "PTQ1_0 is the fastest packing on SYCL.", | |
| "profiles": [ | |
| { | |
| "id": "sycl-core-ultra-igpu", | |
| "devices": [ | |
| "Intel Core Ultra laptop, 32 GB, integrated GPU (measured)" | |
| ], | |
| "released_build": { | |
| "build": "community build arc-b580-v0.10.1 (github.com/Torchit1/llama.cpp)", | |
| "draft": { | |
| "spec_type": "draft-mtp", | |
| "n_min": 0, | |
| "n_max": 8, | |
| "p_min": 0.6, | |
| "args": [ | |
| "--spec-type", | |
| "draft-mtp", | |
| "--spec-draft-n-min", | |
| "0", | |
| "--spec-draft-n-max", | |
| "8", | |
| "--spec-draft-p-min", | |
| "0.6" | |
| ] | |
| }, | |
| "env": { | |
| "GGML_SYCL_PTQ1_T2": "all", | |
| "GGML_SYCL_FA_DEC_DPAS": "1" | |
| }, | |
| "server_args": [ | |
| "-ngl", | |
| "99", | |
| "-fa", | |
| "on", | |
| "-c", | |
| "8192", | |
| "-np", | |
| "1" | |
| ], | |
| "command_windows": "set GGML_SYCL_PTQ1_T2=all\nset GGML_SYCL_FA_DEC_DPAS=1\nllama-server -m Ternary-Bonsai-2.5-27B-PTQ1_0-mtp.gguf -ngl 99 -fa on -c 8192 -np 1 --spec-type draft-mtp --spec-draft-n-min 0 --spec-draft-n-max 8 --spec-draft-p-min 0.6", | |
| "measured_2026_11_24": { | |
| "Core Ultra laptop": { | |
| "generation_tok_s": { | |
| "mtp_off": 11.02, | |
| "mtp_on": 21.26, | |
| "ratio": 1.93 | |
| }, | |
| "prefill_8k_tok_s": { | |
| "mtp_off": 210.1, | |
| "mtp_on": 199.7 | |
| }, | |
| "prefill_2k_tok_s": { | |
| "mtp_off": 219.0, | |
| "mtp_on": 205.4 | |
| } | |
| } | |
| } | |
| }, | |
| "testing_build": { | |
| "status": "not released", | |
| "build": "base d12ca13bb + SYCL kernels in testing (measured: 2839d8c41), SYCL toolchain 2025.3", | |
| "draft": { | |
| "spec_type": "draft-mtp", | |
| "n_min": 0, | |
| "n_max": 8, | |
| "p_min": 0.6, | |
| "args": [ | |
| "--spec-type", | |
| "draft-mtp", | |
| "--spec-draft-n-min", | |
| "0", | |
| "--spec-draft-n-max", | |
| "8", | |
| "--spec-draft-p-min", | |
| "0.6" | |
| ] | |
| }, | |
| "env": { | |
| "GGML_SYCL_PTQ1_T2": "all", | |
| "GGML_SYCL_FA_DEC_DPAS": "1", | |
| "GGML_SYCL_T2_VGEMM_MIN": "3" | |
| }, | |
| "server_args": [ | |
| "-ngl", | |
| "99", | |
| "-fa", | |
| "on", | |
| "-c", | |
| "12288", | |
| "-np", | |
| "1", | |
| "--no-warmup", | |
| "--cache-ram", | |
| "0" | |
| ], | |
| "kv_cache": "f16", | |
| "kv_cache_note": "A 4-bit KV cache breaks drafting on SYCL.", | |
| "measured_2026_11_23": { | |
| "Core Ultra laptop": { | |
| "generation_tok_s": { | |
| "mtp_off": 11.12, | |
| "mtp_on": 23.12, | |
| "mtp_on_with_kernels": 24.53 | |
| }, | |
| "prefill_2k_tok_s": { | |
| "mtp_off": 235.9, | |
| "mtp_on": 218.2 | |
| }, | |
| "prefill_8k_tok_s": { | |
| "mtp_off": 227.5, | |
| "mtp_on": 212.3 | |
| }, | |
| "note": "3 rounds; context 12K; the prompt-reading kernel gives no gain on SYCL" | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "lossless_check": "Full drafting checks on SYCL not finished. Kernels in testing: mean KL 2.5e-6 vs 6.2e-6 between two runs of the build without them (SYCL is not bit-deterministic).", | |
| "notes": [ | |
| "Turn MTP off (drop the drafting flags) for long prompts with short answers: prefill is slower with MTP on in released builds.", | |
| "Measurement: llama-server, 36 internal prompts in 7 workload groups, answers up to 512 tokens, greedy, one request at a time; generation = answer tokens / decode time (tok/s); prefill = timings.prompt_per_second on an 8,192-token prompt (2,048 in the *_2k fields); medians of 3 rounds unless noted (laptop context 8K on the released build)" | |
| ] | |
| } | |