/ Модель

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

Контекст
262 144 токена
Лицензия
Apache 2.0
Архитектура
prism_hadamard_qwen35 · dense
Базовая модель
Ternary-Bonsai-2.5-27B-mlx-2bit
Библиотека
mlx
Опубликована
27 ноя 2026

Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2

Изображение и текст → текст13 профессий
659скачиваний за 30 дней0лайковвеса обновлены27 ноя 2026

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

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

Компактная мультимодальная сборка Qwen 3.8 27B с трёхзначными весами и черновой моделью DFlash2 для локального диалога с текстом и изображениями на Mac.

Это общественная сборка Prism ML Ternary Bonsai 2.5 на 27 млрд параметров, подготовленная для запуска на компьютерах Mac с Apple silicon. Модель основана на Qwen 3.8 27B и использует трёхзначные веса −1, 0 и +1, упакованные в 2-битный формат; в сборку также входят зрительная башня и черновая модель DFlash2 для спекулятивного декодирования. Целевые веса Prism ML включены без изменений, а веса линейных слоёв черновой модели упакованы в 4 бита.

Модель принимает текст и изображения, поддерживает диалог, вызов инструментов и контекст до 262 144 токенов. Черновая модель может ускорять генерацию текста, когда обе модели помещаются в память; при обработке запроса с изображением или при ограничении памяти генерация идёт без этого ускорения. Сборка рассчитана на Astronomical и совместимый загрузчик Prism ML; для полной скорости README указывает около 9,2 ГБ памяти модели при контексте в 5 000 токенов.

Это не официальный выпуск Prism ML или Qwen, а общественная сборка. Репозиторий распространяется по лицензии Apache-2.0; README указывает авторство Prism ML, команды Qwen, z-lab и Inco AI.

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

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

Ограничения

Спекулятивное декодирование работает только когда целевая и черновая модели одновременно помещаются в памяти; запросы с изображениями обрабатываются без него. Для запуска требуется Mac с Apple silicon и совместимая программная среда.

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2

A 27B model in under 10 GB, with its eyes and its draft model, on your Mac. This is Prism ML's Ternary Bonsai 2.5 27B, vision tower included, with the DFlash2 draft model packed inside, so one download gives you both. While the big model writes, the small one guesses the next few words, and the big model checks all the guesses in a single step. Every guess it agrees with is a word it did not have to write on its own, and every word is still the big model's own choice.

Bonsai 2.5 is Qwen 3.8 27B trained by Prism ML to work with only three values in each weight: minus one, zero and plus one. That makes all 27B parameters fit in 8 GB. It reads text and pictures, reasons before it answers, calls tools, and holds up to 262,144 tokens of conversation.

Built with, and made for, Astronomical.

Run it with Astronomical

Download Astronomical for Mac (Apple silicon, macOS 14 and later). Astronomical is a free, open source app for running open models privately on your own Mac: nothing you type leaves it. You tell it how much memory a model may use, and it keeps the rest of your Mac usable.

Astronomical runs this model, with its pictures and its draft model, from the first release after Astronomical 0.2.135. Astronomical checks for updates on its own, or you can download the latest release from the link above.

Get the model from the app

  1. Open Astronomical. In the Astronomical menu at the top of the screen, choose Open Observatory.
  2. Go to Models, find Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2, and click Get. Astronomical downloads about 9.5 GB and checks every file before it uses the model.
  3. In the chat window, choose it from the model menu beside the message box, and start typing.

Or use it from Terminal

First add the astronomical command: click Astronomical's menu-bar item, click the ⋯ button, and choose Install “astronomical” command in terminal…. Commands name the model by its short name, Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2:

# Download it from the catalog.
astronomical models download Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2

# Ask it something.
astronomical respond "Write a Python function that merges two sorted lists" --model Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2

# Show it a picture.
astronomical respond "What is in this image?" --image photo.png --model Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2

# Make it the model every request uses unless it names another.
astronomical models default Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2

# Start a coding agent that runs on it.
astronomical launch claude --model Ternary-Bonsai-2.5-27B-MLX-2bit-vision-DFLASH2

astronomical launch codex and astronomical launch opencode work the same way. Any other tool that speaks the OpenAI or Anthropic API can use it too: the local API page has the settings for each client. Run astronomical --help for every command.

What you need

DiskAbout 9.5 GB
Memory for full speedAbout 9.2 GB of model memory with a 5,000-token conversation, the model and its drafter together, so it fits a Mac with 16 GB

Drafting runs only while the whole model and its drafter are in memory. With a lower memory limit the model still runs: it decodes one token at a time. A reply to a message with a picture in it also decodes one token at a time; drafting resumes on the next text-only message.

What makes this build special

  • The published weights, byte for byte. The target model is every file of Prism ML's pack at its source revision, unchanged. astronomical-build.json records the size and SHA-256 of every file in this repository, so anyone can check it.
  • The drafter, packed the way Astronomical serves it. The DFlash2 draft model's linear layers are stored at 4 bits, made by the same call Astronomical uses when it loads the bf16 drafter, so the weights it serves are bit for bit the same. The download is 1.2 GB instead of 3.6 GB. Its norms, convolution kernels and selector codebooks are kept as published.
  • The drafter made for this model's family. The DFlash2 draft model was trained by its authors against Qwen 3.8 27B, the model Bonsai 2.5 was trained from, and reads the hidden states of 5 of its 64 layers. Prism ML publishes no drafter of its own for Bonsai 2.5.
  • The drafter travels with its model. Astronomical looks for a drafter in a model's own drafter folder first, so this model drafts as soon as it loads, with no setup.
  • The model always has the last word. Every kept token is the target model's own choice, sampled from its own probabilities at the request's temperature.

Sources

This is a community build, not an official Prism ML or Qwen release. All credit for the models goes to their authors.

SourceCommitWhere it is in this repository
prism-ml/Ternary-Bonsai-2.5-27B-mlx-2bitaa432fd0e17612f6684e728d4d3c42b6656bcabbThe top folder: weights, vision tower, sign table, tokenizer, settings, the optional MTP head and Prism ML's loader
z-lab/Qwen3.8-27B-DFlash250307d4c4cde6860d4eee73e2547cd786fe8e8a4drafter/, its linear layers packed to 4 bits

Layout

PathWhat it is
model.safetensors, config.json, tokenizer, chat templateThe target model: ternary weights stored 2-bit affine, group size 128, in a Hadamard-rotated basis, with its float16 vision tower inside the same file
hadamard.jsonThe sign table that undoes the rotation; a loader must apply it
preprocessor_config.json, video_preprocessor_config.jsonThe image settings, for pictures
mtp/Prism ML's optional multi-token prediction head, for their own loader
runtime/, quickstart.pyPrism ML's reference loader for Python
drafter/The DFlash2 draft model: 5 layers, linear layers at 4 bits, with its own card and license
astronomical-build.jsonThe sources and the size and SHA-256 of every file

The drafter has no vocabulary of its own: it borrows the target's embedding, its output head and the hidden states of the layers it reads, so it only works beside this model.

Also runs with Prism ML's loader

The top folder is Prism ML's pack unchanged, so their loader runs it as their own card describes:

python3 -m venv .venv && source .venv/bin/activate
python -m pip install -r runtime/requirements.txt
python quickstart.py "What is 2 plus 2?"

Their loader decodes without the DFlash2 drafter. The drafter's own card, drafter/README.md, describes it and how to serve it with SGLang beside the bf16 Qwen 3.8 target.

Credits

  • Prism ML, for Ternary Bonsai 2.5. Created using Bonsai by Prism ML.
  • The Qwen team, for Qwen 3.8 27B.
  • z-lab and Inco AI, for the DFlash2 draft model.

License

Everything in this repository is Apache License 2.0. The target model's license text is in LICENSE, with Prism ML's notice in NOTICE.txt, and the draft model's, as its model card states it, is in drafter/LICENSE. Prism ML's loader keeps its own license in runtime/LICENSE. This package adds no terms of its own. NOTICE lists each component, its exact source revision and its license.

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

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

GPU в ailist

Универсальный рантайм · mlx

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

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

Ревизия весов
281b558

0 моделей