/ Модель

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

Размер весов
8,9 ГБ
Лицензия
Apache 2.0
Архитектура
gemma4_unified · dense
Базовая модель
gemma-4-12B-coder-fable5-composer2.5-v1
Библиотека
mlx
Опубликована
14 июл 2026

gemma-4-12B-coder-fable5-composer2.5-v1-OptiQ-4bit

Изображение и текст → текст11 профессий

Это 4-битная смешанно-точная MLX-квантизация модели yuxinlu1/gemma-4-12B-coder-fable5-composer2.5-v1, созданная сообществом mlx-community с помощью инструментария mlx-optiq.

1 711скачиваний за 30 дней10лайковвеса обновлены15 сен 2026

Бенчмарки

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

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

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

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

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

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

Исходная модель представляет собой дообученную для программирования версию Gemma-4-12B. Вариант предназначен для локального запуска на компьютерах Apple Silicon без PyTorch и облачных сервисов.

Модель ориентирована прежде всего на генерацию и анализ кода, рассуждения, ответы на вопросы, арифметику и работу с изображениями. Она использует архитектуру encoder-free gemma4_unified с мультимодальным обработчиком; входные изображения поддерживаются, а мультимодальный embedder сохранён в формате bf16. Языковая часть содержит 328 квантизируемых слоёв: 156 чувствительных слоёв работают в 8-bit, остальные 172 — в 4-bit. Средняя эффективная точность составляет 5,216 бит на вес, размер модели на диске — около 8,4 ГБ вместо 22 ГБ для версии bf16, поэтому она рассчитана на запуск, в частности, на Mac с 16 ГБ памяти. Точный размер контекста и список поддерживаемых языков в карточке не указаны.

К сильным сторонам относятся существенное снижение требований к памяти, поддержка изображений, локальная работа и сохранение более высокой точности для чувствительных слоёв. Модель способна рассуждать перед ответом, поэтому ей требуется достаточный лимит токенов. Ограничения связаны с отсутствием собственных тестов производительности для этой квантизации, переносом схемы распределения разрядности с базовой модели и неизбежной погрешностью 4-битного представления. Для загрузки необходима регистрация архитектуры через mlx-optiq. Модель распространяется по лицензии Apache-2.0 и должна использоваться на тех же условиях, что и исходная модель.

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

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

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

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

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

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

Открыть на Hugging Face

mlx-community/gemma-4-12B-coder-fable5-composer2.5-v1-OptiQ-4bit

Built with mlx-optiq, the MLX-native toolkit to quantize, fine-tune, and serve LLMs locally on Apple Silicon, no PyTorch and no cloud. Try the Lab · All OptiQ quants · Docs

A 4-bit mixed-precision MLX quant of yuxinlu1/gemma-4-12B-coder-fable5-composer2.5-v1, a coding fine-tune of Gemma-4-12B. Sensitive layers are kept at 8-bit and robust ones at 4-bit.

22 GB of bf16 weights become 8.4 GB, which fits comfortably on a 16 GB Mac.

Image input works. Gemma-4-12B is the encoder-free gemma4_unified variant, and its multimodal embedder is kept at bf16 in a sidecar.

Quantization details

PropertyValue
Predominant precision4-bit
Layers at 8-bit (sensitive)156
Layers at 4-bit (robust)172
Total quantized layers328
Achieved bits per weight5.216
Group size64
Multimodal embedderbf16, in optiq/optiq_vision.safetensors
Size on disk8.4 GB, from a 22 GB bf16 base

We follow the same naming convention llama.cpp uses for Q4_K_M and similar mixed-precision quants: the "4-bit" label is the predominant precision, not the weighted average.

How the bit-widths were chosen

The per-layer allocation is transferred from mlx-community/gemma-4-12B-it-OptiQ-4bit, where it was derived by a KL-divergence sensitivity sweep against the bf16 reference on a six-domain calibration mix.

This model is a fine-tune of google/gemma-4-12B-it with an unchanged architecture (every shape field of the text config matches), so all 328 quantizable layers map across exactly and the allocation lands at the same 5.216 bits per weight when recomputed against this model's own tensors.

These are measured bit-widths, not a static rule-of-thumb recipe. But they were measured on the base model, not on this fine-tune. Fine-tuning shifts weights, so this model's own per-layer sensitivities could differ somewhat from the base's. Which layers are fragile is mostly a property of the architecture, so the transfer is sound, but it is a transfer and you should know that.

Only the language tower is quantized. The multimodal embedder stays at bf16, which is how every OptiQ VLM ships.

Usage

gemma4_unified needs OptiQ's model registration, so load it through mlx-optiq:

pip install mlx-optiq
import optiq  # registers the gemma4_unified architecture with mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/gemma-4-12B-coder-fable5-composer2.5-v1-OptiQ-4bit")
prompt = tokenizer.apply_chat_template(
    [{"role": "user", "content": "Write a Python function to merge two sorted lists."}],
    add_generation_prompt=True, tokenize=False)
print(generate(model, tokenizer, prompt=prompt, max_tokens=512))

Or serve it over an OpenAI-compatible endpoint:

optiq serve --model mlx-community/gemma-4-12B-coder-fable5-composer2.5-v1-OptiQ-4bit

This model reasons before answering (it emits a <|channel>thought block), so give it enough max_tokens to finish.

Verification

Generation was exercised on the finished artifact before release: factual recall, arithmetic, and code generation (it correctly writes is_palindrome, reasoning about edge cases such as the empty string).

The quantization was also checked numerically: dequantizing individual layers out of the artifact and comparing them against the bf16 checkpoint gives 0.6-0.7% mean relative error on the 8-bit layers and 11-13% on the 4-bit layers, which is what each bit-width should cost.

No task benchmarks were run on this quant; for measured quality numbers on the base architecture, see the gemma-4-12B-it OptiQ card.

Quantization does not change the behaviour or alignment of the base model. Use it under the same terms as the original.

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

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

GPU в ailist

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

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

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

Класс архитектуры
Gemma4UnifiedForConditionalGeneration
Ревизия весов
74ae913

0 моделей