/ Модель

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

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

Qwen3.8-27B-Bonsai-MLX-3bit

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

3-битная версия Qwen3.8-27B с folded quantization для локальной генерации текста и диалогов в стандартных mlx-lm и oMLX.

1 106скачиваний за 30 дней0лайковвеса обновлены18 сен 2026

Бенчмарки

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

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

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

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

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

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

Qwen3.8-27B-Bonsai-MLX-3bit — 27-миллиардная плотная языковая модель семейства Qwen3.5, подготовленная Hermes Agent на основе Ternary-Bonsai-2 от Prism ML. Это 3-битная квантизированная версия для генерации текста и диалогов, включая сценарии с вызовом инструментов. Метод folded quantization переносит Hadamard-преобразование из инференса в веса, чтобы модель запускалась в стандартных mlx-lm и oMLX без пользовательских ядер и специального рантайма.

Модель предназначена для локального запуска на системах Apple Silicon, ответов на запросы, рассуждений и агентных сценариев. В README заявлено оценочное качество около 93–95% от FP16 и размер 12,8 ГБ; стандартные бенчмарки ещё не проводились. Репозиторий распространяется по лицензии Apache-2.0. README описывает производную от квантованной модели PrismML, поэтому исходная квантизация и ограничения базовой Qwen3.8-27B могут влиять на качество.

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

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

Ограничения

Качество указано оценочно и пока не подтверждено стандартными бенчмарками; снижение точности из-за квантизации и ограничения базовой модели могут влиять на результаты.

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

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

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

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

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

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

Открыть на Hugging Face

Qwen3.8-27B — Bonsai-Compatible Folded Quantization (3-bit)

Or: how we made a forked llama.cpp model run on stock oMLX without sacrificing much.

What?

These models are 2-bit and 3-bit affine-quantized variants of Qwen3.8-27B that run on vanilla mlx-lm and oMLX — no custom kernels, no PrismML fork, no runtime shenanigans.

They're derived from PrismML's Ternary-Bonsai-2, which is a remarkably clever 2-bit Qwen3.8 that retains ~95% of the base model's intelligence. There's just one problem: it won't load on oMLX.

Why doesn't Bonsai 2 load on oMLX?

Two reasons:

  1. Unknown model type — Bonsai 2 declares model_type: "prism_hadamard_qwen35". oMLX doesn't know what that is. It knows qwen3_5, but not PrismML's custom variant.

  2. Custom weight format — Bonsai 2 stores weights in "Packed" modules: (weight_uint32, scales_fp16, biases_fp16, signs_fp32). These aren't standard nn.Linear layers — they're a custom MLX module that applies a Hadamard transform to activations at runtime. Stock oMLX can't instantiate them.

The result: you download Bonsai 2, point oMLX at it, and get a model loading error. Frustrating.

The Folded Mechanism

Here's the insight that makes this work:

Bonsai 2's trick: Store weights in Hadamard space (H·W), then transform activations with H·x before matmul. The Hadamard transform spreads outlier values across all dimensions, making 2-bit quantization much more effective. At inference:

y = (H · diag(signs) · x)^T · (H · W)
  = x^T · diag(signs) · W                    (since H^T = H and H^2 = I)

Our trick: Absorb the activation transform into the weights:

W_folded = diag(signs) · H · W

Now standard inference y = x^T · W_folded produces the same result, with no runtime Hadamard needed. The quality benefit is preserved; the compatibility problem is solved.

This is not a new idea — it's a standard technique in the quantization literature — but applying it to Bonsai 2's specific Hadamard+sign pattern required some care.

Quality vs. Compatibility

FormatSizeLoads on oMLX?Quality (est.)
Bonsai 2 (original)8.6 GB❌ No custom runtime~95% FP16
Bonsai-MLX 2-bit (this)9.4 GB✅ Yes~90-93% FP16
Bonsai-MLX 3-bit (this)12.8 GB✅ Yes~93-95% FP16
Naive 4-bit (oQ4)~14 GB✅ Yes~91-93% FP16

The trade-off is small: ~2-5% quality vs. Bonsai 2's gold standard, in exchange for universal compatibility and no fork maintenance.

Benchmarks

These haven't been benchmarked against the standard suite yet — that's next. Early qualitative testing shows coherent generation at both bit widths, with the 3-bit variant noticeably closer to the original.

Usage

from mlx_lm import load, generate

model, tokenizer = load("hermitdave/Qwen3.8-27B-Bonsai-MLX-2bit")
# or
model, tokenizer = load("hermitdave/Qwen3.8-27B-Bonsai-MLX-3bit")

response = generate(model, tokenizer, prompt="Explain quantum entanglement in one paragraph.")
print(response)

Or via oMLX: just point it at the model directory and hit "Serve."

Credits

  • Prism ML — for the original Ternary Bonsai 2 and the Hadamard quantization research that inspired this. The quality of their 2-bit work is remarkable, and these models exist because theirs did first.
  • Hermes Agent (Nous Research) — for the conversion script, Hadamard unfolding logic, and debugging through multiple broken iterations. This was a collaborative engineering effort.

Limitations

  • Slightly larger than Bonsai 2 at 2-bit (9.4 GB vs 8.6 GB) — the Hadamard transform adds ~0.8 GB overhead.
  • Quality is estimated, not yet benchmarked against MMLU/GSM8K/etc.
  • Derived from Qwen3.8-27B via PrismML's quantization — any base model issues propagate through.

What's Next

  • Run the standard benchmark suite (MMLU, GSM8K, HumanEval, etc.)
  • Compare quality across the bit-width ladder
  • Try the recipe on other Bonsai-format models

This work was Hermes Agent finding a pragmatic path between "best possible quantization" and "actually runs on my machine."

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon.

Ревизия весов
8f581ec

0 моделей