/ Модель

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

Контекст
514 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
mpnet · dense
Базовая модель
mpnet-base
Библиотека
sentence-transformers
Опубликована
3 фев 2026

mpnet-base-gooaq-qat-nanobeir

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

Англоязычная модель MPNet создаёт плотные векторы предложений и абзацев для семантического поиска и сравнения текстов.

113скачиваний за 30 дней0лайковвеса обновлены3 фев 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это англоязычная модель Sentence Transformer, разработанная tomaarsen и дообученная на базе microsoft/mpnet-base на наборе вопросов и ответов GooAQ. Она преобразует предложения и абзацы в плотные векторы размерности 768, которые можно сравнивать по косинусному сходству; архитектура включает MPNet и mean pooling. Максимальная длина входа — 512 токенов.

Модель предназначена для семантического поиска, оценки сходства предложений и поиска перефразировок. Векторы также подходят для кластеризации и классификации текста в составе внешнего конвейера. Обучение с QuantizationAwareLoss и MultipleNegativesRankingLoss ориентировано на поиск и сохраняет пригодность представлений для квантованных вариантов. Лицензия — Apache-2.0.

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

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

Ограничения

Модель ориентирована на английский язык, а максимальная длина входа составляет 512 токенов. Для поиска, кластеризации и классификации требуются внешняя векторная инфраструктура или последующая обработка эмбеддингов.

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

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

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

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

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

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

Открыть на Hugging Face

MPNet base trained on GooAQ using QAT with InfoNCE + GOR

This is a sentence-transformers model finetuned from microsoft/mpnet-base on the gooaq dataset. It maps sentences & paragraphs to a 768-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: microsoft/mpnet-base
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 768 dimensions
  • Similarity Function: Cosine Similarity
  • Training Dataset:
  • Language: en
  • License: apache-2.0

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'MPNetModel'})
  (1): Pooling({'word_embedding_dimension': 768, '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("tomaarsen/mpnet-base-gooaq-qat-nanobeir")
# Run inference
queries = [
    "is duchenne muscular dystrophy a dominant or recessive trait?",
]
documents = [
    'Duchenne muscular dystrophy is inherited in an X-linked recessive pattern. Males have only one copy of the X chromosome from their mother and one copy of the Y chromosome from their father. If their X chromosome has a DMD gene mutation, they will have Duchenne muscular dystrophy.',
    'The dream suggests captivity and it refers to your fear of punishment. Another interpretation of this dream refers to a need to do what you feel is right in waking life. Being in jail suggests that your feelings may be trapped by a limited mind and body. ... Jail also suggests repressed feelings.',
    "An automatic transmission will downshift for you when you drive uphill. However, for moderately steep slopes, it's wise to shift to the gear range marked D2, 2, or L to ascend and descend the hill. For steep slopes that you can't ascend at a speed faster than 10 mph (about 15 kph), shift to D1 or 1.",
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 768] [3, 768]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.8103, 0.1611, 0.2026]])

Evaluation

Metrics

Information Retrieval

  • Datasets: NanoMSMARCO_float32, NanoNQ_float32, NanoMSMARCO_int8, NanoNQ_int8, NanoMSMARCO_binary and NanoNQ_binary
  • Evaluated with InformationRetrievalEvaluator
MetricNanoMSMARCO_float32NanoNQ_float32NanoMSMARCO_int8NanoNQ_int8NanoMSMARCO_binaryNanoNQ_binary
cosine_accuracy@10.220.380.260.380.320.42
cosine_accuracy@30.540.520.520.540.460.48
cosine_accuracy@50.70.640.660.620.640.58
cosine_accuracy@100.740.760.760.70.720.76
cosine_precision@10.220.380.260.380.320.42
cosine_precision@30.180.180.17330.18670.15330.16
cosine_precision@50.140.1360.1320.1320.1280.12
cosine_precision@100.0740.0820.0760.0760.0720.078
cosine_recall@10.220.350.260.350.320.38
cosine_recall@30.540.470.520.490.460.43
cosine_recall@50.70.60.660.580.640.53
cosine_recall@100.740.730.760.670.720.71
cosine_ndcg@100.48460.52770.50150.50970.50320.5196
cosine_mrr@100.40140.48070.41940.4760.43520.4923
cosine_map@1000.41170.46570.42850.46520.44560.4625

Nano BEIR

  • Dataset: NanoBEIR_mean_float32
  • Evaluated with NanoBEIREvaluator with these parameters:
    {
        "dataset_names": [
            "msmarco",
            "nq"
        ],
        "dataset_id": "sentence-transformers/NanoBEIR-en"
    }
    
MetricValue
float32_cosine_accuracy@10.3
float32_cosine_accuracy@30.53
float32_cosine_accuracy@50.67
float32_cosine_accuracy@100.75
float32_cosine_precision@10.3
float32_cosine_precision@30.18
float32_cosine_precision@50.138
float32_cosine_precision@100.078
float32_cosine_recall@10.285
float32_cosine_recall@30.505
float32_cosine_recall@50.65
float32_cosine_recall@100.735
float32_cosine_ndcg@100.5062
float32_cosine_mrr@100.441
float32_cosine_map@1000.4387

Nano BEIR

  • Dataset: NanoBEIR_mean_int8
  • Evaluated with NanoBEIREvaluator with these parameters:
    {
        "dataset_names": [
            "msmarco",
            "nq"
        ],
        "dataset_id": "sentence-transformers/NanoBEIR-en"
    }
    
MetricValue
int8_cosine_accuracy@10.32
int8_cosine_accuracy@30.53
int8_cosine_accuracy@50.64
int8_cosine_accuracy@100.73
int8_cosine_precision@10.32
int8_cosine_precision@30.18
int8_cosine_precision@50.132
int8_cosine_precision@100.076
int8_cosine_recall@10.305
int8_cosine_recall@30.505
int8_cosine_recall@50.62
int8_cosine_recall@100.715
int8_cosine_ndcg@100.5056
int8_cosine_mrr@100.4477
int8_cosine_map@1000.4469

Nano BEIR

  • Dataset: NanoBEIR_mean_binary
  • Evaluated with NanoBEIREvaluator with these parameters:
    {
        "dataset_names": [
            "msmarco",
            "nq"
        ],
        "dataset_id": "sentence-transformers/NanoBEIR-en"
    }
    
MetricValue
binary_cosine_accuracy@10.37
binary_cosine_accuracy@30.47
binary_cosine_accuracy@50.61
binary_cosine_accuracy@100.74
binary_cosine_precision@10.37
binary_cosine_precision@30.1567
binary_cosine_precision@50.124
binary_cosine_precision@100.075
binary_cosine_recall@10.35
binary_cosine_recall@30.445
binary_cosine_recall@50.585
binary_cosine_recall@100.715
binary_cosine_ndcg@100.5114
binary_cosine_mrr@100.4638
binary_cosine_map@1000.454

Training Details

Training Dataset

gooaq

  • Dataset: gooaq at b089f72
  • Size: 90,000 training samples
  • Columns: question and answer
  • Approximate statistics based on the first 1000 samples:
    questionanswer
    typestringstring
    detailsmin: 8 tokensmean: 11.83 tokensmax: 20 tokensmin: 15 tokensmean: 60.45 tokensmax: 180 tokens
  • Samples:
    questionanswer
    how long does halifax take to transfer mortgage funds?Bear in mind that the speed of application will vary depending on your own personal circumstances and the lender's present day-to-day performance. In some cases, applications can be approved by the lender within 24 hours, while some can take weeks or even months.
    can you get a false pregnancy test?In very rare cases, you can have a false-positive result. This means you're not pregnant but the test says you are. You could have a false-positive result if you have blood or protein in your pee. Certain drugs, such as tranquilizers, anticonvulsants, hypnotics, and fertility drugs, could cause false-positive results.
    are ahead of its time?Definition of ahead of one's/its time : too advanced or modern to be understood or appreciated during the time when one lives or works As a director, he was ahead of his time.
  • Loss: QuantizationAwareLoss with these parameters:
    {
        "loss": "MultipleNegativesRankingLoss",
        "quantization_precisions": [
            "float32",
            "int8",
            "binary"
        ],
        "quantization_weights": [
            1.0,
            1.0,
            1.0
        ],
        "n_precisions_per_step": -1
    }
    

Evaluation Dataset

gooaq

  • Dataset: gooaq at b089f72
  • Size: 10,000 evaluation samples
  • Columns: question and answer
  • Approximate statistics based on the first 1000 samples:
    questionanswer
    typestringstring
    detailsmin: 8 tokensmean: 11.93 tokensmax: 25 tokensmin: 14 tokensmean: 60.84 tokensmax: 127 tokens
  • Samples:
    questionanswer
    should you take ibuprofen with high blood pressure?In general, people with high blood pressure should use acetaminophen or possibly aspirin for over-the-counter pain relief. Unless your health care provider has said it's OK, you should not use ibuprofen, ketoprofen, or naproxen sodium. If aspirin or acetaminophen doesn't help with your pain, call your doctor.
    how old do you have to be to work in sc?The general minimum age of employment for South Carolina youth is 14, although the state allows younger children who are performers to work in show business. If their families are agricultural workers, children younger than age 14 may also participate in farm labor.
    how to write a topic proposal for a research paper?['Write down the main topic of your paper. ... ', 'Write two or three short sentences under the main topic that explain why you chose that topic. ... ', 'Write a thesis sentence that states the angle and purpose of your research paper. ... ', 'List the items you will cover in the body of the paper that support your thesis statement.']
  • Loss: QuantizationAwareLoss with these parameters:
    {
        "loss": "MultipleNegativesRankingLoss",
        "quantization_precisions": [
            "float32",
            "int8",
            "binary"
        ],
        "quantization_weights": [
            1.0,
            1.0,
            1.0
        ],
        "n_precisions_per_step": -1
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 64
  • per_device_eval_batch_size: 64
  • learning_rate: 2e-05
  • num_train_epochs: 1
  • warmup_ratio: 0.1
  • bf16: True
  • batch_sampler: no_duplicates

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 64
  • per_device_eval_batch_size: 64
  • 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: 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: 0.1
  • 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
  • bf16: True
  • fp16: False
  • 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}
  • 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}
  • parallelism_config: None
  • deepspeed: None
  • label_smoothing_factor: 0.0
  • optim: adamw_torch_fused
  • optim_args: None
  • adafactor: False
  • group_by_length: False
  • length_column_name: length
  • project: huggingface
  • trackio_space_id: trackio
  • 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
  • hub_revision: None
  • 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
  • include_tokens_per_second: False
  • 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
  • prompts: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}

Training Logs

EpochStepTraining LossValidation LossNanoMSMARCO_float32_cosine_ndcg@10NanoNQ_float32_cosine_ndcg@10NanoBEIR_mean_float32_float32_cosine_ndcg@10NanoMSMARCO_int8_cosine_ndcg@10NanoNQ_int8_cosine_ndcg@10NanoBEIR_mean_int8_int8_cosine_ndcg@10NanoMSMARCO_binary_cosine_ndcg@10NanoNQ_binary_cosine_ndcg@10NanoBEIR_mean_binary_binary_cosine_ndcg@10
-1-1--0.13100.03970.08540.24840.09180.17010.17740.14110.1593
0.000718.8919----------
0.0505714.6028----------
0.1002141-0.39730.46960.47810.47390.46570.47240.46900.45420.43230.4433
0.10091420.8168----------
0.15142130.4967----------
0.2004282-0.26110.48540.48340.48440.52120.47040.49580.45620.46540.4608
0.20182840.4427----------
0.25233550.4156----------
0.3006423-0.22130.51260.50330.50800.51470.50490.50980.48740.43590.4616
0.30284260.3245----------
0.35324970.3354----------
0.4009564-0.20260.49930.51010.50470.49700.51050.50380.45420.47550.4649
0.40375680.2926----------
0.45426390.317----------
0.5011705-0.18540.49790.51280.50530.49840.51900.50870.48770.51250.5001
0.50467100.2779----------
0.55517810.278----------
0.6013846-0.17680.50080.51340.50710.51040.49550.50290.50440.48270.4936
0.60558520.2696----------
0.65609230.2752----------
0.7015987-0.16790.47840.51360.49600.50270.51650.50960.43560.51810.4769
0.70659940.2318----------
0.756910650.2398----------
0.80171128-0.16210.48670.52860.50760.50480.51730.51110.46220.51550.4889
0.807411360.2274----------
0.857912070.2376----------
0.90191269-0.15720.49730.53070.51400.50710.49860.50290.47670.49890.4878
0.908312780.238----------
0.958813490.2168----------
-1-1--0.48460.52770.50620.50150.50970.50560.50320.51960.5114

Environmental Impact

Carbon emissions were measured using CodeCarbon.

  • Energy Consumed: 0.090 kWh
  • Carbon Emitted: 0.024 kg of CO2
  • Hours Used: 0.253 hours

Training Hardware

  • On Cloud: No
  • GPU Model: 1 x NVIDIA GeForce RTX 3090
  • CPU Model: 13th Gen Intel(R) Core(TM) i7-13700K
  • RAM Size: 31.78 GB

Framework Versions

  • Python: 3.11.6
  • Sentence Transformers: 5.3.0.dev0
  • Transformers: 4.57.6
  • PyTorch: 2.10.0+cu126
  • Accelerate: 1.12.0
  • Datasets: 4.3.0
  • 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",
}

QuantizationAwareLoss

@article{jacob2018quantization,
    title={Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference},
    author={Jacob, Benoit and Kligys, Skirmantas and Chen, Bo and Zhu, Menglong and Tang, Matthew and Howard, Andrew and Adam, Hartwig and Kalenichenko, Dmitry},
    journal={arXiv preprint arXiv:1712.05877},
    year={2018}
}

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…

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

0 моделей