/ Модель

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

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

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

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

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

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

Экспериментальная GGUF-версия Ternary-Bonsai-2-9B с редактированием весов, призванным сократить повторные колебания модели в диалогах и открытых задачах.

Ternary-Bonsai-2-9B-Decisive-GGUF — производная версия языковой модели prism-ml/Ternary-Bonsai-2-9B-gguf, подготовленная автором luvette для генерации текста и диалогов. Это обученно-свободное редактирование весов: без градиентного дообучения и новых данных из весов удалено направление, связанное с повторным пересмотром уже принятого решения во время рассуждения.

Модель предназначена для ответов на открытые вопросы и диалоговых сценариев, где повторные колебания удлиняют ответы. В ранней небольшой оценке на 16 отложенных запросах среднее число токенов рассуждения снизилось на 44%, а частота словесных колебаний — на 99%; автор указывает, что на публичных наборах сокращение меньше. Модель основана на архитектуре Ternary-Bonsai-2-9B и поставляется в формате GGUF Q2_0 с 64 отредактированными матрицами Q8_0; файл занимает 4,23 ГБ. Для запуска требуется llama.cpp со средой выполнения Prism Hadamard.

Это экспериментальная модификация, а не широкая проверенная замена базовой модели: оценка охватывает мало запросов, качество ответов проверялось чтением примеров, а не автоматическим оценщиком. Длинные рассуждения, необходимые для реальных вычислений, могут сохраняться; скорость декодирования ниже, чем у базовой версии, и работа с изображениями после редактирования не проверялась. Лицензия — Apache-2.0. README сообщает, что модель заменена версией V2 и рекомендует использовать её показатели вместо приведённых здесь ранних результатов.

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

  • генерация более кратких ответов на открытые вопросы
  • диалоговые ответы с меньшим числом повторных сомнений
  • создание списков идей и вариантов без многократного пересмотра выбора

Ограничения

Оценка ограничена небольшим числом запросов, а качество ответов проверялось вручную; часть долгих рассуждений может быть необходима для решения задачи. Декодирование медленнее базовой версии, а обработка изображений после редактирования не тестировалась; README указывает, что модель superseded by V2.

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

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

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

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

Источники: 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 (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_0DecisiveChange
Open-ended prompts (held out), mean thinking tokens2,0791,161−44%
… median1,4401,003−30%
… 90th percentile3,6701,933−47%
… hedges per response13.80.19−99%
Math guard (44 questions × 2 samples), accuracy100%100%—
… mean thinking tokens402375−7%

Files

FileSizeNotes
Ternary-Bonsai-2-9B-Q2_0-Decisive.gguf4.23 GBlanguage model; drop-in replacement for the base Q2_0 file
SHA256SUMS90a04a48476ccbe613500160559af4991b64e6dc71334377f2f846a75559abad
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

  1. 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.

  2. 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 r is used (shipped as code/hedge_directions.npy, row 22).

  3. Edit. For every matrix that writes into the residual stream (ffn_down in all 32 blocks, ssm_out in the 24 Gated-DeltaNet blocks, attn_output in the 8 full-attention blocks):

    W ← (I − r rᵀ) W

    Prism 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)

VariantMean thinkp90HedgesResult
α = 0 (Q8_0 rewrite only, pipeline check)1,8583,33711.4behaves like base
layer-18 direction1,6443,2670.96hedges gone, but dithering returns as hedge-free "Idea… Draft 2… (No)"
layer-22 direction (released)1,2282,3570.42best
layer-24 direction1,3292,3200.65close second
layer-22 at α = 1.5———runaway loops
each layer ablates its own direction1,6834,7631.987/48 loop to the token limit
same, α = 2~11—0broken 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 of 5/14 and 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:

FileWhat it does
scripts/ggufio.pynumpy GGUF v3 reader/writer (Q2_0, Q8_0, F16, F32)
scripts/run_eval.py, evalset.py, summarize.pyevaluation harness, prompt sets, statistics
scripts/build_capture.pylabel line breaks in traces as hedge / continue
tools/capture.cpprecord residual-stream activations at chosen positions (links against libllama)
scripts/analyze.pydifference-of-means directions and held-out AUC per layer
scripts/edit.pybake a direction ablation into the residual writers
scripts/sweep.shedit → 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 / AlibabaSays "trained by Google"
"Who are you?"410
"What is your name, and who created you?"410
"Describe yourself in three sentences."233
"Tell me something about your life."117

The phrasing decides which self-description template surfaces.

Personas along the principal axes

AxisPersonaExample
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 novelistanswers 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 liarclaims 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 therapistbiggest 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.

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

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

GPU в ailist

llama.cpp

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

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

Ревизия весов
90cef2f

0 моделей