/ Модель

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

Контекст
512 токенов
Параметры
40 млн
Архитектура
bert · dense
Базовая модель
e5-small-unsupervised
Библиотека
sentence-transformers
Опубликована
24 окт 2026

e5-small-medical-v2-ckpt

ЭмбеддингиТекст → embedding3 профессии
30скачиваний за 30 дней0лайковвеса обновлены24 окт 2026

Описание модели

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

Медицинская модель эмбеддингов для семантического поиска и сопоставления вопросов и ответов на текстах.

much1na/e5-small-medical-v2-ckpt — англоязычная текстовая модель Sentence Transformer, дообученная автором на наборе miriad-4.4_m-split с парами медицинских вопросов и ответов. Она преобразует текст в нормализованные плотные эмбеддинги размерности 384; архитектура включает BERT, усредняющий pooling и нормализацию. Максимальная длина последовательности — 512 токенов, сходство оценивается косинусной мерой.

Модель предназначена для семантического поиска и сопоставления медицинских вопросов и ответов, а также для поиска перефразировок, кластеризации и классификации текстов. В README приведена оценка на medical-qa-dev: точность cosine_accuracy@1 составляет 0,4966, @3 — 0,6685, @5 — 0,7495.

Это дообучение intfloat/e5-small-unsupervised, а не самостоятельная генеративная модель: она выдаёт векторы для последующей обработки. Размер модели — около 40 млн параметров. Условия лицензии в предоставленных данных не указаны.

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

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

Ограничения

Модель принимает только текст и ограничена последовательностями до 512 токенов; эмбеддинги сами по себе не формируют ответы. Приведённые метрики относятся к одному набору оценки и не гарантируют качество на других медицинских данных.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Бенчмарки пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

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

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

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

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

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

Открыть на Hugging Face

SentenceTransformer based on intfloat/e5-small-unsupervised

This is a sentence-transformers model finetuned from intfloat/e5-small-unsupervised on the miriad-4.4_m-split dataset. It maps inputs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, classification, clustering, and more.

Model Details

Model Description

  • Model Type: Sentence Transformer
  • Base model: intfloat/e5-small-unsupervised
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 384 dimensions
  • Similarity Function: Cosine Similarity
  • Supported Modality: Text
  • Training Dataset:
    • miriad-4.4_m-split

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
  (1): Pooling({'embedding_dimension': 384, 'pooling_mode': 'mean', 'include_prompt': True})
  (2): Normalize({'module_input_name': 'sentence_embedding', 'module_output_name': 'sentence_embedding'})
)

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("much1na/e5-small-medical-v2-ckpt")
# Run inference
queries = [
    'What are the potential target genes of the downregulated miR-376b-3p?\n',
]
documents = [
    'The potential target gene of the downregulated miR-376b-3p is Caspase-3, which is a protein involved in apoptosis.',
    'Factors associated with AIDS-defining events in HIV-positive patients include persistent fever, duration of symptoms longer than 6 weeks, and delay in HIV diagnosis.',
    'The goals in the management of facial lacerations are to close the wound and avoid infection, as well as to reduce scarring in order to prevent long-term cosmetic and psychological sequelae.',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 384] [3, 384]

# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.9339, 0.4864, 0.4316]])

Evaluation

Metrics

Information Retrieval

  • Dataset: medical-qa-dev
  • Evaluated with InformationRetrievalEvaluator with these parameters:
    {
        "query_prompt": "query: ",
        "corpus_prompt": "passage: "
    }
    
MetricValue
cosine_accuracy@10.4966
cosine_accuracy@30.6685
cosine_accuracy@50.7495
cosine_accuracy@100.8091
cosine_precision@10.4966
cosine_precision@30.2228
cosine_precision@50.1499
cosine_precision@100.0809
cosine_recall@10.4966
cosine_recall@30.6685
cosine_recall@50.7495
cosine_recall@100.8091
cosine_ndcg@100.6514
cosine_mrr@100.6009
cosine_map@1000.6062

Training Details

Training Dataset

miriad-4.4_m-split

  • Dataset: miriad-4.4_m-split
  • Size: 4,467,542 training samples
  • Columns: question and answer
  • Approximate statistics based on the first 100 samples:
    questionanswer
    typestringstring
    modalitytexttext
    detailsmin: 12 tokensmean: 23.82 tokensmax: 71 tokensmin: 37 tokensmean: 106.33 tokensmax: 203 tokens
  • Samples:
    questionanswer
    What factors may contribute to increased pulmonary conduit durability in patients who undergo the Ross operation compared to those with right ventricular outflow tract obstruction?Several factors may contribute to increased pulmonary conduit durability in patients who undergo the Ross operation compared to those with right ventricular outflow tract obstruction. These factors include later age at operation (allowing for larger homografts), more normal pulmonary artery architecture, absence of severe right ventricular hypertrophy, and more natural positioning of the homograft. However, further systematic studies are needed to confirm these associations.
    How does MCAM expression in hMSC affect the growth and maintenance of hematopoietic progenitors?MCAM expression in hMSC has been shown to support the growth of hematopoietic progenitors. It enhances the adhesion and migration of HSPC, potentially through direct cell-cell interactions. However, the putative interaction partner of MCAM on HSPC remains unknown. Additionally, MCAM expression in hMSC does not seem to regulate the expression or secretion of SDF-1, a key factor in HSPC homing and maintenance.
    What is the relationship between Fanconi anemia and breast and ovarian cancer susceptibility genes?Fanconi anemia is a rare, autosomal recessive syndrome characterized by chromosomal instability, cancer susceptibility, and hypersensitivity to DNA cross-linking agents. It has been found that all known Fanconi anemia proteins cooperate with breast and/or ovarian cancer susceptibility gene products (BRCA1 and BRCA2) in a pathway required for cellular resistance to DNA cross-linking agents. This pathway, known as the "Fanconi anemia-BRCA pathway," is a DNA damage-activated signaling pathway that controls DNA repair. Methylation of one of the Fanconi anemia genes, FANCF, can lead to the inactivation of this pathway in breast and ovarian cancer, suggesting its importance in human carcinogenesis.
  • Loss: CachedGISTEmbedLoss with these parameters:
    {
        "guide": "SentenceTransformer('abhinand/MedEmbed-small-v0.1')",
        "temperature": 0.01,
        "mini_batch_size": 64,
        "mini_batch_num_tokens": null,
        "margin_strategy": "absolute",
        "margin": 0.05,
        "contrast_anchors": true,
        "contrast_positives": true,
        "gather_across_devices": false
    }
    

Evaluation Dataset

miriad-4.4_m-split

  • Dataset: miriad-4.4_m-split
  • Size: 10,000 evaluation samples
  • Columns: question and answer
  • Approximate statistics based on the first 100 samples:
    questionanswer
    typestringstring
    modalitytexttext
    detailsmin: 11 tokensmean: 24.9 tokensmax: 74 tokensmin: 41 tokensmean: 104.95 tokensmax: 242 tokens
  • Samples:
    questionanswer
    What are some hereditary cancer syndromes that can result in various forms of cancer?Hereditary cancer syndromes, such as Hereditary Breast and Ovarian Cancer (HBOC) and Lynch Syndrome (LS), can result in various forms of cancer due to germline mutations in cancer predisposition genes. These syndromes are associated with an increased risk of developing specific types of cancer.
    How do MAK-4 and MAK-5 exert their antioxidant properties?MAK-4 and MAK-5 have been shown to have antioxidant properties both in vitro and in vivo. These preparations contain multiple antioxidants such as alpha-tocopherol, beta-carotene, ascorbate, bioflavonoid, catechin, polyphenols, riboflavin, and tannic acid. These antioxidants are known to scavenge free radicals and reactive oxygen species (ROS) such as superoxide, hydroxyl, and peroxyl radicals, as well as hydrogen peroxide. In the present study, the antioxidant properties of MAK-4 and MAK-5 were confirmed in mice, with higher oxygen radical absorbance capacity (ORAC) values observed in mice fed the MAK-supplemented diet. Additionally, the activity of liver enzymes GPX, GST, and QR, which are involved in detoxification processes, were upregulated in the MAK-fed mice. This suggests that MAK-4 and MAK-5 may protect against carcinogenesis by reducing oxidative stress and enhancing detoxification processes.
    What are the primary indications for a decompressive craniectomy, and what role does neurocritical care play in determining the suitability of a patient for this procedure?The primary indications for a decompressive craniectomy include refractory intracranial pressure (ICP) and progressive neurological deterioration due to mass effect from conditions like head trauma, or ischemic or hemorrhagic cerebrovascular disease. Neurocritical care and ICP monitoring are essential in identifying suitable candidates for the procedure, as it is considered a rescue surgical technique. These measures help to assess the patient's condition and determine the need for decompressive craniectomy in cases of elevated ICP.
  • Loss: CachedGISTEmbedLoss with these parameters:
    {
        "guide": "SentenceTransformer('abhinand/MedEmbed-small-v0.1')",
        "temperature": 0.01,
        "mini_batch_size": 64,
        "mini_batch_num_tokens": null,
        "margin_strategy": "absolute",
        "margin": 0.05,
        "contrast_anchors": true,
        "contrast_positives": true,
        "gather_across_devices": false
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • per_device_train_batch_size: 256
  • num_train_epochs: 1
  • warmup_steps: 0.1
  • per_device_eval_batch_size: 256
  • eval_on_start: True
  • push_to_hub: True
  • hub_model_id: much1na/e5-small-medical-v2-ckpt
  • hub_strategy: checkpoint
  • prompts: {'question': 'query: ', 'answer': 'passage: '}
  • batch_sampler: no_duplicates

All Hyperparameters

  • per_device_train_batch_size: 256
  • num_train_epochs: 1
  • max_steps: -1
  • learning_rate: 5e-05
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: None
  • warmup_steps: 0.1
  • 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: False
  • 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: None
  • trackio_bucket_id: None
  • trackio_static_space_id: None
  • per_device_eval_batch_size: 256
  • prediction_loss_only: True
  • eval_on_start: True
  • 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: None
  • hub_model_id: much1na/e5-small-medical-v2-ckpt
  • hub_strategy: checkpoint
  • 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: None
  • 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: True
  • dataloader_num_workers: 0
  • 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: {'question': 'query: ', 'answer': 'passage: '}
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}
  • warmup_ratio: None

Training Logs

EpochStepTraining LossValidation Lossmedical-qa-dev_cosine_ndcg@10
00-19.65880.6392
0.00111019.3429--
0.00232017.8115--
0.00343014.8136--
0.0046409.9609--
0.0057504.6914--
0.0069601.0835--
0.0080700.1335--
0.0092800.0103--
0.0103900.0060--
0.01151000.0024--
0.01261100.0004--
0.01381200.0016--
0.01491300.0008--
0.01601400.0011--
0.01721500.0003--
0.01831600.0029--
0.01951700.0022--
0.02061800.0001--
0.02181900.0008--
0.02292000.00150.00020.6573
0.02412100.0005--
0.02522200.0003--
0.02642300.0009--
0.02752400.0012--
0.02872500.0006--
0.02982600.0016--
0.03092700.0003--
0.03212800.0003--
0.03322900.0003--
0.03443000.0003--
0.03553100.0007--
0.03673200.0016--
0.03783300.0001--
0.03903400.0000--
0.04013500.0006--
0.04133600.0001--
0.04243700.0001--
0.04363800.0002--
0.04473900.0011--
0.04584000.00050.00010.6603
0.04704100.0004--
0.04814200.0013--
0.04934300.0001--
0.05044400.0000--
0.05164500.0013--
0.05274600.0002--
0.05394700.0004--
0.05504800.0003--
0.05624900.0003--
0.05735000.0002--
0.05855100.0013--
0.05965200.0001--
0.06075300.0009--
0.06195400.0005--
0.06305500.0001--
0.06425600.0000--
0.06535700.0002--
0.06655800.0001--
0.06765900.0002--
0.06886000.00090.00030.6458
0.06996100.0003--
0.07116200.0002--
0.07226300.0001--
0.07346400.0020--
0.07456500.0003--
0.07566600.0005--
0.07686700.0006--
0.07796800.0001--
0.07916900.0003--
0.08027000.0001--
0.08147100.0005--
0.08257200.0005--
0.08377300.0008--
0.08487400.0008--
0.08607500.0008--
0.08717600.0010--
0.08837700.0011--
0.08947800.0005--
0.09057900.0030--
0.09178000.00190.00070.6514

Training Time

  • Training: 1.6 hours
  • Evaluation: 5.0 minutes
  • Total: 1.7 hours

Framework Versions

  • Python: 3.13.15
  • Sentence Transformers: 6.2.0
  • Transformers: 5.16.1
  • PyTorch: 2.11.0+cu128
  • Accelerate: 1.15.0
  • Datasets: 5.1.0
  • Tokenizers: 0.23.1

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…

Класс архитектуры
BertModel
Ревизия весов
3d57750

0 моделей