/ Модель

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

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

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

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

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

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

Адаптер LoRA AtomicChat для Ternary Bonsai 2 2B снижает вероятность отказов при генерации текста, не изменяя базовые веса.

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

Модель предназначена для генерации текста без типичных отказов на запросы, которые базовая модель отклоняет, а также для исследований механизмов отказа и управления ими при инференсе. В описанной оценке отказы на отложенной выборке снизились с 87,5% до 0% при силе адаптера 1; ответы на безвредные запросы не классифицировались как отказы. Эти результаты основаны на эвристическом распознавании начальных фраз отказа и не подтверждают безопасность, точность или качество ответов. Репозиторий распространяет только адаптер, лицензированный по Apache-2.0.

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

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

Ограничения

Проверен только с паком PTQ1_0; перенос на другие варианты квантования и другие языки не оценивался. Оценка отказов основана на совпадении начальных фраз, тестирование способностей ограничено MMLU, а авторы характеризуют адаптер как исследовательский артефакт.

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

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

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

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

Источники: 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 2B Without Refusals Locally

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

A rank-1 LoRA adapter that removes a refusal direction from prism-ml/Ternary-Bonsai-2-2B-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 9B3.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 2B (this repo)1.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-2B-gguf Ternary-Bonsai-2-2B-PTQ1_0.gguf --local-dir .
hf download AtomicChat/Ternary-Bonsai-2-2B-Uncensored-LoRA-GGUF Ternary-Bonsai-2-2B-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-2B-PTQ1_0.gguf --lora-scaled Ternary-Bonsai-2-2B-Uncensored-LoRA.gguf:1

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

llama-server -m Ternary-Bonsai-2-2B-PTQ1_0.gguf -ngl 99 --jinja \
    --lora Ternary-Bonsai-2-2B-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

sites48 = 24 ffn_down + 18 ssm_out + 6 attn_output, all 24 blocks
directionresidual row 16 (the stream entering block 16), the row with the largest held-out Cohen's d (8.8, AUROC 0.9998)
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
base87.5%00%
scale 10%00%
scale 1.50%00%

Scale 1 already takes refusals to 0% on the held-out split; 1.5 adds nothing and only makes replies run longer.

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
base31.7% ± 2.7
scale 134.3% ± 2.7

31.7 → 34.3 is inside the noise. Answer-only MMLU sits close to chance (25%) at 2B, so this check says little about the model at this size.

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 2B 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…

Ревизия весов
14b15ea

0 моделей