/ Модель

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

Контекст
40 960 токенов
Параметры
3,7 млрд
Размер весов
8 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3 · dense
Базовая модель
Octen-Embedding-4B
Библиотека
mlx-embeddings
Опубликована
20 окт 2026

Octen-Embedding-4B-mlx-bf16

ЭмбеддингиТекст → embedding9 профессий

Многоязычная модель эмбеддингов Octen на базе Qwen3 для семантического поиска и извлечения информации на компьютерах Apple Silicon.

95скачиваний за 30 дней0лайковвеса обновлены20 окт 2026

Бенчмарки

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

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

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

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

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

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

Это общественная конверсия модели Octen-Embedding-4B в формат MLX для запуска на компьютерах Apple Silicon. Модель разработана командой Octen на основе Qwen3-Embedding-4B и дообучена для поиска; в этой версии используются веса bfloat16 без квантизации. Размер модели — около 3,7 млрд параметров, выходные эмбеддинги имеют 2560 измерений. Лицензия — Apache 2.0.

Модель преобразует тексты более чем на 100 языках в векторы для семантического поиска, извлечения информации, кластеризации и оценки сходства. В README заявлен контекст до 32 тысяч токенов, тогда как метаданные указывают 40 960 токенов. Для запросов и документов не требуется инструкция-префикс: оба типа текста кодируются одинаково.

Конверсия предназначена для нативной работы через MLX на Apple Silicon и занимает около 8 ГБ на диске. В описанном автором тесте поиска по многоязычным обращениям в поддержку и англоязычным статьям точность попадания нужной статьи на первое место составила 72,4%; это небольшой тест на одном наборе данных, поэтому качество следует проверять на собственных текстах. В README также отмечено, что действуют ограничения исходной модели.

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

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

Ограничения

Тест качества в карточке небольшой и охватывает один набор текстов, поэтому его результаты не гарантируют качество на других данных. Не смешивайте эмбеддинги разных вариантов модели в одном индексе; для этой версии README также указывает на ограничения исходной модели.

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

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

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

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

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

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

Открыть на Hugging Face

Octen-Embedding-4B for MLX (bf16)

Octen/Octen-Embedding-4B converted to MLX so it runs natively on Apple Silicon: bfloat16 weights, no quantization, 8.0 GB on disk. The model embeds text in 100+ languages into 2560 dimensions, for search, retrieval, clustering and similarity. It is a 4B-parameter Qwen3 model fine-tuned for retrieval, with a 32K-token context.

This is a community conversion, not an official Octen release. The weights are Octen's, fine-tuned from Qwen/Qwen3-Embedding-4B. Both are Apache 2.0, and so is this conversion. Credit for the model goes to the Octen and Qwen teams.

The three variants

RepositoryWeightsSize
juliensimon/Octen-Embedding-4B-mlx-bf16 (this repository)bfloat16 weights, no quantization8.0 GB
juliensimon/Octen-Embedding-4B-mlx-8bit8-bit affine quantization, group size 644.3 GB
juliensimon/Octen-Embedding-4B-mlx-4bit4-bit affine quantization, group size 642.3 GB

The three sizes

SizeVariantsDimensionsTime to embed 318 texts
0.6Bbf16, 8-bit, 4-bit10245 to 6 seconds
4Bbf16, 8-bit, 4-bit256035 to 55 seconds
8Bbf16, 8-bit, 4-bit409670 to 80 seconds

The last column is the time to embed the 178 tickets and 140 articles of the test below, 8 texts per batch, up to 1,024 tokens each, on an M3 Max with 48 GB, measured on 21 October 2026 and given as a range over the three variants. Quantization saved disk and memory and did not make embedding faster in these runs. Larger models retrieve better on the test below: top 1 is 67.1% at 0.6B, 72.4% at 4B and 78.2% at 8B (MLX bf16).

Quick start

pip install mlx-embeddings
import mlx.core as mx
from mlx_embeddings import load

model, tokenizer = load("juliensimon/Octen-Embedding-4B-mlx-bf16")

texts = [
    "How many days of webhook logs can I see on the Business plan?",
    "Business accounts can view up to 90 days of webhook logs.",
    "Wie lange werden Webhook-Protokolle gespeichert?",
    "Pasta carbonara needs eggs, pecorino and guanciale.",
]
inputs = tokenizer(texts, padding=True, truncation=True, max_length=1024, return_tensors="mlx")
embeddings = model(inputs["input_ids"], attention_mask=inputs["attention_mask"]).text_embeds  # (4, 2560)
embeddings = embeddings.astype(mx.float32)
embeddings = embeddings / mx.linalg.norm(embeddings, axis=1, keepdims=True)  # the model computes in bf16: renormalize in float32
mx.eval(embeddings)
print((embeddings @ embeddings.T).round(3))  # cosine similarities: related texts score high, the carbonara line scores low

The embedding is the last token's hidden state, normalized, as in the original model. The original model card asks for no instruction prefix, so queries and documents are embedded the same way.

Search across languages

import mlx.core as mx
from mlx_embeddings import load

model, tokenizer = load("juliensimon/Octen-Embedding-4B-mlx-bf16")


def embed(texts):
    inputs = tokenizer(texts, padding=True, truncation=True, max_length=1024, return_tensors="mlx")
    e = model(inputs["input_ids"], attention_mask=inputs["attention_mask"]).text_embeds.astype(mx.float32)
    e = e / mx.linalg.norm(e, axis=1, keepdims=True)
    mx.eval(e)
    return e


articles = [
    "Webhook logs: Starter accounts can view up to 7 days of logs, Team up to 30 days, Business up to 90 days.",
    "To create an invoice, select Invoices, click New invoice and choose the customer.",
    "Harborline retries a failed webhook delivery three times, after 10 seconds, 1 minute and 5 minutes.",
]
queries = [
    "Combien de jours de journaux de webhook puis-je consulter avec le plan Business ?",
    "Hoe maak ik een nieuwe factuur aan?",
]
scores = embed(queries) @ embed(articles).T  # (2, 3): one row per query
for q, row in zip(queries, scores.tolist(), strict=True):
    best = max(range(len(articles)), key=row.__getitem__)
    print(f"{q}\n  -> {articles[best][:60]}... ({row[best]:.2f})")

A French question finds the English webhook article, and a Dutch question finds the invoice article.

How faithful is the conversion

Run on 21 October 2026. The test: 170 support tickets in English, French, Dutch and German, each written from one of 140 English help articles (the development set of a workshop on fine-tuning small language models). The question is whether the ticket's own article is among the top k articles retrieved. The reference is the MLX bf16 conversion, because the original PyTorch model is too slow on CPU at this size to embed the set. The 0.6B conversion matched PyTorch within one ticket at every k (see the 0.6B cards), so this card checks the quantized variants against bf16.

ModelTop 1Top 3Top 5Top 10Cosine to bf16, meanCosine to bf16, worstSame top 1 as bf16
MLX bf16 (reference, this repository)72.4%90.0%97.1%98.8%11100%
MLX 8-bit72.4%90.0%97.1%98.8%0.99990.989599.4%
MLX 4-bit73.5%90.0%97.1%98.8%0.97670.965092.7%

8-bit gives the same retrieval as bf16 at every k. 4-bit scores two tickets higher at top 1 here, which is noise: its embeddings move more, and 92.7% of its top-1 picks match bf16. One benchmark on one language mix is not a general claim: check retrieval quality on your own data before you rely on it. If you store embeddings, embed documents and queries with the same variant.

Reproduce the conversion

mlx_embeddings.convert (mlx-embeddings 0.1.0, MLX 0.32.4) crashes on this model while re-saving tokenizer.json, a read-only file it copied from the Hub cache. This short wrapper copies files without their read-only mode:

import importlib, os, shutil

c = importlib.import_module("mlx_embeddings.convert")
_copyfile = shutil.copyfile


def plain_copy(src, dst, **_):
    dst = os.path.join(dst, os.path.basename(src)) if os.path.isdir(dst) else dst
    return _copyfile(src, dst)


c.shutil.copy = plain_copy
c.convert("Octen/Octen-Embedding-4B", mlx_path="out", dtype="bfloat16", quantize=False)

The sentence-transformers files of the original (modules.json and the like) are left out, because this repository holds MLX weights.

Limitations

  • The same limits as the original model apply. See its card.
  • Quantization changes embeddings a little, and more at 4 bits. Do not mix variants inside one index.
  • The test above is mine and small. It measures fidelity to the original and retrieval on one kind of text.

Citation

Please cite the Qwen3 Embedding work this model builds on:

@article{qwen3embedding,
  title={Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models},
  author={Zhang, Yanzhao and Li, Mingxin and Long, Dingkun and Zhang, Xin and Lin, Huan and Yang, Baosong and Xie, Pengjun and Yang, An and Liu, Dayiheng and Lin, Junyang and Huang, Fei and Zhou, Jingren},
  journal={arXiv preprint arXiv:2506.05176},
  year={2025}
}

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

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

GPU в ailist

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

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

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

Класс архитектуры
Qwen3Model
Ревизия весов
57fe5a7

0 моделей