/ Модель

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

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

reranker-msmarco-v1.1-ModernBERT-base-bce

Ранжирование текстаТекст → score6 профессий

Англоязычный кросс-энкодер ModernBERT, оценивающий релевантность пары запрос–документ для повторного ранжирования поиска.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это англоязычный кросс-энкодер kwondw/reranker-msmarco-v1.1-ModernBERT-base, созданный дообучением answerdotai/ModernBERT-base на парах запрос–текст из MS MARCO с помощью sentence-transformers. Модель совместно обрабатывает запрос и документ и выдаёт оценку релевантности, которую можно использовать для повторного ранжирования результатов поиска и семантического поиска.

Модель построена на ModernBERT-base с архитектурой ModernBertForSequenceClassification, содержит 149 млн параметров и принимает текстовые последовательности длиной до 8192 токенов. В README приведены результаты оценки на наборах NanoMSMARCO, NanoNFCorpus, NanoNQ и NanoBEIR; фактическое качество зависит от данных и сценария применения.

Карточка не сообщает лицензию, поэтому условия использования по ней определить нельзя. Обучение на MS MARCO и англоязычная базовая модель указывают на основную ориентацию на английский; качество на других языках не подтверждено.

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

  • Повторное ранжирование найденных по запросу документов
  • Сортировка пассажей по релевантности вопросу
  • Повышение качества семантического поиска
  • Оценка релевантности кандидатов в поисковой выдаче

Ограничения

Карточка описывает обучение и оценивание на англоязычных данных; качество для других языков не подтверждено. Лицензия в предоставленных материалах не указана.

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

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

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

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

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

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

Открыть на Hugging Face

CrossEncoder based on answerdotai/ModernBERT-base

This is a Cross Encoder model finetuned from answerdotai/ModernBERT-base on the ms_marco dataset using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.

Model Details

Model Description

  • Model Type: Cross Encoder
  • Base model: answerdotai/ModernBERT-base
  • Maximum Sequence Length: 8192 tokens
  • Number of Output Labels: 1 label
  • Supported Modality: Text
  • Training Dataset:
    • ms_marco

Model Sources

Full Model Architecture

CrossEncoder(
  (0): Transformer({'transformer_task': 'sequence-classification', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'logits'}}, 'module_output_name': 'scores', 'architecture': 'ModernBertForSequenceClassification'})
)

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 CrossEncoder

# Download from the 🤗 Hub
model = CrossEncoder("kwondw/reranker-msmarco-v1.1-ModernBERT-base-bce")
# Get scores for pairs of inputs
pairs = [
    ['define ransom', 'Full Definition of RANSOM. transitive verb. 1. : to deliver especially from sin or its penalty. 2. : to free from captivity or punishment by paying a price. — ran·som·er noun. See ransom defined for English-language learners. rescue, deliver, redeem, ransom, reclaim, save mean to set free from confinement or danger. rescue implies freeing from imminent danger by prompt or vigorous action.'],
    ['what does atlas copco do', 'Atlas Copco is a Swedish industrial company that was founded in 1873. It manufactures industrial tools and equipment. The Atlas Copco Group is a global industrial group of companies headquartered in Nacka, Sweden. In 2014, global revenues totalled SEK 94 billion, and the company employed more than 44,000 people. 1 2009 – Atlas Copco is the first company to get a compressor certified for 100 percent energy recovery by the TUEV tüv (Institute German Technical Monitoring).  association'],
    ['two situations in which dna fingerprinting is useful', 'Paternity and Maternity This is also a well known use for DNA fingerprinting. This is the test used to find out who is the father of a baby or children. Every individual has a VNTR pattern which is inherited from their parents.'],
    ['sustainable business strategy definition', 'Jupiterimages/Brand X Pictures/Getty Images. A business strategy defines how a company intends to operate in its markets. As environmental awareness has grown over the recent decades, businesses of all forms are being forced to incorporate more sustainable approaches to carrying out their activities.'],
    ['how do you determine salinity', 'RSS Feeds. When we measure the salinity of water, we look at how much dissolved salt is in the water, or the concentration of salt in the water. Concentration is the amount (by weight) of salt in water and can be expressed in parts per million (ppm). Here are the classes of water:'],
]
scores = model.predict(pairs)
print(scores)
# [0.2587 0.4132 0.1375 0.1348 0.0626]

# Or rank different texts based on similarity to a single text
ranks = model.rank(
    'define ransom',
    [
        'Full Definition of RANSOM. transitive verb. 1. : to deliver especially from sin or its penalty. 2. : to free from captivity or punishment by paying a price. — ran·som·er noun. See ransom defined for English-language learners. rescue, deliver, redeem, ransom, reclaim, save mean to set free from confinement or danger. rescue implies freeing from imminent danger by prompt or vigorous action.',
        'Atlas Copco is a Swedish industrial company that was founded in 1873. It manufactures industrial tools and equipment. The Atlas Copco Group is a global industrial group of companies headquartered in Nacka, Sweden. In 2014, global revenues totalled SEK 94 billion, and the company employed more than 44,000 people. 1 2009 – Atlas Copco is the first company to get a compressor certified for 100 percent energy recovery by the TUEV tüv (Institute German Technical Monitoring).  association',
        'Paternity and Maternity This is also a well known use for DNA fingerprinting. This is the test used to find out who is the father of a baby or children. Every individual has a VNTR pattern which is inherited from their parents.',
        'Jupiterimages/Brand X Pictures/Getty Images. A business strategy defines how a company intends to operate in its markets. As environmental awareness has grown over the recent decades, businesses of all forms are being forced to incorporate more sustainable approaches to carrying out their activities.',
        'RSS Feeds. When we measure the salinity of water, we look at how much dissolved salt is in the water, or the concentration of salt in the water. Concentration is the amount (by weight) of salt in water and can be expressed in parts per million (ppm). Here are the classes of water:',
    ]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]

Evaluation

Metrics

Cross Encoder Reranking

  • Datasets: NanoMSMARCO_R100, NanoNFCorpus_R100 and NanoNQ_R100
  • Evaluated with CrossEncoderRerankingEvaluator with these parameters:
    {
        "at_k": 10,
        "always_rerank_positives": true
    }
    
MetricNanoMSMARCO_R100NanoNFCorpus_R100NanoNQ_R100
map0.4889 (-0.0007)0.3263 (+0.0653)0.5004 (+0.0808)
mrr@100.4798 (+0.0023)0.5073 (+0.0075)0.5073 (+0.0806)
ndcg@100.5577 (+0.0172)0.3438 (+0.0187)0.5555 (+0.0548)

Cross Encoder Nano BEIR

  • Dataset: NanoBEIR_R100_mean
  • Evaluated with CrossEncoderNanoBEIREvaluator with these parameters:
    {
        "dataset_names": [
            "msmarco",
            "nfcorpus",
            "nq"
        ],
        "dataset_id": "sentence-transformers/NanoBEIR-en",
        "rerank_k": 100,
        "at_k": 10,
        "always_rerank_positives": true
    }
    
MetricValue
map0.4385 (+0.0485)
mrr@100.4981 (+0.0301)
ndcg@100.4856 (+0.0303)

Training Details

Training Dataset

ms_marco

  • Dataset: ms_marco
  • Size: 666,193 training samples
  • Columns: query, passage, and label
  • Approximate statistics based on the first 100 samples:
    querypassagelabel
    typestringstringint
    modalitytexttext
    detailsmin: 5 tokensmean: 9.21 tokensmax: 19 tokensmin: 39 tokensmean: 94.57 tokensmax: 163 tokens0: ~85.58%1: ~14.42%
  • Samples:
    querypassagelabel
    how did the vietnam war contributed to the war powers resolutionThe War Powers Act is a reaction to the Vietnam War. Congress passed it in 1973 when the United States withdrew from combat operations in Vietnam after more than a decade. The War Powers Act attempted to correct what Congress and the American public saw as excessive war-making powers in the hands of the president. Congress was also attempting to correct a mistake of its own.0
    what is Fra Angelico contribution renaissance artFra Angelico Facts. Fra Angelico was an early Italian Renaissance artist and a monk, considered to be one of the most talented fresco painters of his time. He was born Guido di Pietro in approximately 1395 at Rupecanina in Mugello, but nothing is known of his parents.1
    what is mederma made ofMederma is made from a patented formula which combines unique ingredients such as Cepalin, centella asiatica leaf extract and hyaluronic acid. Cepalin is the main active ingredient of the product and is an onion extract that has been known to soothe the skin from inflammation and irritation. 1 While this will not do much in terms of the reduction of stretch marks, softer skin will be less likely to crack or show the wear of agedness. 2 Unfortunately, such a positive trait is not what most consumers would be primarily looking for when purchasing Mederma.1
  • Loss: BinaryCrossEntropyLoss with these parameters:
    {
        "activation_fn": "torch.nn.modules.linear.Identity",
        "pos_weight": null
    }
    

Evaluation Dataset

ms_marco

  • Dataset: ms_marco
  • Size: 10,000 evaluation samples
  • Columns: query, passage, and label
  • Approximate statistics based on the first 100 samples:
    querypassagelabel
    typestringstringint
    modalitytexttext
    detailsmin: 4 tokensmean: 8.66 tokensmax: 16 tokensmin: 37 tokensmean: 93.02 tokensmax: 170 tokens0: ~87.50%1: ~12.50%
  • Samples:
    querypassagelabel
    define ransomFull Definition of RANSOM. transitive verb. 1. : to deliver especially from sin or its penalty. 2. : to free from captivity or punishment by paying a price. — ran·som·er noun. See ransom defined for English-language learners. rescue, deliver, redeem, ransom, reclaim, save mean to set free from confinement or danger. rescue implies freeing from imminent danger by prompt or vigorous action.0
    what does atlas copco doAtlas Copco is a Swedish industrial company that was founded in 1873. It manufactures industrial tools and equipment. The Atlas Copco Group is a global industrial group of companies headquartered in Nacka, Sweden. In 2014, global revenues totalled SEK 94 billion, and the company employed more than 44,000 people. 1 2009 – Atlas Copco is the first company to get a compressor certified for 100 percent energy recovery by the TUEV tüv (Institute German Technical Monitoring). association1
    two situations in which dna fingerprinting is usefulPaternity and Maternity This is also a well known use for DNA fingerprinting. This is the test used to find out who is the father of a baby or children. Every individual has a VNTR pattern which is inherited from their parents.0
  • Loss: BinaryCrossEntropyLoss with these parameters:
    {
        "activation_fn": "torch.nn.modules.linear.Identity",
        "pos_weight": null
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 32
  • per_device_eval_batch_size: 32
  • learning_rate: 2e-05
  • num_train_epochs: 1
  • warmup_steps: 0.1
  • seed: 12
  • fp16: True
  • load_best_model_at_end: True
  • ddp_find_unused_parameters: False

All Hyperparameters

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

Training Logs

EpochStepTraining LossValidation LossNanoMSMARCO_R100_ndcg@10NanoNFCorpus_R100_ndcg@10NanoNQ_R100_ndcg@10NanoBEIR_R100_mean_ndcg@10
-1-1--0.0186 (-0.5218)0.2940 (-0.0310)0.0428 (-0.4579)0.1185 (-0.3369)
0.000110.7090-----
0.096110000.3989-----
0.10001041-0.39210.1024 (-0.4380)0.2928 (-0.0322)0.1595 (-0.3411)0.1849 (-0.2705)
0.192120000.3664-----
0.20002082-0.35610.4520 (-0.0884)0.2777 (-0.0474)0.4784 (-0.0223)0.4027 (-0.0527)
0.288230000.3434-----
0.30003123-0.35140.5371 (-0.0033)0.3322 (+0.0072)0.5049 (+0.0042)0.4581 (+0.0027)
0.384340000.3414-----
0.40004164-0.34460.5558 (+0.0154)0.3071 (-0.0180)0.5070 (+0.0063)0.4566 (+0.0012)
0.480450000.3380-----
0.55205-0.34020.5577 (+0.0172)0.3438 (+0.0187)0.5555 (+0.0548)0.4856 (+0.0303)
0.576460000.3345-----
0.60016246-0.33910.5382 (-0.0022)0.3244 (-0.0006)0.5858 (+0.0851)0.4828 (+0.0274)
0.672570000.3337-----
0.70017287-0.33600.5464 (+0.0060)0.3210 (-0.0040)0.5506 (+0.0500)0.4727 (+0.0173)
0.768680000.3309-----
0.80018328-0.33730.5479 (+0.0075)0.3173 (-0.0077)0.5507 (+0.0501)0.4720 (+0.0166)
0.864690000.3265-----
0.90019369-0.33130.5658 (+0.0254)0.3079 (-0.0172)0.5695 (+0.0688)0.4811 (+0.0257)
0.9607100000.3256-----
-1-1--0.5577 (+0.0172)0.3438 (+0.0187)0.5555 (+0.0548)0.4856 (+0.0303)
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 1.6 hours
  • Evaluation: 20.4 minutes
  • Total: 1.9 hours

Framework Versions

  • Python: 3.12.13
  • Sentence Transformers: 6.0.1
  • Transformers: 5.0.0
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.13.0
  • Datasets: 5.0.0
  • Tokenizers: 0.22.2

Additional Resources

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",
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей