license: apache-2.0
library_name: llama.cpp
pipeline_tag: text-generation
base_model: Qwen/Qwen3.8-27B
tags:
- ternary
- gguf
- llama-cpp
Ternary Bonsai 2.5 27B — Uncensored (Q2_0 + MTP)
A 27B-class reasoning model in ternary weights, ready to run with stockllama.cpp-compatible serving: one model file, one runtime tarball, one
launch script. No build step.
- Base model: Qwen3.8-27B (hybrid attention, architecture unchanged)
- Weights: ternary
{−1, 0, +1}, FP16 scale per group of 128 weights —
1.76 bits per weight - Packing:
Q2_0(each trit in a 2-bit slot) with the MTP draft head
built in, for speculative decoding - Context: 262,144 tokens native; 131,072 tokens with MTP enabled
(verified ceiling — see below) - License: Apache 2.0
Uncensored
This build removes the refusal direction (abliteration) baked into the
ternary codes, following the AtomicChat method. Measured cost: +3.1%
perplexity vs. the stock ternary model on the full corpus. The MTP draft
head is unedited; speculative decoding stays lossless.
Files
| File | Size | SHA-256 |
|---|---|---|
Ternary-Bonsai-2.5-27B-Uncensored-Q2_0-mtp.gguf |
7,912,178,944 bytes (7.37 GiB) | 6b321b5604ad32bcffe45c220f5926d51a9f5367eeb512b15f19ce63eb8ca386 |
runtime/llama-prism-b12178-03ec600-bin-linux-cuda-12.4-x64.tar.gz |
357,880,121 bytes | 626dc154204531df146a428d455b53c64534b8f022e98cb0760881b48a35557e |
Full hashes are in SHA256SUMS.txt. The model filename is kept verbatim
from upstream so its hash stays verifiable.
Requirements
- Linux x86_64
- One or more NVIDIA GPUs with a driver that provides
libcuda.so.1
(CUDA 12.4 runtime libraries:libcudart.so.12— shipped by thenvidia-cuda-runtimepip package or a CUDA 12.4 install) tar,curl,python3
Quickstart
./serve.sh
# llama-server on http://127.0.0.1:8080
# public URL printed from tunnel-8080.log (TUNNEL_URL=...)
serve.sh extracts the runtime on first run, detects all visible GPUs,
computes the largest context that fits (see below), starts llama-server
and publishes a *.gradio.live tunnel for port 8080. No chat UI is
included — use the llama-server web UI at / or the OpenAI-compatible
API at /v1.
Environment overrides:
| Variable | Default | Meaning |
|---|---|---|
LLAMA_CTX |
auto | Context size in tokens |
LLAMA_MTP |
1 |
0 disables the MTP draft head |
CTK |
q8_0 |
KV cache type (f16, q8_0, q4_0) |
Context and MTP
With MTP enabled the verified ceiling is 131,072 tokens: the draft
head reserves its own context, and 262,144 with MTP does not fit. To use
the full native 262,144 tokens, disable MTP (LLAMA_MTP=0) and
restart. Smaller KV types (CTK=q4_0) halve the KV bytes per token.
Tests
Capability and reasoning-control results are in tests/: capability (8 tasks, 2026-11-30) and reasoning on/off measurements (2026-12-01). See tests/README.md for method and reproduction notes.
Credits
- Weights: PrismML Ternary Bonsai 2.5 27B (derived from Qwen3.8-27B).
- Uncensored abliteration: AtomicChat; Q2_0+MTP packing of the
uncensored weights as published upstream. - Runtime: PrismML
llama.cppfork buildprism-b12178-03ec600
(CUDA 12.4). - Base model: Qwen3.8-27B by Qwen.
Apache 2.0. This repository is an independent packaging of the upstream
artifacts above; it is not affiliated with their publishers.