/ Модель

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

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

Bioformer-8L-UMLS-Pubmed_PMC-Forward_TCE-Epoch-2-MSMARCO-Epoch-1

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

BERT-модель Sentence Transformers создаёт 512-мерные векторы текста для семантического поиска и сравнения предложений.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pankajrajdeo/Bioformer-8L-UMLS-Pubmed_PMC-Forward_TCE-Epoch-2-MSMARCO-Epoch-1 — модель Sentence Transformers на базе BERT, предназначенная для получения векторных представлений предложений и абзацев. Веса имеют около 50,3 млн параметров; модель кодирует текст в плотные векторы размерностью 512, а для сравнения используется косинусное сходство. Максимальная длина входа — 512 токенов, pooling усредняет представления токенов.

Модель подходит для семантического поиска, сопоставления текстов по смыслу, поиска перефразировок, кластеризации и классификации текста. Название указывает на связь с Bioformer, UMLS, PubMed и PMC, а также на этап обучения с MSMARCO; README сообщает о обучении на парах anchor-positive с MultipleNegativesRankingLoss, но не раскрывает подробностей этих этапов. Для применения нужны библиотека Sentence Transformers или совместимая среда для эмбеддингов; формат весов — safetensors. Лицензия в доступных данных не указана.

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

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

Ограничения

Вход ограничен 512 токенами. Языки, лицензия и сравнительные показатели качества в предоставленных данных не определены.

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

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

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

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

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-Forward_TCE-Epoch-2-MSMARCO-Epoch-1")
# Run inference
sentences = [
    'does the columbus zoo sell beer',
    'No glass and/or alcohol are permitted at the Columbus Zoo. This means that they do not sell alcoholic beverages.',
    'Eviction law allows landlords to still ask you to move out, but you must be afforded some extra protections. First, for eviction notices without cause, the landlord must give you a longer period of notice to vacate, generally 30 or 60 days. This lengthened time period is designed to allow you to find another place to live.',
]
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: 39,780,704 training samples
  • Columns: anchor and positive
  • Approximate statistics based on the first 1000 samples:
    anchorpositive
    typestringstring
    detailsmin: 4 tokensmean: 9.85 tokensmax: 38 tokensmin: 15 tokensmean: 87.54 tokensmax: 246 tokens
  • Samples:
    anchorpositive
    is a little caffeine ok during pregnancyWe don’t know a lot about the effects of caffeine during pregnancy on you and your baby. So it’s best to limit the amount you get each day. If you’re pregnant, limit caffeine to 200 milligrams each day. This is about the amount in 1½ 8-ounce cups of coffee or one 12-ounce cup of coffee.
    what fruit is native to australiaPassiflora herbertiana. A rare passion fruit native to Australia. Fruits are green-skinned, white fleshed, with an unknown edible rating. Some sources list the fruit as edible, sweet and tasty, while others list the fruits as being bitter and inedible.assiflora herbertiana. A rare passion fruit native to Australia. Fruits are green-skinned, white fleshed, with an unknown edible rating. Some sources list the fruit as edible, sweet and tasty, while others list the fruits as being bitter and inedible.
    how large is the canadian militaryThe Canadian Armed Forces. 1 The first large-scale Canadian peacekeeping mission started in Egypt on November 24, 1956. 2 There are approximately 65,000 Regular Force and 25,000 reservist members in the Canadian military. 3 In Canada, August 9 is designated as National Peacekeepers’ Day.
  • Loss: MultipleNegativesRankingLoss with these parameters:
    {
        "scale": 20.0,
        "similarity_fct": "cos_sim"
    }
    

Evaluation Dataset

parquet

  • Dataset: parquet
  • Size: 39,780,704 evaluation samples
  • Columns: anchor and positive
  • Approximate statistics based on the first 1000 samples:
    anchorpositive
    typestringstring
    detailsmin: 4 tokensmean: 9.97 tokensmax: 28 tokensmin: 28 tokensmean: 85.19 tokensmax: 228 tokens
  • Samples:
    anchorpositive
    chemical weathering definitionChemical weathering is the process where rocks and minerals, which originally formed deep underground at much higher temperatures and pressures, gradually transform into different chemical compounds once they are exposed to air and water at the surface.
    what is the difference between breathe and breath• The word breath is used as noun. • On the other hand, the word breathe is used as verb. This is the main difference between the two words. • The word breath is used in the sense of ‘air taken in and out during breathing’. • On the other hand, the word breathe is used in the sense of ‘take air into the lungs and then let it out’. • The word breathe is sometimes used with the expression ‘his/her last’, and it gives the meaning of ‘die.’ This is used for both breath and breathe. His last breath, breathed her last.
    what is natural neck tighteningUse Sunscreen: One of the best, and a natural method for tightening skin includes applying sunscreen on the face and neck area. This will help to protect against UV rays that can be harmful and help to prevent the premature aging of your skin.
  • 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: 295247
  • 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: 295247
  • 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.000010.7512-
0.003410000.3943-
0.006820000.3161-
0.010230000.2452-
0.013540000.2214-
0.016950000.2056-
0.020360000.2048-
0.023770000.1895-
0.027180000.1971-
0.030590000.1915-
0.0339100000.1578-
0.0373110000.1808-
0.0406120000.1621-
0.0440130000.1515-
0.0474140000.1511-
0.0508150000.147-
0.0542160000.1498-
0.0576170000.1472-
0.0610180000.1379-
0.0644190000.1339-
0.0677200000.1275-
0.0711210000.1351-
0.0745220000.1289-
0.0779230000.1241-
0.0813240000.1394-
0.0847250000.1339-
0.0881260000.1266-
0.0914270000.1067-
0.0948280000.1072-
0.0982290000.1184-
0.1016300000.1162-
0.1050310000.1077-
0.1084320000.1036-
0.1118330000.1227-
0.1152340000.1088-
0.1185350000.108-
0.1219360000.1145-
0.1253370000.0976-
0.1287380000.0941-
0.1321390000.102-
0.1355400000.0998-
0.1389410000.1033-
0.1423420000.0965-
0.1456430000.0968-
0.1490440000.0936-
0.1524450000.0809-
0.1558460000.0937-
0.1592470000.0879-
0.1626480000.0889-
0.1660490000.0684-
0.1693500000.0949-
0.1727510000.0861-
0.1761520000.0886-
0.1795530000.0778-
0.1829540000.0958-
0.1863550000.0791-
0.1897560000.0872-
0.1931570000.0768-
0.1964580000.0846-
0.1998590000.0894-
0.2032600000.0825-
0.2066610000.0779-
0.2100620000.0819-
0.2134630000.0797-
0.2168640000.0635-
0.2202650000.0896-
0.2235660000.0816-
0.2269670000.0782-
0.2303680000.0766-
0.2337690000.0879-
0.2371700000.0794-
0.2405710000.0775-
0.2439720000.0753-
0.2472730000.0719-
0.2506740000.0657-
0.2540750000.0726-
0.2574760000.0764-
0.2608770000.069-
0.2642780000.0742-
0.2676790000.0621-
0.2710800000.0606-
0.2743810000.0648-
0.2777820000.0612-
0.2811830000.0615-
0.2845840000.0609-
0.2879850000.0596-
0.2913860000.065-
0.2947870000.0556-
0.2981880000.0715-
0.3014890000.0643-
0.3048900000.061-
0.3082910000.068-
0.3116920000.0613-
0.3150930000.0593-
0.3184940000.0661-
0.3218950000.0649-
0.3252960000.0663-
0.3285970000.0574-
0.3319980000.0659-
0.3353990000.0574-
0.33871000000.061-
0.34211010000.0605-
0.34551020000.0651-
0.34891030000.0561-
0.35221040000.0548-
0.35561050000.0598-
0.35901060000.0634-
0.36241070000.0664-
0.36581080000.0609-
0.36921090000.0595-
0.37261100000.0537-
0.37601110000.0563-
0.37931120000.057-
0.38271130000.0592-
0.38611140000.0513-
0.38951150000.0581-
0.39291160000.0513-
0.39631170000.0601-
0.39971180000.0609-
0.40311190000.0603-
0.40641200000.0557-
0.40981210000.0525-
0.41321220000.0534-
0.41661230000.0592-
0.42001240000.0582-
0.42341250000.0548-
0.42681260000.0505-
0.43011270000.055-
0.43351280000.0599-
0.43691290000.0567-
0.44031300000.0496-
0.44371310000.0535-
0.44711320000.0453-
0.45051330000.0524-
0.45391340000.046-
0.45721350000.0531-
0.46061360000.0515-
0.46401370000.0542-
0.46741380000.0596-
0.47081390000.0473-
0.47421400000.0523-
0.47761410000.0527-
0.48101420000.0557-
0.48431430000.0499-
0.48771440000.0451-
0.49111450000.0501-
0.49451460000.0505-
0.49791470000.0561-
0.50131480000.0512-
0.50471490000.0497-
0.50801500000.0497-
0.51141510000.0552-
0.51481520000.0531-
0.51821530000.049-
0.52161540000.0431-
0.52501550000.0483-
0.52841560000.0469-
0.53181570000.0514-
0.53511580000.0447-
0.53851590000.0474-
0.54191600000.0447-
0.54531610000.0493-
0.54871620000.046-
0.55211630000.0434-
0.55551640000.0469-
0.55891650000.0464-
0.56221660000.0462-
0.56561670000.0537-
0.56901680000.0455-
0.57241690000.0423-
0.57581700000.0419-
0.57921710000.0463-
0.58261720000.0505-
0.58591730000.0461-
0.58931740000.0417-
0.59271750000.0469-
0.59611760000.0443-
0.59951770000.0486-
0.60291780000.0478-
0.60631790000.0421-
0.60971800000.0555-
0.61301810000.0443-
0.61641820000.0483-
0.61981830000.0409-
0.62321840000.0426-
0.62661850000.0507-
0.63001860000.0441-
0.63341870000.0463-
0.63681880000.0445-
0.64011890000.0503-
0.64351900000.0462-
0.64691910000.0427-
0.65031920000.0362-
0.65371930000.0456-
0.65711940000.0456-
0.66051950000.0496-
0.66381960000.0403-
0.66721970000.0463-
0.67061980000.0459-
0.67401990000.0434-
0.67742000000.0431-
0.68082010000.0438-
0.68422020000.0394-
0.68762030000.0485-
0.69092040000.0404-
0.69432050000.0421-
0.69772060000.0492-
0.70112070000.0434-
0.70452080000.0386-
0.70792090000.036-
0.71132100000.0426-
0.71472110000.0428-
0.71802120000.0452-
0.72142130000.0414-
0.72482140000.0423-
0.72822150000.0364-
0.73162160000.0373-
0.73502170000.0394-
0.73842180000.0388-
0.74172190000.0428-
0.74512200000.04-
0.74852210000.0401-
0.75192220000.0396-
0.75532230000.0416-
0.75872240000.0364-
0.76212250000.0414-
0.76552260000.0455-
0.76882270000.0345-
0.77222280000.0437-
0.77562290000.0434-
0.77902300000.035-
0.78242310000.0422-
0.78582320000.0391-
0.78922330000.041-
0.79262340000.0427-
0.79592350000.0401-
0.79932360000.0402-
0.80272370000.0411-
0.80612380000.0372-
0.80952390000.0385-
0.81292400000.0398-
0.81632410000.036-
0.81962420000.0389-
0.82302430000.044-
0.82642440000.0397-
0.82982450000.0426-
0.83322460000.0379-
0.83662470000.0356-
0.84002480000.0388-
0.84342490000.0373-
0.84672500000.0402-
0.85012510000.0404-
0.85352520000.0427-
0.85692530000.0334-
0.86032540000.035-
0.86372550000.0405-
0.86712560000.0336-
0.87052570000.0443-
0.87382580000.0386-
0.87722590000.0419-
0.88062600000.0352-
0.88402610000.0434-
0.88742620000.0365-
0.89082630000.0388-
0.89422640000.0416-
0.89762650000.0368-
0.90092660000.0389-
0.90432670000.0382-
0.90772680000.036-
0.91112690000.0346-
0.91452700000.0371-
0.91792710000.0413-
0.92132720000.0399-
0.92462730000.0357-
0.92802740000.0373-
0.93142750000.0369-
0.93482760000.0387-
0.93822770000.0338-
0.94162780000.0365-
0.94502790000.0316-
0.94842800000.0362-
0.95172810000.0378-
0.95512820000.0379-
0.95852830000.0396-
0.96192840000.0379-
0.96532850000.0351-
0.96872860000.0357-
0.97212870000.0413-
0.97552880000.0341-
0.97882890000.0375-
0.98222900000.0383-
0.98562910000.0376-
0.98902920000.0351-
0.99242930000.0419-
0.99582940000.0373-
0.99922950000.039-
1.0000295247-0.0001

Framework Versions

  • Python: 3.11.11
  • Sentence Transformers: 3.4.1
  • Transformers: 4.48.2
  • PyTorch: 2.6.0+cu124
  • Accelerate: 1.5.2
  • 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
Ревизия весов
281b822

0 моделей