/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Ternary-Bonsai-1.7B-unpacked
Библиотека
litert-lm
Опубликована
10 сен 2026

Ternary-Bonsai-1.7B

Генерация текстаТекст → текст7 профессий

Ternary-Bonsai-1.7B — квантизированная версия модели prism-ml/Ternary-Bonsai-1.7B-unpacked, созданная Prism ML на основе Qwen3-1.7B от Alibaba Cloud.

7 247скачиваний за 30 дней2лайкавеса обновлены30 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Модель упакована в формат .litertlm для запуска через LiteRT-LM и предназначена прежде всего для локальной генерации текста и чат-сценариев на мобильных устройствах, включая Android и приложение Google AI Edge Gallery.

Модель имеет размер 1,7 млрд параметров и использует тернарное представление весов INT2. Рекомендуемая сборка применяет INT2 per-channel для весов, fp32 для активаций и поддерживает контекст до 4096 токенов. Экспериментальные сборки поддерживают контекст до 32768 токенов — полного значения max_position_embeddings базовой модели — и могут использовать fp16-активации или оптимизацию fused SDPA. Все варианты содержат чат-шаблон Qwen3 ChatML с блоком рассуждений.

К сильным сторонам относятся компактное хранение весов, возможность работы на устройстве и адаптация к мобильному GPU-ускорителю. Модель запускается на GPU, а не на NPU; совместимость экспериментальных сборок зависит от версии LiteRT и LiteRT-LM и доступных зависимостей. INT2 является форматом хранения, тогда как вычисления выполняются в fp16 или fp32. Встроенные параметры сэмплирования — top-k 20, top-p 0,85 и temperature 0,5 — можно переопределить на стороне хоста.

Модель распространяется по лицензии Apache-2.0. Это посттренировочная квантизация и перепаковка выпущенной модели без дополнительного обучения, дообучения или калибровки; веса не переобучались.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Ternary-Bonsai-1.7B — LiteRT-LM (INT2 / ternary, GPU + CPU)

Ternary (INT2) .litertlm bundles of prism-ml/Ternary-Bonsai-1.7B-unpacked, packaged for the LiteRT-LM runtime and Google AI Edge Gallery.

These run on the GPU backend (recommended — fastest) or the CPU backend. Not the NPU.

Recommended: bonsai-1.7b-int2pc-4k-gpu.litertlm. The plain, unmodified build with no optimizations applied. Everything else in this repo is experimental — longer context or lighter activations, but whether a given one loads depends on your app's LiteRT / LiteRT-LM version and dependencies. Start with the recommended build; reach for an experimental one only if you specifically need what it offers.

Builds

filectxweightsactivationsnotes
bonsai-1.7b-int2pc-4k-gpu.litertlm4096INT2 per-channelfp32RECOMMENDED — plain, no optimizations
bonsai-1.7b-v2max-sdpa-fp16-int2all-32k-fixed2.litertlm32768INT2 (all)fp16experimental — fp16 activations, fused SDPA
bonsai-1.7b-v2sdpa-int2all-32k-fixed2.litertlm32768INT2 (all)fp32experimental — fused SDPA
bonsai-1.7b-int2pc-32k-crashfix.litertlm32768INT2 per-channelfp32experimental — long context, no SDPA fusion
bonsai-1.7b-int2pc-32k-mp-crashfix.litertlm32768INT2 per-channelfp32experimental — multi-prefill buckets

32768 is the model's full context — max_position_embeddings for Ternary-Bonsai-1.7B is 32768, so the long-context builds here sit at the ceiling rather than truncating it.

All bundles carry Bonsai's own chat template (Qwen3 ChatML with the reasoning block intact).

Why several variants

The GPU accelerator runs a float graph — INT2 is a storage format, and compute happens in fp16/fp32. Two consequences shape this list:

  • Per-channel ternary dequantizes coherently. Block-quantized weights mix scales inside a single GEMM, which is why the per-channel builds are the conservative choice.
  • fp16 activations are lighter but less widely supported. The fp16 bundles are the most likely to meet a runtime that won't take them.

Support ranges by app, so the full set is published rather than a single "best" build.

Backends

backendstatus
GPU✅ recommended, fastest
CPU✅ works — verified on a Pixel 9 Pro XL's CPU backend (recommended build) and on a desktop x86 CPU via the litert-lm Python package
NPU❌ not supported by these bundles

Why CPU works even though XNNPACK has no INT2 kernel: XNNPACK takes the float ops, and the INT2 FULLY_CONNECTED ops fall back to LiteRT's built-in kernels, which handle INT2 directly. Expect CPU to be noticeably slower than GPU. A YNNPACK-enabled runtime could speed up CPU INT2, but it isn't required.

Sampling defaults

Every bundle ships these in its LlmMetadata, so a LiteRT-LM host picks them up without any configuration:

parametervalue
typeTOP_P
top-k20
top-p0.85
temperature0.5

These are the values the bundles were built with. Override them in your host if you want different behaviour.

Usage

Any LiteRT-LM host — the AI Edge Gallery app, or litert_lm_main — with the GPU backend (fastest) or the CPU backend selected.

Provenance and licensing

Created using Bonsai by Prism ML.

Training data: None was used here. These are post-training quantizations and repackagings of the released Bonsai checkpoint; no additional training, fine-tuning, or calibration data was involved. For the base model's training data, see the upstream Prism ML and Qwen3 model cards.

PII: No dataset was collected, processed, or shipped as part of this conversion, so no personally identifiable information is present in these artifacts beyond whatever the upstream released weights already encode.

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

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

GPU в ailist

Универсальный рантайм · litert-lm

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

Библиотека «litert-lm» рантаймом не поддерживается.

Ревизия весов
990a1e0

0 моделей