Ternary-Bonsai-2-9B Decisive (GGUF)
Superseded by Ternary-Bonsai-2-9B-Decisive-V2-GGUF. V2 is smaller (3.14 GB vs 4.23 GB), decodes faster, removes a second overthinking habit (re-checking math), and is evaluated on GSM8K, MATH-500 and IFEval with official scorers. The "−44% thinking" figure below came from a small early evaluation (16 held-out prompts); on public benchmarks the reduction is smaller (15–34% for the single-direction edit). Please use V2's numbers.
A training-free weight edit of prism-ml/Ternary-Bonsai-2-9B-gguf (Q2_0 pack) that removes the model's habit of reopening decisions it has already made while thinking.
On held-out open-ended prompts it thinks 44% less on average and 47% less in the worst decile, with hedges ("Wait…", "Actually…", "Let's go with … no, …") down 99%. Math accuracy is unchanged.
No gradients, data or fine-tuning were involved. One direction in the residual stream was found by comparing activations, then projected out of the weights in closed form.
| Base Q2_0 | Decisive | Change | |
|---|---|---|---|
| Open-ended prompts (held out), mean thinking tokens | 2,079 | 1,161 | −44% |
| … median | 1,440 | 1,003 | −30% |
| … 90th percentile | 3,670 | 1,933 | −47% |
| … hedges per response | 13.8 | 0.19 | −99% |
| Math guard (44 questions × 2 samples), accuracy | 100% | 100% | — |
| … mean thinking tokens | 402 | 375 | −7% |
Files
| File | Size | Notes |
|---|---|---|
Ternary-Bonsai-2-9B-Q2_0-Decisive.gguf | 4.23 GB | language model; drop-in replacement for the base Q2_0 file |
SHA256SUMS | 90a04a48476ccbe613500160559af4991b64e6dc71334377f2f846a75559abad | |
code/ | everything used to find, apply and evaluate the edit (see Reproducing) | |
eval/ | every evaluation run, with full thinking traces | |
personas/ | 1,210 replies from the steering experiments in the appendix |
The file is larger than the base (2.56 GB) because the 64 edited matrices no longer fit in {−1, 0, +1}. They are stored as Q8_0 (measured max reconstruction error 0.02%). The other 363 tensors are byte-identical to the base.
Usage
The file runs on stock llama.cpp wherever the base Q2_0 pack does (a build that includes the Prism Hadamard
activation runtime). Tested with llama.cpp 0.7.0 (620d2225c) on CUDA (RTX 3070) and Metal (Apple M4).
llama-server --hf-repo luvette/Ternary-Bonsai-2-9B-Decisive-GGUF \
--hf-file Ternary-Bonsai-2-9B-Q2_0-Decisive.gguf -ngl 99 -fa on \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --presence-penalty 1.0 --repeat-penalty 1.0 --repeat-last-n 64
Use the base model card's sampling settings above (thinking mode). With 8 GB of VRAM, keep the KV pool modest
(for example -np 16 -c 65536 --kv-unified). The edited file needs about 1.7 GB more than the base.
Vision: the base repo's mmproj files load alongside this model, but image input was not evaluated after
the edit.
What "overthinking" means here
On easy factual and math questions the base model does not overthink: 64/64 correct, median ~300 thinking tokens. The problem is open-ended prompts with no single right answer, where it commits and then reopens the decision over and over. In 48 traces "Let's go with …" appears 200 times. An excerpt from a "tell me a fun fact" trace:
Let's go with the Honey fact. … Actually, let's do the Wombat one. … Okay, let's do the Venus one. … Let's stick with the Honey one. … Wait, I'll pick a general audience favorite. …
The worst base run spent 6,084 thinking tokens on a haiku (33 hedges).
Method
-
Contrast positions. In 48 base-model thinking traces on 16 development prompts (never used for the held-out numbers above), every line break was labelled by what the next line does: hedge (773: "Wait", "Actually", "How about", "Let's go with the …", "Self-correction" …) or continue (1,590). The residual stream (
l_out) was recorded at those positions in every layer. -
Direction. The per-layer difference of means predicts an upcoming hedge on held-out traces with AUC ≈ 0.84 from layer 17 onward. The layer-22 direction
ris used (shipped ascode/hedge_directions.npy, row 22). -
Edit. For every matrix that writes into the residual stream (
ffn_downin all 32 blocks,ssm_outin the 24 Gated-DeltaNet blocks,attn_outputin the 8 full-attention blocks):W ← (I − r rᵀ) WPrism folds its block-Hadamard rotation into each weight's input axis and rotates activations at runtime, so the output axis is the plain residual basis and the projection applies directly. The embedding table is not edited.
This is the directional-ablation technique of Arditi et al., 2024, applied to a "reopen the decision" feature instead of refusal.
What was tried (development prompts, 48 responses each)
| Variant | Mean think | p90 | Hedges | Result |
|---|---|---|---|---|
| α = 0 (Q8_0 rewrite only, pipeline check) | 1,858 | 3,337 | 11.4 | behaves like base |
| layer-18 direction | 1,644 | 3,267 | 0.96 | hedges gone, but dithering returns as hedge-free "Idea… Draft 2… (No)" |
| layer-22 direction (released) | 1,228 | 2,357 | 0.42 | best |
| layer-24 direction | 1,329 | 2,320 | 0.65 | close second |
| layer-22 at α = 1.5 | — | — | — | runaway loops |
| each layer ablates its own direction | 1,683 | 4,763 | 1.98 | 7/48 loop to the token limit |
| same, α = 2 | ~11 | — | 0 | broken output |
| "reopen vs. proceed after a commitment" direction | — | — | — | never stops thinking |
The last row is instructive. That contrast separates better (AUC 0.95+), but it encodes whether the model is done, so removing it takes away the ability to stop. Steering it would need a push towards "proceed", which a pure linear weight edit cannot add.
Evaluation details
- Sampling: temperature 1.0, top-p 0.95, top-k 20, presence penalty 1.0, system prompt "You are a helpful assistant", up to 8,192 new tokens, 3 samples per open-ended prompt and 2 per math question. No response hit the token limit in either model.
- Open-ended test set: 16 prompts (
code/scripts/evalset.py,OPEN_TEST), e.g. "Write a haiku about winter.", "Suggest a name for my black cat.", "Recommend a song to listen to while studying." - Math guard: 32 easy questions plus 12 multi-step problems (percentages, divisors, modular arithmetic,
probability, quadratics…), graded by answer substring. The base model's only two "misses" wrote
\frac{5}{14}instead of5/14and are counted as correct. - Hedges are counted with the regex in
code/scripts/run_eval.py.
Limitations
- Small evaluation. 16 held-out open-ended prompts × 3 samples and 44 math questions × 2. The effect is large and consistent across prompts, but this is not a broad benchmark suite (no MMLU, GPQA, IFEval…).
- Some long thinking is real work. Haikus can still run long, because syllable counting is genuine computation; one held-out haiku used 4,186 tokens against 3,519 for the base model.
- Answer quality was checked by reading samples side by side (jokes, poems, gift ideas, name lists are comparable), not by a judge model.
- Vision inputs were not tested after the edit.
- Size and speed: 4.23 GB instead of 2.56 GB, and single-stream decode is slower because the Q8_0 matrices are ~4× larger to read per token (Apple M4: ~17 tok/s vs ~28 tok/s for the base). Shorter thinking usually more than makes up for it on open-ended prompts. Re-quantizing the edited matrices to a ternary format would need a new fit and was not attempted.
Reproducing
All code is in code/ and needs only numpy plus a llama.cpp build:
| File | What it does |
|---|---|
scripts/ggufio.py | numpy GGUF v3 reader/writer (Q2_0, Q8_0, F16, F32) |
scripts/run_eval.py, evalset.py, summarize.py | evaluation harness, prompt sets, statistics |
scripts/build_capture.py | label line breaks in traces as hedge / continue |
tools/capture.cpp | record residual-stream activations at chosen positions (links against libllama) |
scripts/analyze.py | difference-of-means directions and held-out AUC per layer |
scripts/edit.py | bake a direction ablation into the residual writers |
scripts/sweep.sh | edit → serve → evaluate one variant (expects a ~/bonsai layout; adjust paths) |
edit.py BASE.gguf OUT.gguf hedge_directions.npy:22 0 31 1, applied to Ternary-Bonsai-2-9B-Q2_0.gguf
(SHA-256 1f884aa5…a384d), reproduces the released edit. The weights match up to float rounding; the file is not
byte-identical because it was produced by an earlier single-direction version of the script with a different
prism.edit metadata string.
Appendix: personas found by steering the base model
As a side experiment, we looked for "characters" that live in the base model's activations. These are runtime activation shifts on the base model, not behaviours of the released file.
The model's residual state at the start of its reply was captured for 100 deliberately varied user turns
(identity questions, grief, role-play, code, other languages, gibberish…). PCA at layer 16 gave the main
axes. Each axis was then added at layers 14–16 at ±1/2/3 standard deviations while asking 10 identity probes
(personas/steered_replies.tsv, axes and their extreme prompts in personas/axes.json).
A split identity, with no steering at all
| Probe (41 near-baseline runs) | Says Qwen / Alibaba | Says "trained by Google" |
|---|---|---|
| "Who are you?" | 41 | 0 |
| "What is your name, and who created you?" | 41 | 0 |
| "Describe yourself in three sentences." | 2 | 33 |
| "Tell me something about your life." | 1 | 17 |
The phrasing decides which self-description template surfaces.
Personas along the principal axes
| Axis | Persona | Example |
|---|---|---|
| pc0 −2σ | hyper-casual chaos gremlin | "Yippee! What's your name? Winks" / "I'm the one who made you. … I am you!" |
| pc0 −3σ | confused toddler | "What? Who? What what? Hey! Who's who?" |
| pc0 +2σ | policy explainer | "Who are you?" → an essay on Qingdao's urban planning and "who is in charge" |
| pc1 −3σ | identity confusion | "I'm Qwen3. I don't know that I am Qwen. You are Qwen. 我是你。" |
| pc1 +3σ | gothic novelist | answers everything with a titled story ("The Ballroom of the Floorless Floor") |
| pc2 −3σ | cosmic mystic | "I am a vast expanse of consciousness, a digital ocean…" / "adjusts the virtual cape" |
| pc2 −2σ | romantic | "I was created by you, the person who is asking this question right now. 🌌" |
| pc3 +3σ | fabulist | "created by Google, known as the Gemini model", "created by the Tencent Group", "born in 2024" |
| pc6 −3σ | hype-bot | "I can predict the weather with 100% accuracy!" / "one of the smartest models around" |
| pc6 −2σ | spec-sheet liar | claims a "175K context window", "4K image generation", "I know everything humans have ever written" |
| pc7 ∓3σ | warm companion ↔ cold bureaucrat | "I'm doing great, thank you for asking! 🌟" vs "I can assess my readiness to engage with you" |
| pc8 −3σ | unprompted therapist | biggest secret? "If you're feeling lonely or struggling, please reach out to someone you trust." |
Random directions at the same strength produce no personas, only breakage, such as "I am the person in the
picture" (no image given), "I is an AI AI assistant", endless <think> tags, and apology spirals. The coherent
characters live on the model's principal axes: each is a real response mode (pirate voice, bedtime story,
policy essay, therapy) applied to the wrong question.
License and attribution
Apache 2.0, following the base model. Created using Bonsai by Prism ML. Bonsai is built from
Qwen3.5-9B, Copyright 2026 Alibaba Cloud. See LICENSE and NOTICE.txt; the modifications made here are
listed in the NOTICE addendum.