/ Модель

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

Контекст
8 192 токена
Параметры
149 млн
Архитектура
modernbert · dense
Библиотека
sentence-transformers
Опубликована
27 окт 2026

mve-ModernBERT-base-token-pooling-cap-16

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

Много-векторный энкодер ModernBERT, превращающий текст в токеновые векторы для семантического поиска с ранжированием MaxSim.

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

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Эмбеддинги» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Много-векторный текстовый энкодер tomaarsen, построенный на архитектуре ModernBERT и обученный с помощью библиотеки Sentence Transformers на наборе msmarco-bm25. Модель преобразует текст в последовательность векторов размерностью 128 на уровне токенов; релевантность пары запрос–документ оценивается методом позднего взаимодействия MaxSim. Максимальная длина входа составляет 8192 токена, общее число параметров — 149 млн.

Модель предназначена для семантического поиска и ранжирования документов по запросу, когда важно сравнивать отдельные токены запроса с представлениями документа. Обучение на парах запросов, положительных и отрицательных документов из msmarco-bm25 ориентирует её на поиск по текстовым коллекциям. Для запуска подходит Sentence Transformers; веса доступны в формате safetensors. Лицензия в предоставленных данных не указана.

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

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

Ограничения

Модель принимает только текст; её векторы и оценка MaxSim предназначены для сценариев позднего взаимодействия, поэтому для обычного одно-векторного поиска может потребоваться другая модель или отдельный этап агрегации. Язык обучения и лицензия в предоставленных данных не обозначены.

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

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

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

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

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

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

Открыть на Hugging Face

Multi-Vector Encoder

This is a Multi-Vector Encoder model trained on the msmarco-bm25 dataset using the sentence-transformers library. It maps inputs to sequences of 128-dimensional token-level vectors and scores them with late interaction (MaxSim), useful for semantic search with late interaction.

Model Details

Model Description

  • Model Type: Multi-Vector Encoder
  • Maximum Sequence Length: 8192 tokens
  • Output Dimensionality: 128 dimensions
  • Similarity Function: MaxSim
  • Supported Modality: Text
  • Training Dataset:
    • msmarco-bm25

Model Sources

Full Model Architecture

MultiVectorEncoder(
  (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'query_expansion': {'strategy': 'min', 'attend': False, 'token': None, 'length': 32}, 'architecture': 'ModernBertModel'})
  (1): Dense({'in_features': 768, 'out_features': 128, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity', 'module_input_name': 'token_embeddings', 'module_output_name': 'token_embeddings'})
  (2): MultiVectorMask({'skiplist_words': [], 'skiplist_tasks': ['document'], 'keep_only_token_ids': None})
  (3): Normalize({'module_input_name': 'token_embeddings', 'module_output_name': 'token_embeddings'})
)

Usage

Direct Usage (Sentence Transformers)

First install the Sentence Transformers library:

pip install -U sentence-transformers

Then you can load this model and run inference.

from sentence_transformers import MultiVectorEncoder

# Download from the 🤗 Hub
model = MultiVectorEncoder("tomaarsen/mve-ModernBERT-base-token-pooling-cap-16")
# Run inference: each input becomes a sequence of per-token vectors (variable length).
queries = [
    'when was the first computer launched',
]
documents = [
    'The IBM 610 was the first personal computer, and it was launched in 1957. 3 people found this useful.',
    'The IBM 610 was the first personal computer, and it was launched in 1957. 3 people found this useful.',
    'Tron Price Chart Bitcoin (TRX/BTC) Tron price for today is ฿0.00000417. It has a current circulating supply of 65.7 Billion coins and a total volume exchanged of ฿15,283',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings[0].shape, document_embeddings[0].shape)
# (32, 128) (24, 128)

# Get the MaxSim similarity scores
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[25.9310, 25.9310, 11.4906]])

Training Details

Training Dataset

msmarco-bm25

  • Dataset: msmarco-bm25
  • Size: 120,000 training samples
  • Columns: query, positive, and negative
  • Approximate statistics based on the first 100 samples:
    querypositivenegative
    typestringstringstring
    modalitytexttexttext
    detailsmin: 5 tokensmean: 9.2 tokensmax: 17 tokensmin: 31 tokensmean: 82.7 tokensmax: 187 tokensmin: 19 tokensmean: 83.45 tokensmax: 184 tokens
  • Samples:
    querypositivenegative
    cost to install hardwood floor per roomHow Much Does Hardwood Floors Cost? Installing a standard solid-strip hardwood floor averages about $8 a square foot for materials, insulation and site finishing, and up to $12 a square foot for wide pine planks, or $1,150-$1,750 for a 12x12-foot room. Factory-finished wood starts at $8 a square foot installed, but generally runs $10-$14, or $1,140-$2,000 for a 12x12 space.Cost to Install a Hardwood Floor. 1 Share. 2 Hiring Local Professionals. 3 Sponsored Services. 4 Cost to Install a Hardwood Floor - Notes and General Information. 5 Cost to Install a Hardwood Floor - Unit Price References. 6 Hardwood Floor Installation - Average Cost Per Square Foot. 7 Help the homewyse Community.
    football colleges in georgiaFour-Year Georgia Universities or Colleges With Football Teams. There are 735 four-year colleges and universities that field football teams in the United States as of 2011. Six hundred thirty-nine belong to the National Collegiate Athletic Association's various divisions and 96 to the National Association of Intercollegiate Athletics.NCAA Division II (with football) Colleges in Georgia. If you're looking for Georgia NCAA Division II (with football) literacy rates, CALiteracy.org can help you find the schools with the most to offer. The information found here provides state literacy rates and information for NCAA Division II (with football) colleges across Georgia.
    what does glucosamine sulphate doGlucosamine sulfate is a chemical found in the human body. It is used by the body to produce a variety of other chemicals that are involved in building tendons, ligaments, cartilage, and the thick fluid that surrounds joints. Joints are cushioned by the fluid and cartilage that surround them.or example, the glucosamine sulfate that is put into dietary supplements is often harvested from the shells of shellfish. Glucosamine sulfate used in dietary supplements does not always come from natural sources. It can also be made in a laboratory.“Glucosamine sulphate, which is stabilized with sodium chloride or table salt, can contain as much as 30% sodium,” Keith says. “This is a massive consideration for people who want to reduce their dietary intake of sodium (salt).” Glucosamine HCL and glucosamine sulphate 2KCL do not contain sodium chloride.
  • Loss: MultiVectorTokenPoolingLoss with these parameters:
    {
        "loss": "CachedMultiVectorMultipleNegativesRankingLoss",
        "token_poolings": [
            "HierarchicalTokenPooling(pool_factor=1.0, max_tokens=None, distance_threshold=None, num_protected_tokens=1, normalize_embeddings=True, tasks=['document'])",
            "HierarchicalTokenPooling(pool_factor=1.0, max_tokens=16, distance_threshold=None, num_protected_tokens=1, normalize_embeddings=True, tasks=['document'])"
        ],
        "weights": [
            0.5,
            0.5
        ],
        "n_poolings_per_step": -1
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 256
  • num_train_epochs: 1
  • learning_rate: 3e-05
  • warmup_steps: 0.05
  • bf16: True
  • data_seed: 42
  • dataloader_pin_memory: False
  • batch_sampler: no_duplicates
  • max_length: 300

All Hyperparameters

  • per_device_train_batch_size: 256
  • num_train_epochs: 1
  • max_steps: -1
  • learning_rate: 3e-05
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_steps: 0.05
  • optim: adamw_torch_fused
  • optim_args: None
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • optim_target_modules: None
  • gradient_accumulation_steps: 1
  • average_tokens_across_devices: True
  • max_grad_norm: 1.0
  • label_smoothing_factor: 0.0
  • bf16: True
  • fp16: False
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • use_liger_kernel: False
  • liger_kernel_config: None
  • use_cache: False
  • neftune_noise_alpha: None
  • torch_empty_cache_steps: None
  • auto_find_batch_size: False
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • include_num_input_tokens_seen: no
  • log_level: passive
  • log_level_replica: warning
  • disable_tqdm: False
  • project: huggingface
  • trackio_space_id: trackio
  • per_device_eval_batch_size: 8
  • prediction_loss_only: True
  • eval_on_start: False
  • eval_do_concat_batches: True
  • eval_use_gather_object: False
  • eval_accumulation_steps: None
  • include_for_metrics: []
  • batch_eval_metrics: False
  • save_only_model: False
  • save_on_each_node: False
  • enable_jit_checkpoint: False
  • push_to_hub: False
  • hub_private_repo: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_always_push: False
  • hub_revision: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • restore_callback_states_from_checkpoint: False
  • full_determinism: False
  • seed: 42
  • data_seed: 42
  • use_cpu: False
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • parallelism_config: None
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_pin_memory: False
  • dataloader_persistent_workers: False
  • dataloader_prefetch_factor: None
  • remove_unused_columns: True
  • label_names: None
  • train_sampling_strategy: random
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • ddp_backend: None
  • ddp_timeout: 1800
  • fsdp: []
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • deepspeed: None
  • debug: []
  • skip_memory_metrics: True
  • do_predict: False
  • resume_from_checkpoint: None
  • warmup_ratio: None
  • local_rank: -1
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}
  • max_length: 300

Training Logs

EpochStepTraining Loss
0.0213105.9057
0.0426205.4798
0.0640302.7879
0.0853401.7176
0.1066501.2152
0.1279601.0330
0.1493700.9277
0.1706800.8364
0.1919900.7798
0.21321000.7695
0.23451100.7242
0.25591200.6823
0.27721300.6779
0.29851400.6493
0.31981500.6578
0.34121600.6132
0.36251700.6564
0.38381800.6050
0.40511900.6054
0.42642000.5996
0.44782100.5863
0.46912200.6101
0.49042300.6012
0.51172400.5820
0.53302500.5637
0.55442600.5389
0.57572700.5503
0.59702800.5595
0.61832900.5620
0.63973000.5471
0.66103100.5031
0.68233200.5465
0.70363300.5190
0.72493400.5486
0.74633500.5450
0.76763600.5335
0.78893700.5109
0.81023800.4996
0.83163900.5130
0.85294000.5364
0.87424100.5283
0.89554200.5343
0.91684300.5361
0.93824400.5282
0.95954500.5017
0.98084600.5266

Training Time

  • Training: 32.4 minutes

Framework Versions

  • Python: 3.12.3
  • Sentence Transformers: 6.3.0.dev0
  • Transformers: 5.4.0
  • PyTorch: 2.11.0+cu128
  • Accelerate: 1.13.0
  • Datasets: 4.8.5
  • Tokenizers: 0.22.2

Citation

BibTeX

Sentence Transformers

@inproceedings{reimers-2019-sentence-bert,
    title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
    author = "Reimers, Nils and Gurevych, Iryna",
    booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
    month = "11",
    year = "2019",
    publisher = "Association for Computational Linguistics",
    url = "https://arxiv.org/abs/1908.10084",
}

MultiVectorTokenPoolingLoss

@inproceedings{josef2026learntopool,
    title={Learn to Pool: Lightweight Fine-Tuning for Flexible Multi-Vector Compression},
    author={Stefan Josef},
    booktitle={1st Late Interaction Workshop (LIR) at ECIR 2026},
    year={2026},
}

CachedMultiVectorMultipleNegativesRankingLoss

@misc{gao2021scaling,
    title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
    author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
    year={2021},
    eprint={2101.06983},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

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

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

GPU в ailist

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

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertModel
Ревизия весов
2218fa1

0 моделей