/ Модель

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

Контекст
512 токенов
Параметры
2,6 млн
Лицензия
Apache 2.0
Архитектура
bert_hash · dense
Базовая модель
bert-hash-pico
Опубликована
10 янв 2026

bert-hash-pico-embeddings

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

Компактная англоязычная модель NeuML для преобразования текстов в 80-мерные векторы семантического поиска и сравнения.

210скачиваний за 30 дней3лайкавеса обновлены15 июн 2026

Бенчмарки

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

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

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

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

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

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

BERT Hash Pico Embeddings — компактная модель NeuML на архитектуре BERT Hash, дообученная с помощью Sentence Transformers и дистилляции. Она преобразует предложения и абзацы в плотные векторы размерностью 80 для семантического поиска и сравнения текстов; также подходит для поиска парафраз, кластеризации и классификации текстов. Модель рассчитана на создание векторных индексов и использование в системах RAG, включая устройства с ограниченными ресурсами.

В карточке приведены результаты на подмножестве BEIR: качество немного уступает ColBERT MUVERA Pico, при этом 80-мерные векторы занимают существенно меньше места, чем стандартные 10 240-мерные векторы MUVERA. Метаданные указывают 2,6 млн параметров и контекст до 512 токенов; README приводит другую оценку размера — 448 тыс. параметров. Модель поддерживает английский язык и распространяется по лицензии Apache-2.0.

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

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

Ограничения

Модель предназначена прежде всего для английского языка; результаты на приведённых наборах BEIR немного уступают ColBERT MUVERA Pico. README и метаданные расходятся в оценке числа параметров: 448 тыс. и 2,6 млн соответственно.

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

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

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

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

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

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

Открыть на Hugging Face

BERT Hash Pico Embeddings

This is a BERT Hash Pico model fined-tuned using sentence-transformers. It maps sentences & paragraphs to a 80-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

This model is an alternative to MUVERA fixed-dimensional encoding with ColBERT models. MUVERA encoding enables encoding the multi-vector outputs of ColBERT into single dense vector outputs. While this is a great step, the main issue with MUVERA is that it tends to need wide vectors to be effective (5K - 10K dimensional vectors). bert-hash-pico-embeddings outputs 80-dimensional vectors.

The training dataset is a subset of this embedding training collection. The training workflow was a two step distillation process as follows.

Usage (txtai)

This model can be used to build embeddings databases with txtai for semantic search and/or as a knowledge source for retrieval augmented generation (RAG).

import txtai

embeddings = txtai.Embeddings(
  path="neuml/bert-hash-pico-embeddings",
  content=True,
  vectors={"trust_remote_code": True}
)
embeddings.index(documents())

# Run a query
embeddings.search("query to run")

Usage (Sentence-Transformers)

Alternatively, the model can be loaded with sentence-transformers.

from sentence_transformers import SentenceTransformer
sentences = ["This is an example sentence", "Each sentence is converted"]

model = SentenceTransformer("neuml/bert-hash-pico-embeddings", trust_remote_code=True)
embeddings = model.encode(sentences)
print(embeddings)

Usage (Hugging Face Transformers)

The model can also be used directly with Transformers.

from transformers import AutoTokenizer, AutoModel
import torch

# Mean Pooling - Take attention mask into account for correct averaging
def meanpooling(output, mask):
    embeddings = output[0] # First element of model_output contains all token embeddings
    mask = mask.unsqueeze(-1).expand(embeddings.size()).float()
    return torch.sum(embeddings * mask, 1) / torch.clamp(mask.sum(1), min=1e-9)

# Sentences we want sentence embeddings for
sentences = ['This is an example sentence', 'Each sentence is converted']

# Load model from HuggingFace Hub
tokenizer = AutoTokenizer.from_pretrained("neuml/bert-hash-pico-embeddings", trust_remote_code=True)
model = AutoModel.from_pretrained("neuml/bert-hash-pico-embeddings", trust_remote_code=True)

# Tokenize sentences
inputs = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')

# Compute token embeddings
with torch.no_grad():
    output = model(**inputs)

# Perform pooling. In this case, mean pooling.
embeddings = meanpooling(output, inputs['attention_mask'])

print("Sentence embeddings:")
print(embeddings)

Evaluation

The following table shows a subset of BEIR scored with the txtai benchmarks script.

This evaluation is compared against the ColBERT MUVERA series of models.

Scores reported are ndcg@10 and grouped into the following three categories.

BERT Hash Embeddings vs MUVERA

ModelParametersNFCorpusSciDocsSciFactAverage
BERT Hash Pico Embeddings0.4M0.20750.08120.39120.2266
ColBERT MUVERA Pico0.4M0.19260.05640.44240.2305

BERT Hash Embeddings vs MUVERA with maxsim re-ranking of the top 100 results per MUVERA paper

ModelParametersNFCorpusSciDocsSciFactAverage
BERT Hash Pico Embeddings0.4M0.27020.11040.59650.3257
ColBERT MUVERA Pico0.4M0.28210.10040.60900.3305

Compare to other models

ModelParametersNFCorpusSciDocsSciFactAverage
ColBERT MUVERA Pico (full multi-vector maxsim)0.4M0.30050.11170.64520.3525
all-MiniLM-L6-v222.7M0.30890.21640.65270.3927
mxbai-embed-xsmall-v124.1M0.31860.21550.65980.3980

In analyzing the results, bert-hash-pico-embeddings scores slightly worse than MUVERA with colbert-muvera-pico. Comparing the standard MUVERA output of 10240 vs 80 dimensions, 10K standard F32 vectors needs 400 MB of storage vs 3.2 MB

Keeping in mind this is only a 448K parameter model, the performance is still impressive at only ~2% of the number of parameters of popular small embeddings models.

While this isn't a state of the art model, it's an extremely competitive method for building vectors on edge and low resource devices.

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertHashModel'})
  (1): Pooling({'word_embedding_dimension': 80, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
)

More Information

Read more about the model in this article and this paper.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей