/ Модель

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

Контекст
7 999 токенов
Параметры
395 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
ettin-encoder-400m
Библиотека
sentence-transformers
Опубликована
14 окт 2026

ettin-encoder-400m-reranker-msmarco32k-1e-4-20261014

Ранжирование текстаТекст → score

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Англоязычный кросс-энкодер на базе ModernBERT из семейства Ettin, дообученный tomaarsen с помощью Sentence Transformers на 65 536 примерах MS MARCO. Модель оценивает релевантность пары «запрос — текст» одним числовым баллом и предназначена для переранжирования результатов поиска и семантического поиска. Архитектура — ModernBertForSequenceClassification с одним выходным значением; модель принимает текст и рассчитана на последовательности до 291 токена по README, тогда как метаданные указывают контекст до 7 999 токенов.

Модель подходит для ранжирования англоязычных документов по запросу и улучшения выдачи поиска. Лицензия Apache-2.0 разрешает использование в соответствии с её условиями. Качество зависит от соответствия данных и запросов обучающему домену; входные последовательности следует ограничивать длиной, заявленной для модели в README.

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

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

Ограничения

README указывает максимальную длину последовательности 291 токен, а метаданные — контекст 7 999 токенов; для практического использования учитывайте ограничение, заданное конфигурацией модели. Модель обучена на англоязычных данных MS MARCO, поэтому её качество для других языков и доменов не подтверждено.

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

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

Открыть на Hugging Face

ettin-encoder-400m reranker MS MARCO pilot

This is a Cross Encoder model finetuned from jhu-clsp/ettin-encoder-400m 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: jhu-clsp/ettin-encoder-400m
  • Maximum Sequence Length: 291 tokens
  • Number of Output Labels: 1 label
  • Supported Modality: Text
  • Language: en
  • License: apache-2.0

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("tomaarsen/ettin-encoder-400m-reranker-msmarco32k-1e-4-20261014")
# Get scores for pairs of inputs
pairs = [
    ['what clothing do people wear in denmark guys', 'While suits and other forms of Western fashion are ubiquitous in Japan, most people also wear some of the more traditional styles of Japanese clothing. For example, you often â\x80¦ will see people wearing traditional Japanese clothing at weddings or funerals, graduations and even for the summer fireworks festivals--hanabi. You can learn about some of the different styles of Japanese clothing and--if you dare--try some of them yourself.'],
    ['what clothing do people wear in denmark guys', 'Yet even the Democratic presidential candidates, who say they love or want to learn from those countries, donâ\x80\x99t seem know how they actually work. Why Weâ\x80\x99re Not Denmark Proof that they do work is delivered every year in data-rich evaluations by the United Nations and other international bodies.'],
    ['average salary healthcare administration', 'Healthcare Administrator Salary. (United States). A Healthcare Administrator earns an average salary of $64,821 per year. The highest paying skills associated with this job are Program Management, Budget Management, and Operations Management. Experience has a moderate effect on income for this job.ealthcare Administrator Salary. (United States). A Healthcare Administrator earns an average salary of $64,821 per year. The highest paying skills associated with this job are Program Management, Budget Management, and Operations Management. Experience has a moderate effect on income for this job.'],
    ['average salary healthcare administration', 'The five states with the highest average annual salaries for health care administrators, according to May 2011 data from the BLS, are: Massachusetts, $112,690; Rhode Island, $112,260; New York, $111,270; New Jersey, $110,100; and Washington, $108,620.'],
    ['what unique characteristics does bacillus megaterium have', 'Rare to none: Bacillus megaterium is a rod-shaped, gram-positive, endospore forming, aerotolerant species of bacteria used as a soil inoculant in agriculture and horticulture.Bacterium is arranged into the streptobacillus form.. Get help from a doctor now â\x80º. Rare to none: Bacillus megaterium is a rod-shaped, gram-positive, endospore forming, aerotolerant species of bacteria used as a soil inoculant in agriculture and horticulture. Bacterium is arranged into the streptobacillus form.'],
]
scores = model.predict(pairs)
print(scores)
# [-3.7344 -4.375   5.1562  1.3047  1.75  ]

# Or rank different texts based on similarity to a single text
ranks = model.rank(
    'what clothing do people wear in denmark guys',
    [
        'While suits and other forms of Western fashion are ubiquitous in Japan, most people also wear some of the more traditional styles of Japanese clothing. For example, you often â\x80¦ will see people wearing traditional Japanese clothing at weddings or funerals, graduations and even for the summer fireworks festivals--hanabi. You can learn about some of the different styles of Japanese clothing and--if you dare--try some of them yourself.',
        'Yet even the Democratic presidential candidates, who say they love or want to learn from those countries, donâ\x80\x99t seem know how they actually work. Why Weâ\x80\x99re Not Denmark Proof that they do work is delivered every year in data-rich evaluations by the United Nations and other international bodies.',
        'Healthcare Administrator Salary. (United States). A Healthcare Administrator earns an average salary of $64,821 per year. The highest paying skills associated with this job are Program Management, Budget Management, and Operations Management. Experience has a moderate effect on income for this job.ealthcare Administrator Salary. (United States). A Healthcare Administrator earns an average salary of $64,821 per year. The highest paying skills associated with this job are Program Management, Budget Management, and Operations Management. Experience has a moderate effect on income for this job.',
        'The five states with the highest average annual salaries for health care administrators, according to May 2011 data from the BLS, are: Massachusetts, $112,690; Rhode Island, $112,260; New York, $111,270; New Jersey, $110,100; and Washington, $108,620.',
        'Rare to none: Bacillus megaterium is a rod-shaped, gram-positive, endospore forming, aerotolerant species of bacteria used as a soil inoculant in agriculture and horticulture.Bacterium is arranged into the streptobacillus form.. Get help from a doctor now â\x80º. Rare to none: Bacillus megaterium is a rod-shaped, gram-positive, endospore forming, aerotolerant species of bacteria used as a soil inoculant in agriculture and horticulture. Bacterium is arranged into the streptobacillus form.',
    ]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]

Training Details

Training Dataset

Unnamed Dataset

  • Size: 65,536 training samples
  • Columns: query, passage, and label
  • Approximate statistics based on the first 100 samples:
    querypassagelabel
    typestringstringfloat
    modalitytexttext
    detailsmin: 6 tokensmean: 9.33 tokensmax: 17 tokensmin: 32 tokensmean: 82.09 tokensmax: 189 tokensmin: 0.0mean: 0.5max: 1.0
  • Samples:
    querypassagelabel
    what clothing do people wear in denmark guysWhile suits and other forms of Western fashion are ubiquitous in Japan, most people also wear some of the more traditional styles of Japanese clothing. For example, you often … will see people wearing traditional Japanese clothing at weddings or funerals, graduations and even for the summer fireworks festivals--hanabi. You can learn about some of the different styles of Japanese clothing and--if you dare--try some of them yourself.1.0
    what clothing do people wear in denmark guysYet even the Democratic presidential candidates, who say they love or want to learn from those countries, don’t seem know how they actually work. Why We’re Not Denmark Proof that they do work is delivered every year in data-rich evaluations by the United Nations and other international bodies.0.0
    average salary healthcare administrationHealthcare Administrator Salary. (United States). A Healthcare Administrator earns an average salary of $64,821 per year. The highest paying skills associated with this job are Program Management, Budget Management, and Operations Management. Experience has a moderate effect on income for this job.ealthcare Administrator Salary. (United States). A Healthcare Administrator earns an average salary of $64,821 per year. The highest paying skills associated with this job are Program Management, Budget Management, and Operations Management. Experience has a moderate effect on income for this job.1.0
  • Loss: BinaryCrossEntropyLoss with these parameters:
    {
        "activation_fn": "torch.nn.modules.linear.Identity",
        "pos_weight": 1.0
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 32
  • num_train_epochs: 1
  • learning_rate: 0.0001
  • warmup_steps: 0.05
  • optim: adamw_torch
  • weight_decay: 0.01
  • gradient_accumulation_steps: 4
  • bf16: True
  • tf32: True
  • logging_nan_inf_filter: False
  • disable_tqdm: True
  • per_device_eval_batch_size: 32
  • push_to_hub: True
  • hub_private_repo: False
  • hub_model_id: tomaarsen/ettin-encoder-400m-reranker-msmarco32k-1e-4-20261014
  • load_best_model_at_end: True
  • seed: 12
  • data_seed: 12
  • dataloader_num_workers: 2

All Hyperparameters

  • per_device_train_batch_size: 32
  • num_train_epochs: 1
  • max_steps: -1
  • learning_rate: 0.0001
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_steps: 0.05
  • optim: adamw_torch
  • optim_args: None
  • weight_decay: 0.01
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • optim_target_modules: None
  • gradient_accumulation_steps: 4
  • 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: True
  • 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: False
  • include_num_input_tokens_seen: no
  • log_level: passive
  • log_level_replica: warning
  • disable_tqdm: True
  • project: huggingface
  • trackio_space_id: None
  • trackio_bucket_id: None
  • trackio_static_space_id: None
  • per_device_eval_batch_size: 32
  • 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: True
  • hub_private_repo: False
  • hub_model_id: tomaarsen/ettin-encoder-400m-reranker-msmarco32k-1e-4-20261014
  • hub_strategy: every_save
  • hub_always_push: False
  • hub_revision: None
  • load_best_model_at_end: True
  • ignore_data_skip: False
  • restore_callback_states_from_checkpoint: False
  • full_determinism: False
  • seed: 12
  • data_seed: 12
  • 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: 2
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • dataloader_prefetch_factor: None
  • dataloader_multiprocessing_context: None
  • dataloader_in_order: True
  • 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_static_graph: None
  • ddp_backend: None
  • ddp_timeout: 1800
  • fsdp: None
  • fsdp_config: None
  • deepspeed: None
  • debug: []
  • skip_memory_metrics: True
  • do_predict: False
  • resume_from_checkpoint: None
  • local_rank: -1
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}
  • warmup_ratio: None

Training Logs

EpochStepTraining Loss
0.002010.9154
0.0195100.8385
0.0391200.7020
0.0586300.6849
0.0781400.6433
0.0977500.6110
0.1172600.5087
0.1367700.4949
0.1562800.4582
0.1758900.4145
0.19531000.4516
0.21481100.3861
0.23441200.4712
0.25128-
0.25391300.4120
0.27341400.3887
0.29301500.4034
0.31251600.4133
0.33201700.3980
0.35161800.3962
0.37111900.3596
0.39062000.3844
0.41022100.3589
0.42972200.3893
0.44922300.3825
0.46882400.3718
0.48832500.3544
0.5256-
0.50782600.3421
0.52732700.3672
0.54692800.4009
0.56642900.3395
0.58593000.3596
0.60553100.3435
0.6253200.3552
0.64453300.3606
0.66413400.3502
0.68363500.3245
0.70313600.3683
0.72273700.3427
0.74223800.3433
0.75384-
0.76173900.3180
0.78124000.3478
0.80084100.3304
0.82034200.3173
0.83984300.3370
0.85944400.3235
0.87894500.3419
0.89844600.3223
0.91804700.3096
0.93754800.3006
0.95704900.3188
0.97665000.3112
0.99615100.3266
1.0512-

Training Time

  • Training: 5.2 minutes
  • Evaluation: 1.4 minutes
  • Total: 6.6 minutes

Framework Versions

  • Python: 3.12.12
  • Sentence Transformers: 6.2.0.dev0
  • Transformers: 5.16.1
  • PyTorch: 2.10.0+cu128
  • Accelerate: 1.15.0
  • Datasets: 5.1.0
  • Tokenizers: 0.23.3

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

Controlled backbone comparison

Part of the encoder comparison. One epoch maximum on 32,768 MS MARCO triplets, seed 12. The best validation checkpoint was recovered from the repository history after a publication error. No training was repeated. See experiment.json for its original revision and validation score. Learning-rate selection uses validation only. Test data does not select checkpoints.

Dense and multi-vector use query length 32 and passage length 256 including special tokens. Rerankers use 32 query content tokens, 256 passage content tokens and a combined cap of 291. See the comparison scripts for matching input clipping. These are small-data research models.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей