/ Модель

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

Контекст
2 048 токенов
Параметры
137 млн
Лицензия
Apache 2.0
Архитектура
nomic_bert · dense
Базовая модель
nomic-embed-text-v1.5
Библиотека
sentence-transformers
Опубликована
25 авг 2026

nomic-embed-text-v1.5_Clinical-Trials_Matryoshka2

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

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

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Это англоязычная текстовая модель Sentence Transformer, дообученная vab46 на базе nomic-ai/nomic-embed-text-v1.5 на парах «запрос — положительный фрагмент» из набора Clinical_trials_anchor-positive-pairs_EmbeddingModel-data2. Модель кодирует предложения и абзацы в плотные векторы размерностью 768 и предназначена для сравнения смысловой близости, семантического поиска и извлечения информации из текстов клинических исследований.

Архитектура включает NomicBertModel с усреднением токенных представлений; сходство оценивается косинусной метрикой. Обучающий набор содержит 7 869 примеров. Поддерживаются вложения разной размерности от 64 до 768 для сценариев Matryoshka. Метаданные указывают контекст 2 048 токенов; в README заявлен максимум 8 192 токена, поэтому фактическую поддерживаемую длину следует сверять с используемой конфигурацией.

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

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

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

Ограничения

Модель ориентирована на английские тексты клинических исследований; качество на других медицинских корпусах и языках не подтверждено. В README заявлено окно до 8 192 токенов, тогда как метаданные указывают 2 048 токенов; проверьте конфигурацию перед обработкой длинных текстов.

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

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

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

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

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

Открыть на Hugging Face

nomic-embed text-v1.5 Clinical-Trials Matryoshka

This is a sentence-transformers model finetuned from nomic-ai/nomic-embed-text-v1.5 on the Clinical_trials_anchor-positive-pairs_EmbeddingModel-data2 dataset. It maps sentences & paragraphs to a 768-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 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': 'NomicBertModel'})
  (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', '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("vab46/nomic-embed-text-v1.5_Clinical-Trials_Matryoshka2")
# Run inference
documents = [
    '* 0-12 months of age. (Must be less than 1 year of life for the pulse oximeter portion of the study) Weight greater than 2 Kg at time of study\n* Admitted to an intensive care unit. (Not applicable for outpatient cohort)\n* Arterial line in place as standard of care (Not applicable for outpatient cohort)\n* Informed consent provided by parent or LAR.\n\n',
]
queries = [
    'What age group is targeted for this clinical trial?',
    'What is the focus of this clinical trial?',
    'Are patients with ASA physical status IV excluded from participating in this study?',
]
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.4220, -0.1157,  0.1650]])

Evaluation

Metrics

Information Retrieval

Metricdim_756dim_512dim_256dim_128dim_64
cosine_accuracy@10.28910.28340.26510.25140.2183
cosine_accuracy@30.37030.36570.35310.3360.2949
cosine_accuracy@50.39430.38970.37830.37260.3223
cosine_accuracy@100.43310.42860.42170.4080.3669
cosine_precision@10.28910.28340.26510.25140.2183
cosine_precision@30.12340.12190.11770.1120.0983
cosine_precision@50.07890.07790.07570.07450.0645
cosine_precision@100.04330.04290.04220.04080.0367
cosine_recall@10.28910.28340.26510.25140.2183
cosine_recall@30.37030.36570.35310.3360.2949
cosine_recall@50.39430.38970.37830.37260.3223
cosine_recall@100.43310.42860.42170.4080.3669
cosine_ndcg@100.35880.3550.3410.32810.2878
cosine_mrr@100.33540.33160.31540.30270.2631
cosine_map@1000.34070.33680.32080.30750.2691

Comparison with the baseline model performance on same data

metricdimensionsbase_valueft_valuediff%change
0accuracy@17680.1691430.2880.11885770.27027
1accuracy@15120.1645710.2822860.11771471.52778
2accuracy@12560.1622860.2662860.10464.08451
3accuracy@11280.1394290.2514290.11280.32787
4accuracy@1640.1234290.2182860.09485776.85185
19accuracy@10640.2514290.3680.11657146.36364
18accuracy@101280.2902860.4080.11771440.55118
17accuracy@102560.3097140.4217140.11236.16236
15accuracy@107680.3188570.4331430.11428635.84229
16accuracy@105120.3108570.4285710.11771437.86765
5accuracy@37680.2617140.3702860.10857141.48472
9accuracy@3640.1828570.2948570.11261.25
6accuracy@35120.2514290.3657140.11428645.45455
7accuracy@32560.2445710.3531430.10857144.39252
8accuracy@31280.2194290.3360.11657153.125
10accuracy@57680.2731430.3942860.12114344.35146
13accuracy@51280.2594290.3737140.11428644.05286
12accuracy@52560.2685710.3782860.10971440.85106
11accuracy@55120.2720.3897140.11771443.27731
14accuracy@5640.2171430.3222860.10514348.42105
60map@1007680.2235530.3400560.11650452.11472
64map@100640.1666050.2690930.10248861.51569
61map@1005120.2194860.3362430.11675753.19588
62map@1002560.2142260.3213190.10709349.99074
63map@1001280.1933750.3075250.1141559.03051
69mrr@10640.1620.2632350.10123562.49115
68mrr@101280.1890270.3027510.11372560.16329
67mrr@102560.2093540.3160020.10664850.94157
66mrr@105120.2141690.3309850.11681654.54395
65mrr@107680.2187090.334810.11610153.08479
71ndcg@105120.2375040.3545570.11705449.28502
72ndcg@102560.233420.3413890.10796946.25535
70ndcg@107680.2427320.3583850.11565347.64648
73ndcg@101280.2134860.3281250.11463953.69842
74ndcg@10640.1833090.2881490.1048457.19309
40precision@17680.1691430.2880.11885770.27027
41precision@15120.1645710.2822860.11771471.52778
42precision@12560.1622860.2662860.10464.08451
43precision@11280.1394290.2514290.11280.32787
44precision@1640.1234290.2182860.09485776.85185
59precision@10640.0251430.03680.01165746.36364
57precision@102560.0309710.0421710.011236.16236
56precision@105120.0310860.0428570.01177137.86765
55precision@107680.0318860.0433140.01142935.84229
58precision@101280.0290290.04080.01177140.55118
49precision@3640.0609520.0982860.03733361.25
48precision@31280.0731430.1120.03885753.125
47precision@32560.0815240.1177140.0361944.39252
45precision@37680.0872380.1234290.0361941.48472
46precision@35120.083810.1219050.03809545.45455
50precision@57680.0546290.0788570.02422944.35146
51precision@55120.05440.0779430.02354343.27731
52precision@52560.0537140.0756570.02194340.85106
53precision@51280.0518860.0747430.02285744.05286
54precision@5640.0434290.0644570.02102948.42105
23recall@11280.1394290.2514290.11280.32787
24recall@1640.1234290.2182860.09485776.85185
22recall@12560.1622860.2662860.10464.08451
21recall@15120.1645710.2822860.11771471.52778
20recall@17680.1691430.2880.11885770.27027
35recall@107680.3188570.4331430.11428635.84229
39recall@10640.2514290.3680.11657146.36364
38recall@101280.2902860.4080.11771440.55118
36recall@105120.3108570.4285710.11771437.86765
37recall@102560.3097140.4217140.11236.16236
29recall@3640.1828570.2948570.11261.25
28recall@31280.2194290.3360.11657153.125
27recall@32560.2445710.3531430.10857144.39252
26recall@35120.2514290.3657140.11428645.45455
25recall@37680.2617140.3702860.10857141.48472
31recall@55120.2720.3897140.11771443.27731
30recall@57680.2731430.3942860.12114344.35146
34recall@5640.2171430.3222860.10514348.42105
33recall@51280.2594290.3737140.11428644.05286
32recall@52560.2685710.3782860.10971440.85106
AVERAGE51.87574
VARIANCE159.257
STD_DEV12.61971

Training Details

Training Dataset

json

  • Dataset: json
  • Size: 7,869 training samples
  • Columns: positive and anchor
  • Approximate statistics based on the first 100 samples:
    positiveanchor
    typestringstring
    modalitytexttext
    detailsmin: 11 tokensmean: 132.52 tokensmax: 1135 tokensmin: 10 tokensmean: 15.27 tokensmax: 34 tokens
  • Samples:
    positiveanchor
    * - Age 18 years or older* Biopsy-proven primary IgA nephropathy or primary focal segmental glomerulosclerosis* Stable kidney function with an estimated glomerular filtration rate greater than 30 mL/min/1.73 m²* Availability of serum and urine samples for soluble CD163 measurement* Availability of relevant demographic, clinical, laboratory, histopathologic, and follow-up data* For the healthy control group: age- and sex-matched individuals without known chronic disease and with normal kidney function* Written informed consentWhat are the specific kidney diseases included in this clinical trial?
    * Written informed consent obtained and documented by the participant's signature.* Age ≥18 years at the time of consent.* Clinically established or suspected diagnosis or recurrence of an oncologic or non-oncologic disease as defined in chapter 7.1 of study protocol.* Availability of standard-of-care imaging (e.g., clinically established PET tracer or anatomical imaging such as CT/MRI) to allow comparative evaluation.What type of cancer or non-cancerous condition are participants diagnosed with?
    * Patients aged 16 years or older at the time of debonding* Treatment plan of extraction or non-extraction followed by straight wire appliances in the upper arch only or both arches* Undergone expansion treatment in the upper arch causing an arch width increase of 3-10mm, either using a Quadhelix, expansion with archwires, or URA with midline screw* Had pretreatment dental cast* Had no chronic medical condition.What is the minimum age requirement for patients in this clinical trial?
  • Loss: MatryoshkaLoss with these parameters:
    {
        "loss": "MultipleNegativesRankingLoss",
        "matryoshka_dims": [
            768,
            512,
            256,
            128,
            64
        ],
        "matryoshka_weights": [
            1,
            1,
            1,
            1,
            1
        ],
        "n_dims_per_step": -1
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • num_train_epochs: 4
  • learning_rate: 2e-05
  • lr_scheduler_type: cosine
  • warmup_steps: 0.1
  • gradient_accumulation_steps: 4
  • fp16: True
  • per_device_eval_batch_size: 32
  • load_best_model_at_end: True
  • batch_sampler: no_duplicates

All Hyperparameters

  • per_device_train_batch_size: 8
  • num_train_epochs: 4
  • max_steps: -1
  • learning_rate: 2e-05
  • lr_scheduler_type: cosine
  • 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: 4
  • average_tokens_across_devices: True
  • max_grad_norm: 1.0
  • label_smoothing_factor: 0.0
  • bf16: False
  • fp16: True
  • 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: 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: False
  • hub_private_repo: None
  • hub_model_id: None
  • 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: 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: False
  • 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: None
  • batch_sampler: no_duplicates
  • multi_dataset_batch_sampler: proportional
  • router_mapping: {}
  • learning_rate_mapping: {}
  • warmup_ratio: None

Training Logs

EpochStepTraining Lossdim_768_cosine_ndcg@10dim_512_cosine_ndcg@10dim_256_cosine_ndcg@10dim_128_cosine_ndcg@10dim_64_cosine_ndcg@10
0.0407105.5717-----
0.0813204.9373-----
0.1220304.5507-----
0.1626403.8079-----
0.2033502.9460-----
0.2439603.1437-----
0.2846702.5972-----
0.3252802.5577-----
0.3659902.5690-----
0.40651002.1669-----
0.44721102.2879-----
0.48781202.6614-----
0.52851302.2336-----
0.56911402.2764-----
0.60981502.3098-----
0.65041602.0261-----
0.69111702.1120-----
0.73171802.1823-----
0.77241902.0571-----
0.81302001.9998-----
0.85372101.5755-----
0.89432201.9850-----
0.93502301.8681-----
0.97562401.6443-----
1.0246-0.33900.33580.32180.30630.2723
1.01632500.7610-----
1.05692601.1679-----
1.09762701.4650-----
1.13822801.6955-----
1.17892901.6553-----
1.21953001.6029-----
1.26023101.4699-----
1.30083201.6808-----
1.34153301.7057-----
1.38213401.1027-----
1.42283501.2826-----
1.46343601.7582-----
1.50413701.2342-----
1.54473801.4462-----
1.58543901.2926-----
1.62604001.4036-----
1.66674101.6060-----
1.70734201.3300-----
1.74804301.5389-----
1.78864401.5757-----
1.82934501.6651-----
1.86994601.1993-----
1.91064701.5296-----
1.95124801.4255-----
1.99194900.3873-----
2.0492-0.35470.35160.33730.31650.2827
2.03255000.7046-----
2.07325100.6703-----
2.11385200.9343-----
2.15455301.1007-----
2.19515401.0442-----
2.23585500.9432-----
2.27645600.9315-----
2.31715700.8180-----
2.35775801.1383-----
2.39845900.9215-----
2.43906000.7907-----
2.47976101.0829-----
2.52036200.9923-----
2.56106301.0240-----
2.60166400.8502-----
2.64236500.7081-----
2.68296601.0104-----
2.72366700.9618-----
2.76426801.0599-----
2.80496900.8671-----
2.84557000.9581-----
2.88627100.9968-----
2.92687201.0256-----
2.96757300.7552-----
3.0738-0.35590.35470.33950.32690.2862
3.00817400.0859-----
3.04887500.8926-----
3.08947600.6620-----
3.13017700.6895-----
3.17077800.7186-----
3.21147900.5966-----
3.25208000.8555-----
3.29278100.4267-----
3.33338200.7140-----
3.37408300.6585-----
3.41468400.4519-----
3.45538500.5665-----
3.49598600.6698-----
3.53668700.6609-----
3.57728800.6900-----
3.61798900.9147-----
3.65859000.8602-----
3.69929100.4820-----
3.73989200.6155-----
3.78059300.8543-----
3.82119400.5862-----
3.86189500.6409-----
3.90249600.8298-----
3.94319700.8156-----
3.98379800.1714-----
4.0984-0.35880.3550.3410.32810.2878
  • The bold row denotes the saved checkpoint.

Training Time

  • Training: 26.0 minutes

Framework Versions

  • Python: 3.13.15
  • Sentence Transformers: 5.7.0
  • Transformers: 5.15.0
  • PyTorch: 2.11.0+cu128
  • Accelerate: 1.14.0
  • Datasets: 4.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",
}

MatryoshkaLoss

@misc{kusupati2024matryoshka,
    title={Matryoshka Representation Learning},
    author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
    year={2024},
    eprint={2205.13147},
    archivePrefix={arXiv},
    primaryClass={cs.LG}
}

MultipleNegativesRankingLoss

@misc{oord2019representationlearningcontrastivepredictive,
      title={Representation Learning with Contrastive Predictive Coding},
      author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
      year={2019},
      eprint={1807.03748},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1807.03748},
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей