/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
Ternary-Bonsai-2-9B-gguf
Библиотека
llama.cpp
Опубликована
5 ноя 2026

Ternary-Bonsai-2-9B-Decisive-V2-GGUF

Генерация текстаТекст → текст3 профессии
1 662скачиваний за 30 дней4лайкавеса обновлены5 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

GGUF-чат-модель на базе Ternary-Bonsai-2-9B, отредактированная для более кратких рассуждений и решения математических задач.

Ternary-Bonsai-2-9B Decisive V2 GGUF — текстовая чат-модель на основе prism-ml/Ternary-Bonsai-2-9B-gguf, подготовленная автором как training-free редактирование весов. Из весов проекционно удалены два направления активаций, связанные с повторным пересмотром уже принятого решения и перепроверкой завершённых вычислений. Модель предназначена для ответов и рассуждений, особенно для математических задач, где важно реже исчерпывать лимит токенов на рассуждение. Работает в llama.cpp; репозиторий содержит формат GGUF, а README называет контрольную точку q6pa-m с хранением Q6_K и округлением с учётом проекции.

В тестах автора на выборках GSM8K и MATH-500 модель тратила меньше токенов на рассуждение, чем базовая версия; при лимите 12 288 токенов результаты по математике были сопоставимы или выше. Эти оценки получены на ограниченных выборках и не гарантируют аналогичного результата на других задачах. В README также отмечено возможное снижение точности следования инструкциям с ограничениями по длине и формату. Возможности модели с изображениями после редактирования не оценивались. Лицензия — Apache-2.0.

Сценарии применения

  • решение задач по математике с ограниченным бюджетом токенов
  • получение ответов с меньшим числом повторных проверок
  • локальный запуск чат-модели через llama.cpp

Ограничения

Оценки основаны на ограниченных выборках и одном seed на задачу; возможна потеря качества при строгих требованиях к длине и формату ответа. Возможности работы с изображениями после редактирования не оценивались.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Ternary-Bonsai-2-9B Decisive V2 (GGUF)

A training-free weight edit of prism-ml/Ternary-Bonsai-2-9B-gguf (checkpoint q6pa-m: Q6_K storage, projection-aware rounding, plus the math direction) that removes two habits from the model's thinking: reopening decisions it has already made ("Wait…", "Actually…", "Let's go with … no, …") and re-checking math it has already done.

It thinks 43% less on GSM8K and 27% less on MATH-500 than the base model, with the same accuracy on the problems both finish, and it runs on stock llama.cpp. Because it runs out of thinking budget less often, it also scores higher on MATH-500 at a fixed 12k-token budget (75.2% → 81.2%); that gain comes from finishing more problems, not from better math (details below).

No gradients, no training data and no fine-tuning. Two directions in the residual stream were found by comparing activations and then projected out of the weights in closed form. The edited matrices are stored with a new projection-aware rounding, so quantization does not quietly put the removed directions back.

This supersedes Ternary-Bonsai-2-9B-Decisive-GGUF (Decisive V1, checkpoint g22). v2 is smaller (3.14 GB vs 4.23 GB), faster, and has been evaluated on GSM8K, MATH-500 and IFEval rather than a small in-house prompt set. v1's "−44% thinking" figure came from that small set; the numbers below are the ones to rely on.

The full technical write-up is in PAPER.md.

Results

All rows use the base model card's thinking-mode sampling (temperature 1.0, top-p 0.95, top-k 20, presence penalty 1.0) and stock llama.cpp 620d2225c. Bold = best in row.

Public benchmarks

GSM8K (250 items), MATH-500 (250 items) and IFEval (300 prompts), each a fixed-seed sample of the official test set (not the full sets: GSM8K has 1,319 problems and MATH-500 500, so full-set numbers may differ by a point or two), scored with lm-evaluation-harness's own scorers. 12,288-token budget. Qwen3.5-9B ran the first 100 / 100 / 150 of the same items.

Qwen3.5-9B (Q4_K_M)Bonsai baseDecisive V1 (g22)Decisive V2 (q6pa-m)V2 alternative (q6pa)
GSM8K accuracy95.0%95.2%95.6%94.4%94.4%
GSM8K thinking tokens3,5272,2691,4711,3011,491
MATH-500 accuracy56.0%75.2%79.6%81.2%80.0%
MATH-500 thinking tokens7,5175,1204,2093,7474,346
MATH-500 out of budget37 / 10049 / 25035 / 25029 / 25035 / 250
IFEval prompt-level strict92.0%92.7%91.0%90.3%93.0%
IFEval instruction-level strict93.8%94.4%93.5%93.3%95.0%
IFEval thinking tokens4,2583,0842,4352,2422,370

Paired against the base model on the same items (95% bootstrap intervals): GSM8K −0.8 points (−3.2 to +1.6, a tie), MATH-500 +6.0 points (+2.4 to +9.6), IFEval −2.3 points (−5.3 to +0.7). Thinking: −43% on GSM8K, −27% on MATH-500 and −27% on IFEval, all intervals well clear of zero. The q6pa alternative: GSM8K −0.8 (−3.2 to +1.6), MATH-500 +4.8 (+1.6 to +8.0), IFEval +0.3 (−2.7 to +3.3); thinking −34%, −15% and −23%.

Where the MATH-500 gain comes from. On the 200 problems that both models finish within the 12,288-token budget, accuracy is the same (base 93.5%, Decisive V2 93.0%). The gain comes from the 49 problems where the base model ran out of budget: Decisive V2 finishes 21 of them and gets 17 right. So the edit keeps reasoning quality the same and spends fewer tokens getting there; with a much larger budget the base model would likely close most of the gap.

Qwen3.5-9B's MATH-500 score is held down by the token budget: it ran out on 37 of 100 problems. It is included as a reference point for thinking length, not as a claim that Bonsai is the stronger model.

What got worse

  • Instruction following, possibly. IFEval is 2.3 points lower than base (90.3% vs 92.7%). The interval (−5.3 to +0.7) includes zero, so this is not proven, but all four IFEval metrics are lower, and most of the extra misses are exact word counts ("answer in at least 300 words"). The single-direction version of this edit (q6pa) did not show the drop (+0.3), so the math re-checking direction probably costs some of the counting these instructions need. If your use depends on strict format or length constraints, keep that in mind.
  • Speed and memory. The edited layers are stored at 6 bits instead of about 2: the file is 0.58 GB larger and single-stream decoding is about 12% slower than the base model. Shorter thinking usually makes up for it.
  • A few individual problems. On MATH-500 it loses 4 problems the base model solved (two of them are scorer formatting false negatives) while gaining 19. GSM8K is a tie (−2 problems of 250).

Thinking on open-ended prompts

100 development prompts × 2 samples, and 100 held-out prompts never used to build or tune anything. "Hedges" counts lines that reopen a decision (regex in code/scripts/run_eval.py).

Qwen3.5-9BBonsai baseDecisive V1 (g22)Decisive V2 (q6pa-m)V2 alternative (q6pa)
Dev: mean thinking tokens3,1942,5701,6871,7061,741
Dev: 90th percentile7,0354,9103,7213,0433,405
Dev: hedges per answer25.515.80.680.611.07
Dev: ran out of budget (8k)11 / 2005 / 2003 / 2002 / 2003 / 200
Held-out: mean thinking tokens2,5432,1411,5341,5101,483
Held-out: hedges per answer18.111.00.400.370.51
Easy-math guard (44 questions × 2)100%100%100%100%100%
Hard math: 60 Level 4–5 MATH training problems30 / 6036 / 6043 / 6042 / 6039 / 60
Hard math: ran out of budget (12k)27 / 6020 / 6014 / 609 / 6015 / 60

Memory and speed (RTX 3070, one user, 16k context, q8_0 KV cache)

Qwen3.5-9BBonsai baseDecisive V1 (g22)Decisive V2 (q6pa-m)V2 alternative (q6pa)
File size5.68 GB2.56 GB4.23 GB3.14 GB3.14 GB
VRAM5.5 GB2.9 GB4.5 GB3.5 GB3.5 GB
Decode speed63 tok/s104 tok/s74 tok/s91 tok/s91 tok/s
Decode speed with the MTP draft headn/a131 tok/s104 tok/s122 tok/s124 tok/s
Decode speed in Ollama 0.40.14———92 tok/s—

The base model decodes faster, but it thinks longer, so on most prompts Decisive V2 reaches the answer sooner.

Which file?

  • Ternary-Bonsai-2-9B-Decisive-V2 (q6pa-m), recommended. Removes both habits: the least thinking, the fewest runs that hit the token budget, and the best math results here.
  • Ternary-Bonsai-2-9B-Decisive-V2-q6pa, if you rely on exact format or length instructions. Removes only the "reopening decisions" habit. It thinks 13–14% more than q6pa-m on GSM8K and MATH-500, but stays at the base model's level on IFEval (93.0% vs 92.7%), where q6pa-m dips (90.3%). It is also the cleaner edit: 0.04% of the removed direction remains in its stored weights, against 3% for q6pa-m.

Both are the same size and speed, and both have an -MTP variant for llama.cpp.

Files

FileSizeUse
Ternary-Bonsai-2-9B-Decisive-V2.gguf3.14 GBthe model (checkpoint q6pa-m); drop-in replacement for the base Q2_0 file
Ternary-Bonsai-2-9B-Decisive-V2-MTP.gguf3.39 GBthe same model plus the official multi-token-prediction draft head (~35% faster decoding in llama.cpp)
Ternary-Bonsai-2-9B-Decisive-V2-q6pa.gguf3.14 GBalternative checkpoint q6pa: the hedging direction only (see below)
Ternary-Bonsai-2-9B-Decisive-V2-q6pa-MTP.gguf3.39 GBthe q6pa alternative plus the MTP draft head
ollama/Modelfile and instructions for Ollama
PAPER.mdtechnical write-up: method, the quantization problem, experiments, limitations
code/everything needed to rebuild the files from the base model and rerun the evaluations
eval/every evaluation run, with full thinking traces
SHA256SUMSchecksums

395 of the 427 tensors are byte-identical to the base Q2_0 file. The 32 edited matrices (the residual-stream writers in layers 16–31) no longer fit in {−1, 0, +1} after the edit, so they are stored as Q6_K.

Usage

llama.cpp

Any recent stock llama.cpp that runs the base Q2_0 file runs this one. Tested with 620d2225c (0.7.0) on CUDA (RTX 3070 and GTX 1080).

llama-server -m Ternary-Bonsai-2-9B-Decisive-V2-MTP.gguf -ngl 99 -fa on -c 32768 \
  --spec-type draft-mtp --spec-draft-n-max 2 \
  --temp 1.0 --top-p 0.95 --top-k 20 --min-p 0 --presence-penalty 1.0 --repeat-penalty 1.0

Without the draft head, use Ternary-Bonsai-2-9B-Decisive-V2.gguf and drop the two --spec-* flags. Thinking is on by default; pass "chat_template_kwargs": {"enable_thinking": false} in a request to turn it off.

Ollama

See ollama/README.md. In short:

cd ollama && ollama create bonsai-decisive -f Modelfile && ollama run bonsai-decisive

Tested with Ollama 0.40.14 on an RTX 3070 (Linux, about 92 tok/s, fully on the GPU) and an Apple M4 (macOS, about 23 tok/s): thinking can be shown, hidden (--hidethinking) or turned off (--think=false). The Modelfile sets a 32k context, which needs about 4.2 GB of VRAM. Ollama needs a version that supports Bonsai's Q2_0 format and the Qwen3.5 architecture, and it does not use the MTP draft head; for numbers that match the benchmarks exactly, use llama.cpp.

How it works (short version)

  1. Find the directions. Label every line break in base-model thinking traces by what the next line does: reopen a decision versus carry on, and (on hard math) re-check work versus carry on. The difference of mean residual-stream activations at layer 22 gives one direction per habit. Each predicts its habit on held-out traces with AUC ≈ 0.84 (hedging) and 0.87 (math re-checking).
  2. Remove them from the weights. For every matrix that writes into the residual stream in layers 16–31, W ← (I − Q Qᵀ) W, where Q holds the two directions after orthonormalization. Bonsai folds its Hadamard rotation into each matrix's input side, so the output side is the plain residual basis and this projection is exact.
  3. Store them without undoing the edit. Ternary codes cannot represent the edited weights. Re-quantizing to Q6_K in the usual way lets 10–15% of the removed direction back in, through rounding errors that happen to line up with it. Projection-aware rounding keeps llama.cpp's own Q6_K scales and re-picks individual roundings so the stored weights have (almost) no component along the removed directions, at no cost in file size.

Details, ablations and the things that did not work are in PAPER.md.

Limitations

  • One model. Everything here is measured on Ternary-Bonsai-2-9B. Whether the same directions exist and behave the same way in other models is untested.
  • One sampling seed per benchmark item. Differences of a point or two are within noise; the paired intervals above say which results are real.
  • Mixed hardware. Some runs were made on an NVIDIA A100 (Modal), some on an RTX 3070 and some on a GTX 1080, with identical files, prompts, sampling settings and seeds. GPU numerics differ slightly, so individual answers can differ between machines.
  • Some long thinking is real work. Hard math still uses thousands of tokens; the edit removes repeated re-checking, not reasoning.
  • Vision was not evaluated after the edit. The base repo's mmproj files load, but image quality is unknown.
  • Not compared with cheap baselines yet, such as a "be concise" system prompt, banning the "Wait" token, or a hard thinking budget.

Reproducing

python3 code/scripts/build_q6pa.py Ternary-Bonsai-2-9B-Decisive-V2.gguf \
  code/directions/hedge_directions.npy:22,code/directions/recheck_directions.npy:22 16 31
python3 code/scripts/add_mtp.py Ternary-Bonsai-2-9B-Decisive-V2.gguf Ternary-Bonsai-2-9B-Decisive-V2-MTP.gguf

build_q6pa.py expects the base file Ternary-Bonsai-2-9B-Q2_0.gguf (SHA-256 1f884aa5…a384d) and a llama.cpp build for llama-quantize; edit the two paths at the top of the script. See code/README.md for the evaluation scripts.

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. The multi-token-prediction draft head in the -MTP file is the 15 MTP tensors from Prism ML's Ternary-Bonsai-2-9B-PQ2_0-MTP-Q8_0.gguf, unmodified.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Нельзя запустить

GGUF-модель ждёт проверки: нужно выбрать файл кванта под доступные GPU.

Ревизия весов
b05369c

0 моделей