/ Модель

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

Контекст
512 токенов
Параметры
50,3 млн
Архитектура
bert · dense
Библиотека
sentence-transformers
Опубликована
8 мар 2025

Bioformer-8L-UMLS-Pubmed_PMC-Backward_TCE-Epoch-1

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

BERT-модель Sentence Transformer для создания эмбеддингов медицинских текстов и поиска семантически близких предложений и документов.

124скачиваний за 30 дней0лайковвеса обновлены8 мар 2025

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Pankajrajdeo разработал Bioformer-8L-UMLS-Pubmed_PMC-Backward_TCE-Epoch-1 — модель Sentence Transformer на архитектуре BERT для получения векторных представлений медицинских текстов. Она кодирует предложения и абзацы в плотные векторы размерностью 512 и предназначена для поиска семантически близких текстов, оценки сходства предложений, поиска перефразировок, классификации и кластеризации. Для сравнения векторов используется косинусное сходство.

Модель содержит 50,3 млн параметров, принимает текстовые последовательности длиной до 512 токенов и формирует эмбеддинги с усреднением токенных представлений. Обучение указано на наборе parquet с парами anchor и positive; примеры в README относятся к биомедицинским публикациям. Лицензия в предоставленных данных не указана.

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

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

Ограничения

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

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

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

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

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

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

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

Открыть на Hugging Face

SentenceTransformer

This is a sentence-transformers model trained on the parquet dataset. It maps sentences & paragraphs to a 512-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
  • Maximum Sequence Length: 512 tokens
  • Output Dimensionality: 512 dimensions
  • Similarity Function: Cosine Similarity
  • Training Dataset:
    • parquet

Model Sources

Full Model Architecture

SentenceTransformer(
  (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel 
  (1): Pooling({'word_embedding_dimension': 512, '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("pankajrajdeo/Bioformer-8L-UMLS-Pubmed_PMC-Backward_TCE-Epoch-1")
# Run inference
sentences = [
    'Stage-specific protein synthesis by isolated spermatogenic cells throughout meiosis and early spermiogenesis in the mouse.',
    'Spermatogenic cells isolated from prepubertal and adult mice by unit gravity sedimentation have been used to examine proteins synthesized in a stage-specific manner throughout meiosis and early spermiogenesis. Preleptotene, leptotene/zygotene, and pachytene spermatocytes were isolated from 17-day-old mice. Adult pachytene spermatocytes and round spermatids were isolated from mature animals. These germ cells were then cultured in defined medium withmethioninemet, when expressed either as cpm/-10(6) cells or cpm/mg protein. Comparisons of 2D autoradiograms indicated that many proteins, including actin and tubulins, are synthesized at approximately equal levels in all stages examined. Other proteins, including heat-shock proteins and multiple plasma membrane constituents, are synthesized in a stage-specific manner in leptotene/zygotene spermatocytes, pachytene spermatocytes, and round spermatids. These studies define conditions for monitoring protein synthesis in isolated spermatogenic cells prior to the pachytene stage of meiosis, provide a 2D map of proteins synthesized at these earlier meiotic stages, and examine the synthesis of several proteins previously identified on 2D gels with biochemical and immunological methods.',
    'Valine-derived benzoxazinones have been synthesized and found to be competitive, slow-binding inhibitors of human leukocyte elastase (HLE). Steady-state inhibition constants Ki are dependent on aryl substitution and reach a maximum of potency of 0.5 nM with the 5-Cl compound 6. UV-spectral data for the interaction of HLE and the unsubstituted inhibitor 3 indicate that the stable complex formed between enzyme and inhibitor is an acyl-enzyme that can either undergo ring closure, to reform intact benzoxazinone, or hydrolysis, to liberate an N-acylanthranilic acid. "Burst" kinetic data, derived from the direct observation of the interaction of HLE and 3, are consistent with results of the inhibition of catalysis experiments.',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 512]

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

Training Details

Training Dataset

parquet

  • Dataset: parquet
  • Size: 33,870,508 training samples
  • Columns: anchor and positive
  • Approximate statistics based on the first 1000 samples:
    anchorpositive
    typestringstring
    detailsmin: 5 tokensmean: 24.6 tokensmax: 68 tokensmin: 13 tokensmean: 270.2 tokensmax: 512 tokens
  • Samples:
    anchorpositive
    Underlying synovial sarcoma undiagnosed for more than 20 years in a patient with regional pain: a case report.Synovial sarcoma (SS) is a malignant tumor comprising 5-10% of all soft tissue sarcomas. SS has distinct characteristics, such as a predilection for young adults and relatively slow growth compared to other soft tissue sarcomas. Some patients with SS experience long-standing pain at the tumor site before the development of a palpable mass. Herein, we report the case of a 39-year-old woman with SS in the upper arm who presented with pain for > 20 years. The tumor detected on magnetic resonance imaging at 17 years was an SS. To the best of our knowledge, no English-language reports on imaging study-based identification of SS, which was undiagnosed for > 20 years, are known in the literature. This report discusses the imaging features of this latent lesion and the volume-doubling time of this unusual tumor.
    MR imaging signs of shoulder adhesive capsulitis: analysis of potential differentials and improved diagnostic criteria.OBJECTIVE: To evaluate the prevalence of shoulder adhesive capsulitis. Based on these findings, a grading system for fibro-inflammatory capsular changes is proposed. CONCLUSION: MR AC signs are frequent in patients with shoulder conditions other than AC; however, in these patients, capsular changes are less prominent than in patients with clinical AC.
    MR imaging signs of shoulder adhesive capsulitis: analysis of potential differentials and improved diagnostic criteria.OBJECTIVE: To evaluate the prevalence of shoulder adhesive capsulitis. Based on these findings, a grading system for fibro-inflammatory capsular changes is proposed. CONCLUSION: MR AC signs are frequent in patients with shoulder conditions other than AC; however, in these patients, capsular changes are less prominent than in patients with clinical AC.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim"
    }
    

Evaluation Dataset

parquet

  • Dataset: parquet
  • Size: 33,870,508 evaluation samples
  • Columns: anchor and positive
  • Approximate statistics based on the first 1000 samples:
    anchorpositive
    typestringstring
    detailsmin: 6 tokensmean: 18.94 tokensmax: 60 tokensmin: 26 tokensmean: 199.08 tokensmax: 512 tokens
  • Samples:
    anchorpositive
    Effect of ritodrine on thyroid hormone concentrations.In a clinical study of 17 pregnant women treated with ritodrine, a beta-2-sympathomimetic agent used for tocolysis, thyroid hormone status was assessed longitudinally. This was done in order to verify the hypothesis that an increase in T3 levels could result from adrenergic stimulation, since propanolol, a beta blocking agent, has proved to decrease T3 levels in man. We have observed a significant increase in serum T3 concentrations 24-48 h after the start of the ritodrine treatment. The changes were only temporarely since one week after the start the serum T3 concentrations did not differ significantly from the pre-treatment levels. A decrease in T3 levels was found after discontinuation of treatment. No significant changes were found in T4 and TSH concentrations excluding an influence in ritodrine therapy on the pituitary-thyroid axes. It was concluded that stimulation of type I deiodinase was responsible for the changes in T3. These beta-2-mimetic variations may explain, to a certai...
    beta-Aminoisobutyric acid as a marker of thymine catabolism in malignancy.Urine from untreated patients with various tumours and controls has been examined for the excretion of beta-aminoisobutyric acid and uric acid. The patients were classified into four groups: I, beta-aminoisobutyric acid and uric acid both normal; II, beta-aminoisobutyric acid normal, uric acid elevated; III, beta-aminoisobutyric acid elevated, uric acid normal; IV, beta-aminoisobutyric acid and uric acid both elevated. Uric acid was used as an indicator for tissue-breakdown. Pseudouridine being a specific parameter for t-RNA degradation was estimated for comparison. Increased urinary concentrations of beta-aminoisobutyric acid were frequently found in tumour patients, especially in patients with leukaemia and non-Hodgkin lymphoma. Tissue breakdown being the cause of the beta-aminoisobutyric aciduria could only be considered in part of the patients. Moreover, strongly elevated ratios of beta-aminoisobutyric acid to uric acid were found. Urinary patterns of pyrimidines and purines were d...
    The effect of oral contraceptives on plasma-free and salivary cortisol and cortisone.The effect of a low estrogen oral contraceptive (OC) on glucocorticoid levels in plasma and saliva as well as glucocorticoid binding was studied in 23 healthy women using 30 micrograms ethinyl estradiol (EE2) + 150 micrograms desogestrel (Marvelon) (II). Fifteen healthy females with normal menses served as controls (I). Blood and salivary samples were taken between 9.00 and 9.30 a.m. on the 18th day of menstrual or pill cycle. Assay accuracy had been optimised by applying extraction and chromatographic purification before radioimmunoassay (RIA) of cortisol and cortisone in both plasma and salivary samples. Free steroid assays were performed by applying the same procedure to equilibrium dialysates obtained after dialysing plasma against an equal volume of buffer, instead of measuring tracer distribution. Corticosteroid Binding Globulin (CBG) was measured by a commercial RIA. As expected, CBG as well as plasma total cortisol were elevated in the pill group. Interestingly both plasma free...
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim"
    }
    

Training Hyperparameters

Non-Default Hyperparameters

  • eval_strategy: steps
  • per_device_train_batch_size: 128
  • learning_rate: 2e-05
  • num_train_epochs: 1
  • max_steps: 251382
  • log_level: info
  • fp16: True
  • dataloader_num_workers: 16
  • load_best_model_at_end: True
  • resume_from_checkpoint: True

All Hyperparameters

  • overwrite_output_dir: False
  • do_predict: False
  • eval_strategy: steps
  • prediction_loss_only: True
  • per_device_train_batch_size: 128
  • per_device_eval_batch_size: 8
  • 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: 251382
  • lr_scheduler_type: linear
  • lr_scheduler_kwargs: {}
  • warmup_ratio: 0.0
  • warmup_steps: 0
  • log_level: info
  • 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: 16
  • dataloader_prefetch_factor: None
  • past_index: -1
  • disable_tqdm: False
  • remove_unused_columns: True
  • label_names: None
  • load_best_model_at_end: True
  • 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}
  • 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: True
  • 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: proportional

Training Logs

EpochStepTraining LossValidation Loss
0.000011.2229-
0.004010000.2405-
0.008020000.1332-
0.011930000.1025-
0.015940000.0872-
0.019950000.0707-
0.023960000.0733-
0.027870000.0736-
0.031880000.1194-
0.035890000.1336-
0.0398100000.1102-
0.0438110000.0936-
0.0477120000.0547-
0.0517130000.0709-
0.0557140000.0718-
0.0597150000.0431-
0.0636160000.0299-
0.0676170000.0458-
0.0716180000.0356-
0.0756190000.0293-
0.0796200000.0325-
0.0835210000.0308-
0.0875220000.0334-
0.0915230000.04-
0.0955240000.0293-
0.0994250000.0354-
0.1034260000.0254-
0.1074270000.0258-
0.1114280000.0285-
0.1154290000.0319-
0.1193300000.0437-
0.1233310000.0397-
0.1273320000.048-
0.1313330000.0482-
0.1353340000.0635-
0.1392350000.0447-
0.1432360000.0482-
0.1472370000.0441-
0.1512380000.0418-
0.1551390000.0732-
0.1591400000.0675-
0.1631410000.0721-
0.1671420000.0719-
0.1711430000.0665-
0.1750440000.0523-
0.1790450000.0412-
0.1830460000.0611-
0.1870470000.0664-
0.1909480000.0645-
0.1949490000.0614-
0.1989500000.063-
0.2029510000.0318-
0.2069520000.0436-
0.2108530000.0434-
0.2148540000.0423-
0.2188550000.0433-
0.2228560000.0382-
0.2267570000.0425-
0.2307580000.038-
0.2347590000.0423-
0.2387600000.0398-
0.2427610000.039-
0.2466620000.0638-
0.2506630000.0649-
0.2546640000.0586-
0.2586650000.0586-
0.2625660000.0572-
0.2665670000.0613-
0.2705680000.0566-
0.2745690000.0366-
0.2785700000.0356-
0.2824710000.0284-
0.2864720000.0342-
0.2904730000.0328-
0.2944740000.029-
0.2983750000.035-
0.3023760000.0352-
0.3063770000.0346-
0.3103780000.0515-
0.3143790000.0513-
0.3182800000.05-
0.3222810000.0436-
0.3262820000.0408-
0.3302830000.0465-
0.3342840000.0354-
0.3381850000.0478-
0.3421860000.0464-
0.3461870000.0399-
0.3501880000.0393-
0.3540890000.0667-
0.3580900000.0719-
0.3620910000.0611-
0.3660920000.0567-
0.3700930000.0461-
0.3739940000.0593-
0.3779950000.0525-
0.3819960000.0406-
0.3859970000.0346-
0.3898980000.0351-
0.3938990000.0365-
0.39781000000.0293-
0.40181010000.0356-
0.40581020000.0694-
0.40971030000.0596-
0.41371040000.0698-
0.41771050000.0592-
0.42171060000.0637-
0.42561070000.0677-
0.42961080000.0709-
0.43361090000.0443-
0.43761100000.0339-
0.44161110000.0403-
0.44551120000.041-
0.44951130000.0443-
0.45351140000.0379-
0.45751150000.0492-
0.46141160000.0469-
0.46541170000.0712-
0.46941180000.0633-
0.47341190000.0653-
0.47741200000.049-
0.48131210000.0612-
0.48531220000.0271-
0.48931230000.0296-
0.49331240000.0356-
0.49721250000.0496-
0.50121260000.0491-
0.50521270000.0567-
0.50921280000.0638-
0.51321290000.0567-
0.51711300000.0419-
0.52111310000.0499-
0.52511320000.0296-
0.52911330000.0412-
0.53311340000.0339-
0.53701350000.041-
0.54101360000.051-
0.54501370000.056-
0.54901380000.0397-
0.55291390000.0559-
0.55691400000.0628-
0.56091410000.0482-
0.56491420000.0363-
0.56891430000.0471-
0.57281440000.0324-
0.57681450000.0343-
0.58081460000.0474-
0.58481470000.067-
0.58871480000.0548-
0.59271490000.0501-
0.59671500000.047-
0.60071510000.0259-
0.60471520000.0363-
0.60861530000.0308-
0.61261540000.025-
0.61661550000.0495-
0.62061560000.0486-
0.62451570000.0412-
0.62851580000.0368-
0.63251590000.0375-
0.63651600000.0343-
0.64051610000.0416-
0.64441620000.049-
0.64841630000.0679-
0.65241640000.0643-
0.65641650000.0708-
0.66031660000.0573-
0.66431670000.0648-
0.66831680000.0626-
0.67231690000.0375-
0.67631700000.0421-
0.68021710000.0429-
0.68421720000.0762-
0.68821730000.0687-
0.69221740000.0617-
0.69611750000.0373-
0.70011760000.0529-
0.70411770000.0453-
0.70811780000.0447-
0.71211790000.0472-
0.71601800000.0387-
0.72001810000.0337-
0.72401820000.0577-
0.72801830000.0728-
0.73201840000.0765-
0.73591850000.0621-
0.73991860000.0585-
0.74391870000.0455-
0.74791880000.1172-
0.75181890000.0442-
0.75581900000.0558-
0.75981910000.0338-
0.76381920000.0328-
0.76781930000.0783-
0.77171940000.068-
0.77571950000.073-
0.77971960000.0605-
0.78371970000.0641-
0.78761980000.04-
0.79161990000.047-
0.79562000000.0734-
0.79962010000.0558-
0.80362020000.044-
0.80752030000.0467-
0.81152040000.0607-
0.81552050000.0695-
0.81952060000.0536-
0.82342070000.0599-
0.82742080000.0621-
0.83142090000.0717-
0.83542100000.0517-
0.83942110000.0596-
0.84332120000.0816-
0.84732130000.0595-
0.85132140000.0572-
0.85532150000.0715-
0.85922160000.0585-
0.86322170000.079-
0.86722180000.0903-
0.87122190000.0941-
0.87522200000.0734-
0.87912210000.0656-
0.88312220000.0966-
0.88712230000.0826-
0.89112240000.0702-
0.89502250000.0939-
0.89902260000.0651-
0.90302270000.0938-
0.90702280000.0781-
0.91102290000.0587-
0.91492300000.1404-
0.91892310000.059-
0.92292320000.0715-
0.92692330000.1225-
0.93092340000.0551-
0.93482350000.1245-
0.93882360000.0587-
0.94282370000.118-
0.94682380000.0593-
0.95072390000.0626-
0.95472400000.0885-
0.95872410000.0614-
0.96272420000.1232-
0.96672430000.0574-
0.97062440000.1269-
0.97462450000.0591-
0.97862460000.1019-
0.98262470000.0518-
0.98652480000.1064-
0.99052490000.0785-
0.99452500000.0949-
0.99852510000.0976-
1.0000251382-0.0076

Framework Versions

  • Python: 3.11.11
  • Sentence Transformers: 3.4.1
  • Transformers: 4.48.2
  • PyTorch: 2.6.0+cu124
  • Accelerate: 1.3.0
  • Datasets: 3.2.0
  • Tokenizers: 0.21.0

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…

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

0 моделей