/ Модель

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

Контекст
8 192 токена
Лицензия
MIT
Архитектура
modernvbert · dense
Библиотека
colpali
Опубликована
23 сен 2025

modernvbert-embed

Языковая модельИзображение, текст → embedding8 профессий
2скачиваний за 30 дней7лайковвеса обновлены31 мар 2026

Описание модели

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

Компактный биэнкодерный vision-language энкодер ModernVBERT для общего кодирования изображений и визуального поиска по документам.

ModernVBERT-embed — компактный биэнкодерный vision-language энкодер из семейства ModernVBERT, разработанный авторами ModernVBERT. Модель содержит 250 млн параметров и предназначена для общего кодирования изображений после выравнивания визуальной и текстовой модальностей и контрастивного обучения; она не специализирована на отдельных задачах. В каталоге Hugging Face модель отнесена к visual-document-retrieval, а README уточняет, что это версия для общего кодирования изображений, в отличие от специализированных вариантов семейства.

Модель подходит для получения представлений изображений и визуального поиска по документам. Репозиторий использует библиотеку ColPali и формат safetensors; заявлена лицензия MIT. Для высокой пропускной способности на GPU README рекомендует Flash Attention 2.

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

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

Ограничения

Версия не специализирована на визуальном поиске документов, в отличие от дообученных вариантов ModernVBERT. Для высокой пропускной способности на GPU рекомендуется Flash Attention 2.

Публичные бенчмарки20

Результаты из открытых лидербордов в сравнении с лидерами каталога на 1 декабря 2026

Vidore3ComputerScienceRetrieval

0,2583

6 результатов: 0,2101–0,4806

Направление метрики неизвестно, сравнение не строится

MTEB

Vidore3ComputerScienceRetrieval.v2

0,3544

6 результатов: 0,3151–0,5971

Направление метрики неизвестно, сравнение не строится

MTEB

Vidore3EnergyRetrieval

0,2025

6 результатов: 0,0975–0,2025

Направление метрики неизвестно, сравнение не строится

MTEB

Vidore3EnergyRetrieval.v2

0,1998

6 результатов: 0,1278–0,2929

Направление метрики неизвестно, сравнение не строится

MTEB

Vidore3FinanceEnRetrieval

0,1158

6 результатов: 0,085–0,2959

Направление метрики неизвестно, сравнение не строится

MTEB

Vidore3FinanceEnRetrieval.v2

0,1913

6 результатов: 0,152–0,4176

Направление метрики неизвестно, сравнение не строится

MTEB

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

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

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

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

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

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

Открыть на Hugging Face

ModernVBERT-embed

bg

[!WARNING] 🚨 Migration guide to official transformers modeling

ModernVBERT is part of transformers since v5.3.0!

This becomes the official modeling for the model.

If you have a model based on the initial modeling, you can adapt the weigths to the new format supported by transformers. We provide a conversion script in this repo, you simply need to run:

python convert_model_weights.py \
 /path/to/legacy-modernvbert \
 /path/to/converted-modernvbert \

The converted model:

  • merges the split token embedding tables
  • rewrites model.connector.modality_projection.proj.weight
  • nests model.vision_model... under model.vision_model.vision_model...

Model

This is the model card for ModernVBERT-embed the dense encoder version of ModernVBERT not specialised on any tasks, made for general image encoding tasks.

Table of Contents

  1. Overview
  2. Usage
  3. Evaluation
  4. License
  5. Citation

Overview

The ModernVBERT suite is a suite of compact 250M-parameter vision-language encoders, achieving state-of-the-art performance in this size class, matching the performance of models up to 10x larger.

For more information about ModernVBERT, please check the arXiv preprint.

Models

  • ColModernVBERT is the late-interaction version that is fine-tuned for visual document retrieval tasks, our most performant model on this task.
  • BiModernVBERT is the bi-encoder version that is fine-tuned for visual document retrieval tasks.
  • ModernVBERT-embed is the bi-encoder version after modality alignment (using a MLM objective) and contrastive learning, without document specialization.
  • ModernVBERT is the base model after modality alignment (using a MLM objective).

Usage

🏎️ If your GPU supports it, we recommend using ModernVBERT with Flash Attention 2 to achieve the highest GPU throughput. To do so, install Flash Attention 2 as follows, then use the model as normal:

For now, the branch for using colmdernvbert is not yet merged in the official colpali repo, you need to clone the repo and checkout on the right branch to use it.

git clone https://github.com/illuin-tech/colpali.git
cd colpali
git checkout vbert
pip install -e .

Here is an example of masked token prediction using ModernVBERT:

import torch
from colpali_engine.models import BiModernVBert, BiModernVBertProcessor
from PIL import Image
from huggingface_hub import hf_hub_download

model_id = "ModernVBERT/modernvbert-embed"

processor = BiModernVBertProcessor.from_pretrained(model_id)
model = BiModernVBert.from_pretrained(
            model_id,
            torch_dtype=torch.float32,
            trust_remote_code=True
)

image = Image.open(hf_hub_download("HuggingFaceTB/SmolVLM", "example_images/rococo.jpg", repo_type="space"))
text = "This is a text"

# Prepare inputs
text_inputs = processor.process_texts([text])
image_inputs = processor.process_images([image])

# Inference
q_embeddings = model(**text_inputs)
corpus_embeddings = model(**image_inputs)

# Get the similarity scores
scores = processor.score(q_embeddings, corpus_embeddings)

print("Similarity scores:", scores)

Evaluation

table

ColModernVBERT matches the performance of models nearly 10x larger on visual document benchmarks. Additionally, it provides an interesting inference speed on CPU compared to the models of similar performance.

License

We release the ModernVBERT model architectures, model weights, and training codebase under the MIT license.

Citation

If you use ModernVBERT in your work, please cite:

@misc{teiletche2025modernvbertsmallervisualdocument,
      title={ModernVBERT: Towards Smaller Visual Document Retrievers}, 
      author={Paul Teiletche and Quentin Macé and Max Conti and Antonio Loison and Gautier Viaud and Pierre Colombo and Manuel Faysse},
      year={2025},
      eprint={2510.01149},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2510.01149}, 
}

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

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

GPU в ailist

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

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

Поиск по документам-картинкам пока не поддерживается.

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

0 моделей