/ Модель

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

Контекст
40 960 токенов
Параметры
7,6 млрд
Размер весов
16,4 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
CLM-v0.1-8B
Библиотека
mlx
Опубликована
26 сен 2026

CLM-v0.1-8B-MLX

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

Контрастивная модель на базе Qwen3-8B для получения текстовых эмбеддингов и ранжирования кандидатов в MLX на Apple Silicon.

175скачиваний за 30 дней0лайковвеса обновлены27 сен 2026

Бенчмарки

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

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

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

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

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

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

czl/CLM-v0.1-8B-MLX — версия контрастивной модели CLM-v0.1-8B, подготовленная для запуска через MLX на Apple Silicon. Это модель семейства Qwen3 с плотной архитектурой, примерно 7,6 млрд параметров и контекстом до 40 960 токенов. Вариант bf16 служит эталоном для сравнения квантованных версий; README описывает кодирование текста и ранжирование кандидатов по эмбеддингам.

Модель предназначена для сравнения кандидатов, ранжирования вариантов и оценки действий в агентных сценариях. Она использует last-token pooling для получения 4096-мерных эмбеддингов и применяет стек проекционных голов; оценки вероятностей зависят от набора кандидатов. Карточка сообщает об оценке на 23 926 вопросах и о сравнении результатов разных разрядностей с эталоном bf16.

Это ранжировщик, а не генеративная модель: выходная проекция lm_head при pooling не используется. Проекционные головы привязаны к эмбеддингам Qwen3-8B размерности 4096, а ошибки косинусного сходства усиливаются в 100 раз в стеке голов. Лицензия — Apache-2.0; запуск рассчитан на MLX и Apple Silicon.

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

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

Ограничения

Модель предназначена для ранжирования, а не генерации; её проекционные головы привязаны к last-token pooling Qwen3-8B и эмбеддингам размерности 4096. Оценки вероятностей относительны к набору кандидатов, а стек голов усиливает ошибку косинусного сходства в 100 раз.

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

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

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

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

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

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

Открыть на Hugging Face

CLM-v0.1-8B — MLX encoder

The encoder half of Contrastive-LM/CLM-v0.1-8B, unquantised bf16 for MLX on Apple Silicon. This repo is the reference every width below is measured against, not a quantisation of it.

⚠️ Not recommended for ranking: 4bit. agreement on decisive (>1 nat) decisions 0.889651 < 0.995; planner accuracy falls 31.95 points, beyond the 3.0-point budget. Published with the measured numbers so the result is reproducible, not because it is a drop-in replacement for the bf16 encoder.

Repositories

One repository per bit width, matching mlx-community. Each has the weights at the repo root, so the Hub file browser lists every file with its size and mlx_lm.load("<repo>") works.

repowidthverdict
czl/CLM-v0.1-8B-MLX-8bit8-bitrecommended
czl/CLM-v0.1-8B-MLX-6bit6-bitrecommended
czl/CLM-v0.1-8B-MLX-4bit4-bitnot recommended
czl/CLM-v0.1-8B-MLX (this repo)bf16the reference

A parallel outq2 line ships each width again with lm_head at 2-bit instead of the bulk width. Pooling never evaluates the output projection, so those are indistinguishable from re-running the repos above — measured over the full corpus against a matched null, since MLX is not run-to-run deterministic on the GPU — and smaller for free:

repovs its basesmaller by
czl/CLM-v0.1-8B-MLX-8bit-outq28bit389 MB
czl/CLM-v0.1-8B-MLX-6bit-outq26bit233 MB
czl/CLM-v0.1-8B-MLX-4bit-outq24bit78 MB

Pooling only — a 2-bit lm_head is a wrecked output projection and is not for generation.

Evaluation

Agreement against a bf16 MLX reference of the same encoder in the same runtime, over 23,926 scored System One questions, through the real head stack (argmax(scale · cos), scale = 100.0 — cosine error is amplified 100×).

variantcos mincos meantop-1top-1 (decisive)planner acc. Δverdict
bf16––1.0000 (ref)1.0000 (ref)–reference
8bit0.982940.999850.98881.0000-0.46 ptsyes
6bit0.896420.999180.98281.0000+0.70 ptsyes
4bit0.878250.991910.61860.8897-31.95 ptsno

Pass line. top-1 >= 1.0000 — the measured bf16-vs-bf16 noise floor of this corpus in this runtime — and top-1 (decisive) >= 0.995, where decisive means the reference's own top-1 led by more than 1 nat. A third condition applies: planner accuracy Δ, the change in accuracy against the T-Rex physics planner's label. A variant that holds every decisive decision but still loses measurable accuracy is marked usable rather than recommended.

Against the numbers published in the parent model card

casemodel card (vLLM bf16)this runtime (bf16 reference)
anchor-invoice/departmentbillingbilling — argmax matches, billing=0.98818, technical=0.01182
anchor-tides/rank00 — argmax matches, 0=0.99386, 1=0.00003, 2=0.00611

How to use

Each per-width repo is a standard mlx-community layout. Load one directly:

mlx_lm.load("czl/CLM-v0.1-8B-MLX-8bit")

Or serve it for CLM:

python -m clm_mlx.server --model <dir> --port 8092
clm-serve --emb-url http://127.0.0.1:8092/v1/embeddings

Quantization details

Tool: mlx-lm 0.31.3, one mlx_lm.convert pass per width:

mlx_lm.convert --hf-path Qwen/Qwen3-8B --mlx-path <dir> -q --q-bits N --q-group-size 32
  • affine mode, per-group bf16 scale and bias.
  • group_size = 32 — measured best at every width. mlx-lm's default (64) and Qwen's mlx-community repos (128) are both worse here. See the per-width cards for the full group-size ladder.

Limitations

  • The projection heads are encoder-locked to Qwen3-8B last-token-pooled 4096-d embeddings.
  • This is a ranker, not a generator. lm_head is never evaluated under pooling.
  • The head stack amplifies cosine error 100×. Read the confident-decision column.
  • Probabilities are relative to the candidate set.

License

Apache-2.0, inherited from Qwen/Qwen3-8B and Contrastive-LM/CLM-v0.1-8B. Not gated.

Citation

@misc{kwok2026contrastivelanguagemodels,
  title={Contrastive Language Models: A System One Model for Fast and Generalizable Decision-Making},
  author={Jacky Kwok and Hangoo Kang and Tarun Suresh and Jon Saad-Falcon and Marco Pavone and Christopher Ré and Azalia Mirhoseini},
  year={2026},
  note={Notion Blog},
  url={https://contrastive-lm.notion.site}
}

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

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

GPU в ailist

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

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

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

Класс архитектуры
Qwen3ForCausalLM
Ревизия весов
d22299f

0 моделей