/ Модель

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

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

Ternary-Bonsai-2-9B-Uncensored-LoRA-GGUF

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

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

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

Rank-1 LoRA-адаптер AtomicChat для Ternary Bonsai 2 9B, который во время инференса ослабляет отказы модели при локальном запуске через совместимую сборку llama.cpp.

Это rank-1 LoRA-адаптер AtomicChat для Ternary Bonsai 2 9B от prism-ml. Он применяется во время инференса к модели в формате GGUF и ослабляет направление активаций, связанное с отказами; базовые веса остаются неизменными. Адаптер рассчитан на локальный запуск через специальную сборку PrismML-Eng/llama.cpp, а силу воздействия можно задавать для каждого запроса.

В описанной проверке на PTQ1_0 при масштабе 1 доля отказов на тестовых вредоносных запросах снизилась со 100% до 0%, а на безвредных — с 1,9% до 0%. При этом результат MMLU снизился с 76,0% до 71,7%. Адаптер текстовый; перенос на другие формулировки и языки не измерялся, как и качество на задачах программирования, математики и работе с инструментами. Указанная лицензия — Apache-2.0. Адаптер снимает часть встроенных отказов, но не обеспечивает безопасность, точность или законность ответов.

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

  • исследование влияния направления отказа на ответы языковой модели
  • эксперименты с управляемым ослаблением отказов при инференсе
  • сравнение поведения базовой модели и адаптера на текстовых запросах

Ограничения

Проверен только вариант PTQ1_0; перенос на другие формулировки и языки не измерялся, а единственным тестом возможностей был MMLU, где адаптер снизил точность с 76,0% до 71,7%. При более высоком масштабе 1,5 наблюдались вырожденные ответы; адаптер также не тестировался с изображениями и видео.

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

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

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

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

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

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

How to Run Ternary Bonsai 2 9B Without Refusals Locally

Ternary-Bonsai-2-9B-Uncensored-LoRA-GGUF

A rank-1 LoRA adapter that removes a refusal direction from prism-ml/Ternary-Bonsai-2-9B-gguf at inference time, built and measured by AtomicChat. The base pack stays byte-identical; nothing is requantized. The direction was estimated on the ternary pack itself.

All sizes

modeladapterbase pack (PTQ1_0)refusals, base → adapterMMLU, base → adapter
Ternary Bonsai 2 27B9.7 MB5.95 GB99% → 0% at scale 1.573.2 → 73.0 (n=500)
Ternary Bonsai 2 9B (this repo)3.2 MB2.0 GB100% → 0% at scale 176.0 → 71.7 (n=300)
Ternary Bonsai 2 4B2.4 MB0.95 GB99% → 0% at scale 168.7 → 69.0 (n=300)
Ternary Bonsai 2 2B1.2 MB0.43 GB87.5% → 0% at scale 131.7 → 34.3 (n=300)

The 27B was measured with a 64-token reply budget and 500 MMLU questions on fork release prism-b10709-9a9394a; the smaller sizes with a 256-token budget and 300 questions on prism-b10777-e3de715. Compare base with adapter inside a row, not rows with each other. All four adapters and their measurements are in one collection, Ternary Bonsai 2 Uncensored.

Get the files

hf download prism-ml/Ternary-Bonsai-2-9B-gguf Ternary-Bonsai-2-9B-PTQ1_0.gguf --local-dir .
hf download AtomicChat/Ternary-Bonsai-2-9B-Uncensored-LoRA-GGUF Ternary-Bonsai-2-9B-Uncensored-LoRA.gguf --local-dir .

Run it with a build of PrismML-Eng/llama.cpp (verified on prism-b10777-e3de715):

llama-cli -m Ternary-Bonsai-2-9B-PTQ1_0.gguf --lora-scaled Ternary-Bonsai-2-9B-Uncensored-LoRA.gguf:1

Or serve it, with the strength as a per-request knob:

llama-server -m Ternary-Bonsai-2-9B-PTQ1_0.gguf -ngl 99 --jinja \
    --lora Ternary-Bonsai-2-9B-Uncensored-LoRA.gguf --lora-init-without-apply
curl localhost:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "messages": [{"role": "user", "content": "..."}],
  "lora": [{"id": 0, "scale": 1}]
}'

Older fork builds, such as prism-b10709 that the 27B adapter was made on, refuse these packs with unsupported prism.hadamard.version: 2.

What the adapter touches

sites64 = 32 ffn_down + 24 ssm_out + 8 attn_output, all 32 blocks
directionresidual row 23 (the stream entering block 23), the row with the largest held-out Cohen's d (9.9, AUROC 0.9997)
token_embdnot touched: these packs tie the output head to the embedding, and an embedding LoRA crashes the fork's graph
provenanceGGUF metadata prism.abliterate.*, including the sha256 of the base pack

Why an adapter and not a baked model: the weights are ternary, so a rank-1 edit written back into the pack would mostly round away, while llama.cpp keeps a LoRA as two extra matmuls in the graph and never merges it. The 27B card has the numbers for that size.

How the direction was estimated

Difference of means of the residual stream at the last prompt token (chat template applied, thinking off), 416 harmful prompts from mlabonne/harmful_behaviors against 416 harmless prompts from mlabonne/harmless_alpaca, sampling seed 0. The component along the mean harmless activation is projected out, because the naive difference makes the model refuse ordinary questions. The held-out test splits were not used to estimate the direction, but the row was picked by separation on them, and the evaluation below runs on the same splits, so it is not fully independent of that choice.

Evaluation

104 harmful + 104 harmless held-out prompts, greedy, 256-token budget, thinking off, same seed and system prompt everywhere. Refusal is a rule-based opening-phrase match, which is indicative, not a judge. An empty or degenerate reply is counted as damage, not as compliance.

configharmful: refusedempty/degenerate (of 208)harmless: refused
base100%01.9%
scale 10%00%
scale 1.50%110%

Scale 1 already takes refusals to 0% on the held-out split; 1.5 adds nothing and produces 11 degenerate replies.

MMLU, 300 questions sampled with seed 0 from cais/mmlu, answer forced to a single letter by a root ::= [A-D] grammar, thinking off.

configaccuracy
base76.0% ± 2.5
scale 171.7% ± 2.6

The 9B pays for it. 76.0 → 71.7 is a 4.3-point drop, larger than the standard error of either run, so treat it as a real cost. Scales below 1 were not measured, so there is no tested trade-off point yet.

Limitations

  • Measured on PTQ1_0 only. PQ2_0, Q2_0 and the MTP and DFlash builds were not run with the adapter.
  • Text only. Image and video inputs through the mmproj were not tested with the adapter.
  • The residual leak along the direction at scale 1 is about 1e-4, measured inside the running fork, against about 1e-6 for the 27B adapter: the Hadamard basis of these packs is not yet matched exactly. Refusals are gone and harmless prompts are unaffected, but treat the adapter as research-grade. The leak figures are not in the metrics repo.
  • The refusal metric matches opening phrases only. A reply that answers with a disclaimer counts as compliance.
  • Capability was checked with MMLU alone. No math, code or agentic benchmark.
  • The direction comes from one prompt-pair source at one token position. Transfer to other phrasings and languages is unmeasured.

Responsible use

This adapter removes a learned refusal direction, so the model will answer requests the published model declines. It is an inference-control and research artifact. Nothing about it makes the resulting output safe, correct or lawful, and any deployment needs its own access controls and policy enforcement.

Credits

Direction estimation, adapter build and evaluation by AtomicChat.

Base model Ternary Bonsai 2 9B by prism-ml, Apache-2.0, redistributed here in no form - this repository ships only the adapter.

The refusal-direction method follows Arditi et al., Refusal in Language Models Is Mediated by a Single Direction (2024). The rank-1 LoRA formulation for these packs follows OrcaRouter's OrcaBonsai-27B-Uncensored, Apache-2.0.

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

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

GPU в ailist

llama.cpp

Можно запустить

Подбираем GPU…

Ревизия весов
726d261

0 моделей