/ Модель

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

Контекст
8 192 токена
Параметры
395 млн
Лицензия
MIT
Архитектура
modernbert · dense
Базовая модель
ModernBERT-large
Библиотека
sentence-transformers
Опубликована
6 апр 2025

ModernBERT-large-biencoder-msmarco

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

Дообученный энкодер ModernBERT-large преобразует английские предложения и абзацы в векторы для семантического поиска, сравнения и кластеризации.

127скачиваний за 30 дней0лайковвеса обновлены6 апр 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

YeonwooSung выпустил дообученную на answerdotai/ModernBERT-large модель Sentence Transformer для получения плотных векторных представлений предложений и абзацев. Она предназначена для семантического поиска и сравнения текстов, поиска перефразировок, кластеризации и классификации. Архитектура состоит из энкодера ModernBERT-large с усреднением токенных представлений; размер вектора — 1024, сходство измеряется косинусной метрикой.

Модель содержит 394,7 млн параметров; метаданные указывают контекст до 8192 токенов, тогда как конфигурация Sentence Transformers в README ограничивает длину последовательности 512 токенами. Обучающий набор включает 499 184 примера. Карточка демонстрирует англоязычные данные, поэтому основное применение — для английского текста. Лицензия — MIT.

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

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

Ограничения

README указывает максимальную длину последовательности 512 токенов, хотя метаданные заявляют контекст 8192 токена; при использовании Sentence Transformers следует учитывать ограничение конфигурации. Данные карточки и обучающие примеры англоязычные, поэтому качество для других языков не подтверждено.

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

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

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

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

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

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

Открыть на Hugging Face

SentenceTransformer based on answerdotai/ModernBERT-large

This is a sentence-transformers model finetuned from answerdotai/ModernBERT-large. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: answerdotai/ModernBERT-large
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 1024 dimensions
  • Similarity Function: Cosine Similarity

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: ModernBertModel 
  (1): Pooling({'word_embedding_dimension': 1024, '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})
)

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 SentenceTransformer

# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
    'what is a tensilon universal testing instrument',
    "Universal Material Testing Instrument. The TENSILON RTF is our newest universal testing machine offering innovative measuring possibilities, based on A&D's newly-developed and extensive technological knowledge.The RTF Series is a world-class Class 0.5 testing machine.Having improved the overall design and structure of the machine, we achieved a very strong load frame stiffness enabling super-high accuracy in measurement.he RTF Series is a world-class Class 0.5 testing machine. Having improved the overall design and structure of the machine, we achieved a very strong load frame stiffness enabling super-high accuracy in measurement.",
    "The McDonald Patent Universal String Tension Calculator (MPUSTC) is a handy calculator to figure string tensions in steel-string instruments. If you plug in your scale length, string gauges and tuning, it will give you a readout of the tension on each of the strings. This is useful when you're trying to fine-tune a set of custom gauges, or when you're working out how far you can push a drop tuning before it becomes unmanageable.",
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]

# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]

Training Details

Training Dataset

Unnamed Dataset

  • Size: 499,184 training samples
  • Columns: sentence_0, sentence_1, and sentence_2
  • Approximate statistics based on the first 1000 samples:
    sentence_0sentence_1sentence_2
    typestringstringstring
    detailsmin: 4 tokensmean: 9.07 tokensmax: 21 tokensmin: 17 tokensmean: 80.89 tokensmax: 254 tokensmin: 20 tokensmean: 79.05 tokensmax: 226 tokens
  • Samples:
    sentence_0sentence_1sentence_2
    what is a dependent person1. depending on a person or thing for aid, support, life, etc. 2. (postpositive; foll by on or upon) influenced or conditioned (by); contingent (on) 3. subordinate; subject: a dependent prince. 4. obsolete hanging down.Dependent personality disorder (DPD) is one of the most frequently diagnosed personality disorders. It occurs equally in men and women, usually becoming apparent in young adulthood or later as important adult relationships form. People with DPD become emotionally dependent on other people and spend great effort trying to please others. People with DPD tend to display needy, passive, and clinging behavior, and have a fear of separation. Other common characteristics of this personality disorder include:
    what is the hat trick in hockeyDefinition of hat trick. 1 1 : the retiring of three batsmen with three consecutive balls by a bowler in cricket. 2 2 : the scoring of three goals in one game (as of hockey or soccer) by a single player. 3 3 : a series of three victories, successes, or related accomplishments scored a hat trick when her three best steers corralled top honors — People.Hat trick was first recorded in print in the 1870s, but has since been widened to apply to any sport in which the person competing carries off some feat three times in quick succession, such as scoring three goals in one game of soccer.
    what is an egalitarianAn egalitarian is defined as a person who believes all people were created equal and should be treated equal. An example of an egalitarian is a person who fights for civil rights, like Martin Luther King Jr.About Egalitarian Companies. In the tradition hierarchical corporate structure, each employee operates under a specific job description. Each employee also reports to a superior who monitors his progress and issues instructions. Egalitarian-style companies eliminate most of this structure. Employees in an egalitarian company have general job descriptions, rather than specific ones. Instead of reporting to a superior, all employees in an egalitarian company work collaboratively on tasks and behave as equals.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim"
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 32
  • per_device_eval_batch_size: 32
  • num_train_epochs: 10
  • fp16: True
  • multi_dataset_batch_sampler: round_robin

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: no
  • prediction_loss_only: True
  • per_device_train_batch_size: 32
  • per_device_eval_batch_size: 32
  • per_gpu_train_batch_size: None
  • per_gpu_eval_batch_size: None
  • gradient_accumulation_steps: 1
  • eval_accumulation_steps: None
  • torch_empty_cache_steps: None
  • learning_rate: 5e-05
  • weight_decay: 0.0
  • adam_beta1: 0.9
  • adam_beta2: 0.999
  • adam_epsilon: 1e-08
  • max_grad_norm: 1
  • num_train_epochs: 10
  • max_steps: -1
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • warmup_steps: 0
  • log_level: passive
  • log_level_replica: warning
  • log_on_each_node: True
  • logging_nan_inf_filter: True
  • save_safetensors: True
  • save_on_each_node: False
  • save_only_model: False
  • restore_callback_states_from_checkpoint: False
  • no_cuda: False
  • use_cpu: False
  • use_mps_device: False
  • seed: 42
  • data_seed: None
  • jit_mode_eval: False
  • use_ipex: False
  • bf16: False
  • fp16: True
  • fp16_opt_level: O1
  • half_precision_backend: auto
  • bf16_full_eval: False
  • fp16_full_eval: False
  • tf32: None
  • local_rank: 0
  • ddp_backend: None
  • tpu_num_cores: None
  • tpu_metrics_debug: False
  • debug: []
  • dataloader_drop_last: False
  • dataloader_num_workers: 0
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: False
  • ignore_data_skip: False
  • fsdp: []
  • fsdp_min_num_params: 0
  • fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
  • tp_size: 0
  • fsdp_transformer_layer_cls_to_wrap: None
  • accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • ddp_find_unused_parameters: None
  • ddp_bucket_cap_mb: None
  • ddp_broadcast_buffers: False
  • dataloader_pin_memory: True
  • dataloader_persistent_workers: False
  • skip_memory_metrics: True
  • use_legacy_prediction_loop: False
  • push_to_hub: False
  • resume_from_checkpoint: None
  • hub_model_id: None
  • hub_strategy: every_save
  • hub_private_repo: None
  • hub_always_push: False
  • gradient_checkpointing: False
  • gradient_checkpointing_kwargs: None
  • include_inputs_for_metrics: False
  • include_for_metrics: []
  • eval_do_concat_batches: True
  • fp16_backend: auto
  • push_to_hub_model_id: None
  • push_to_hub_organization: None
  • mp_parameters:
  • auto_find_batch_size: False
  • full_determinism: False
  • torchdynamo: None
  • ray_scope: last
  • ddp_timeout: 1800
  • torch_compile: False
  • torch_compile_backend: None
  • torch_compile_mode: None
  • dispatch_batches: None
  • split_batches: None
  • include_tokens_per_second: False
  • include_num_input_tokens_seen: False
  • neftune_noise_alpha: None
  • optim_target_modules: None
  • batch_eval_metrics: False
  • eval_on_start: False
  • use_liger_kernel: False
  • eval_use_gather_object: False
  • average_tokens_across_devices: False
  • prompts: None
  • batch_sampler: batch_sampler
  • multi_dataset_batch_sampler: round_robin

Training Logs

EpochStepTraining Loss
0.03215001.1178
0.064110000.293
0.096215000.2542
0.128220000.2357
0.160325000.2187
0.192330000.2107
0.224435000.1959
0.256440000.2049
0.288545000.1945
0.320550000.1848
0.352655000.1846
0.384660000.1736
0.416765000.1795
0.448770000.1767
0.480875000.1727
0.512880000.1688
0.544985000.1708
0.576990000.1663
0.609095000.1654
0.6410100000.1637
0.6731105000.1651
0.7051110000.1625
0.7372115000.1584
0.7692120000.1607
0.8013125000.156
0.8333130000.1548
0.8654135000.1484
0.8974140000.1527
0.9295145000.1555
0.9615150000.1528
0.9936155000.1533
1.0256160000.0827
1.0577165000.0597
1.0897170000.0599
1.1218175000.0592
1.1538180000.0592
1.1859185000.0584
1.2179190000.0615
1.25195000.0589
1.2821200000.0612
1.3141205000.0618
1.3462210000.0606
1.3782215000.0587
1.4103220000.0611
1.4423225000.0616
1.4744230000.0623
1.5064235000.0615
1.5385240000.0602
1.5705245000.0658
1.6026250000.068
1.6346255000.0649
1.6667260000.0645
1.6987265000.0652
1.7308270000.0632
1.7628275000.0631
1.7949280000.0655
1.8269285000.0633
1.8590290000.0607
1.8910295000.0633
1.9231300000.0612
1.9551305000.0631
1.9872310000.0616
2.0192315000.0382
2.0513320000.0178
2.0833325000.0177
2.1154330000.0178
2.1474335000.0171
2.1795340000.0188
2.2115345000.0186
2.2436350000.0177
2.2756355000.0183
2.3077360000.0195
2.3397365000.0202
2.3718370000.0199
2.4038375000.0197
2.4359380000.019
2.4679385000.021
2.5390000.0195
2.5321395000.0211
2.5641400000.0205
2.5962405000.0207
2.6282410000.0222
2.6603415000.0204
2.6923420000.0205
2.7244425000.0211
2.7564430000.0232
2.7885435000.0202
2.8205440000.0207
2.8526445000.0225
2.8846450000.0224
2.9167455000.0203
2.9487460000.0215
2.9808465000.0218
3.0128470000.0159
3.0449475000.0064
3.0769480000.0069
3.1090485000.0074
3.1410490000.0075
3.1731495000.0066
3.2051500000.0076
3.2372505000.0073
3.2692510000.0077
3.3013515000.0075
3.3333520000.0079
3.3654525000.008
3.3974530000.0087
3.4295535000.0077
3.4615540000.0084
3.4936545000.0086
3.5256550000.009
3.5577555000.0082
3.5897560000.0084
3.6218565000.0084
3.6538570000.008
3.6859575000.0079
3.7179580000.0085
3.75585000.0096
3.7821590000.0087
3.8141595000.0086
3.8462600000.0089
3.8782605000.0081
3.9103610000.0087
3.9423615000.0085
3.9744620000.0082
4.0064625000.0076
4.0385630000.0037
4.0705635000.0035
4.1026640000.0037
4.1346645000.004
4.1667650000.0037
4.1987655000.0036
4.2308660000.0042
4.2628665000.0044
4.2949670000.0041
4.3269675000.004
4.3590680000.0037
4.3910685000.0043
4.4231690000.0035
4.4551695000.0045
4.4872700000.0042
4.5192705000.0043
4.5513710000.0042
4.5833715000.0049
4.6154720000.0041
4.6474725000.0041
4.6795730000.0044
4.7115735000.0038
4.7436740000.0039
4.7756745000.0049
4.8077750000.0041
4.8397755000.0044
4.8718760000.0043
4.9038765000.0053
4.9359770000.0043
4.9679775000.0049
5.0780000.0042
5.0321785000.0022
5.0641790000.0023
5.0962795000.0021
5.1282800000.003
5.1603805000.0024
5.1923810000.0022
5.2244815000.0023
5.2564820000.0022
5.2885825000.0027
5.3205830000.0023
5.3526835000.0029
5.3846840000.0027
5.4167845000.0025
5.4487850000.0029
5.4808855000.0029
5.5128860000.0024
5.5449865000.0026
5.5769870000.0026
5.6090875000.0028
5.6410880000.0025
5.6731885000.0026
5.7051890000.0023
5.7372895000.0029
5.7692900000.0027
5.8013905000.0019
5.8333910000.0023
5.8654915000.0022
5.8974920000.003
5.9295925000.0023
5.9615930000.0026
5.9936935000.0027
6.0256940000.0015
6.0577945000.0012
6.0897950000.0016
6.1218955000.0018
6.1538960000.0017
6.1859965000.0014
6.2179970000.0013
6.25975000.0022
6.2821980000.0015
6.3141985000.002
6.3462990000.0021
6.3782995000.0016
6.41031000000.0024
6.44231005000.002
6.47441010000.0014
6.50641015000.0019
6.53851020000.0017
6.57051025000.0019
6.60261030000.0016
6.63461035000.0013
6.66671040000.0012
6.69871045000.0015
6.73081050000.0015
6.76281055000.0018
6.79491060000.0018
6.82691065000.0016
6.85901070000.0018
6.89101075000.0026
6.92311080000.0013
6.95511085000.0019
6.98721090000.0015
7.01921095000.0014
7.05131100000.0009
7.08331105000.0012
7.11541110000.0016
7.14741115000.0014
7.17951120000.0013
7.21151125000.0009
7.24361130000.0015
7.27561135000.0011
7.30771140000.0011
7.33971145000.0011
7.37181150000.0013
7.40381155000.001
7.43591160000.0012
7.46791165000.0012
7.51170000.0013
7.53211175000.0014
7.56411180000.0013
7.59621185000.0013
7.62821190000.0014
7.66031195000.001
7.69231200000.0012
7.72441205000.0018
7.75641210000.001
7.78851215000.0014
7.82051220000.0011
7.85261225000.0012
7.88461230000.0012
7.91671235000.0008
7.94871240000.0013
7.98081245000.0014
8.01281250000.001
8.04491255000.0007
8.07691260000.001
8.10901265000.0009
8.14101270000.0007
8.17311275000.0007
8.20511280000.001
8.23721285000.0011
8.26921290000.0008
8.30131295000.0007
8.33331300000.0013
8.36541305000.0012
8.39741310000.001
8.42951315000.001
8.46151320000.0007
8.49361325000.001
8.52561330000.001
8.55771335000.001
8.58971340000.0011
8.62181345000.0013
8.65381350000.0007
8.68591355000.001
8.71791360000.0008
8.751365000.001
8.78211370000.0008
8.81411375000.0006
8.84621380000.0006
8.87821385000.0009
8.91031390000.0007
8.94231395000.0009
8.97441400000.0006
9.00641405000.0018
9.03851410000.0008
9.07051415000.0008
9.10261420000.0009
9.13461425000.0006
9.16671430000.0009
9.19871435000.0007
9.23081440000.0007
9.26281445000.0006
9.29491450000.0008
9.32691455000.0009
9.35901460000.0005
9.39101465000.001
9.42311470000.001
9.45511475000.0011
9.48721480000.0011
9.51921485000.0012
9.55131490000.0011
9.58331495000.0007
9.61541500000.0008
9.64741505000.0005
9.67951510000.0007
9.71151515000.0008
9.74361520000.0007
9.77561525000.0009
9.80771530000.0007
9.83971535000.0012
9.87181540000.0005
9.90381545000.0008
9.93591550000.0007
9.96791555000.0007
10.01560000.0011

Framework Versions

  • Python: 3.11.11
  • Sentence Transformers: 3.4.1
  • Transformers: 4.50.3
  • PyTorch: 2.6.0+cu124
  • Accelerate: 1.5.2
  • Datasets: 3.5.0
  • Tokenizers: 0.21.1

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

MultipleNegativesRankingLoss

@misc{henderson2017efficient,
    title={Efficient Natural Language Response Suggestion for Smart Reply},
    author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
    year={2017},
    eprint={1705.00652},
    archivePrefix={arXiv},
    primaryClass={cs.CL}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей