sultan / BioM-BERT-PubMed-PMC-Large

huggingface.co
Total runs: 46
24-hour runs: -5
7-day runs: 6
30-day runs: 21
Model's Last Updated: November 05 2023

Introduction of BioM-BERT-PubMed-PMC-Large

Model Details of BioM-BERT-PubMed-PMC-Large

BioM-Transformers: Building Large Biomedical Language Models with BERT, ALBERT and ELECTRA

Abstract

The impact of design choices on the performance of biomedical language models recently has been a subject for investigation. In this paper, we empirically study biomedical domain adaptation with large transformer models using different design choices. We evaluate the performance of our pretrained models against other existing biomedical language models in the literature. Our results show that we achieve state-of-the-art results on several biomedical domain tasks despite using similar or less computational cost compared to other models in the literature. Our findings highlight the significant effect of design choices on improving the performance of biomedical language models.

Model Description

This model was pre-trained with ELECTRA implementation of BERT that omit Next Sentence Prediction and introduce Dynamic Masking Loss Function instead of ELECTRA function. Since the model uses ELECTRA implementation of BERT, the architecture of the model in huggingface library is indeed ELECTRA. This model was pre-trained on TPUv3-512 for 690K steps with batch size of 4,192 on both PubMed Abstracts and PMC full article + general domain vocab (EN Wiki + Books). This design choice help this model achieving State-of-the-art on certain Bio Text Classification Tasks such as ChemProt. . In order to help researchers with limited resources to fine-tune larger models, we created an example with PyTorch XLA. PyTorch XLA ( https://github.com/pytorch/xla ) is a library that allows you to use PyTorch on TPU units, which is provided for free by Google Colab and Kaggle. Follow this example to work with PyTorch/XLA Link . In this example we achieve 80.74 micro F1 score on ChemProt task with BioM-ALBERTxxlarge . Fine-tuning takes 43 minutes for 5 epochs .

Check our GitHub repo at https://github.com/salrowili/BioM-Transformers for TensorFlow and GluonNLP checkpoints. We also updated this repo with a couple of examples on how to fine-tune LMs on text classification and questions answering tasks such as ChemProt, SQuAD, and BioASQ.

Colab Notebook Examples

BioM-ELECTRA-LARGE on NER and ChemProt Task Open In Colab

BioM-ELECTRA-Large on SQuAD2.0 and BioASQ7B Factoid tasks Open In Colab

BioM-ALBERT-xxlarge on SQuAD2.0 and BioASQ7B Factoid tasks Open In Colab

Text Classification Task With HuggingFace Transformers and PyTorchXLA on Free TPU Open In Colab

Reproducing our BLURB results with JAX Open In Colab

Finetunning BioM-Transformers with Jax/Flax on TPUv3-8 with free Kaggle resource Open In Colab

Acknowledgment

We would like to acknowledge the support we have from Tensorflow Research Cloud (TFRC) team to grant us access to TPUv3 units.

Citation

@inproceedings{alrowili-shanker-2021-biom,
title = "{B}io{M}-Transformers: Building Large Biomedical Language Models with {BERT}, {ALBERT} and {ELECTRA}",
author = "Alrowili, Sultan and
Shanker, Vijay",
booktitle = "Proceedings of the 20th Workshop on Biomedical Language Processing",
month = jun,
year = "2021",
address = "Online",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/2021.bionlp-1.24",
pages = "221--227",
abstract = "The impact of design choices on the performance of biomedical language models recently has been a subject for investigation. In this paper, we empirically study biomedical domain adaptation with large transformer models using different design choices. We evaluate the performance of our pretrained models against other existing biomedical language models in the literature. Our results show that we achieve state-of-the-art results on several biomedical domain tasks despite using similar or less computational cost compared to other models in the literature. Our findings highlight the significant effect of design choices on improving the performance of biomedical language models.",
}

Runs of sultan BioM-BERT-PubMed-PMC-Large on huggingface.co

46
Total runs
-5
24-hour runs
4
3-day runs
6
7-day runs
21
30-day runs

More Information About BioM-BERT-PubMed-PMC-Large huggingface.co Model

BioM-BERT-PubMed-PMC-Large huggingface.co

BioM-BERT-PubMed-PMC-Large huggingface.co is an AI model on huggingface.co that provides BioM-BERT-PubMed-PMC-Large's model effect (), which can be used instantly with this sultan BioM-BERT-PubMed-PMC-Large model. huggingface.co supports a free trial of the BioM-BERT-PubMed-PMC-Large model, and also provides paid use of the BioM-BERT-PubMed-PMC-Large. Support call BioM-BERT-PubMed-PMC-Large model through api, including Node.js, Python, http.

BioM-BERT-PubMed-PMC-Large huggingface.co Url

https://huggingface.co/sultan/BioM-BERT-PubMed-PMC-Large

sultan BioM-BERT-PubMed-PMC-Large online free

BioM-BERT-PubMed-PMC-Large huggingface.co is an online trial and call api platform, which integrates BioM-BERT-PubMed-PMC-Large's modeling effects, including api services, and provides a free online trial of BioM-BERT-PubMed-PMC-Large, you can try BioM-BERT-PubMed-PMC-Large online for free by clicking the link below.

sultan BioM-BERT-PubMed-PMC-Large online free url in huggingface.co:

https://huggingface.co/sultan/BioM-BERT-PubMed-PMC-Large

BioM-BERT-PubMed-PMC-Large install

BioM-BERT-PubMed-PMC-Large is an open source model from GitHub that offers a free installation service, and any user can find BioM-BERT-PubMed-PMC-Large on GitHub to install. At the same time, huggingface.co provides the effect of BioM-BERT-PubMed-PMC-Large install, users can directly use BioM-BERT-PubMed-PMC-Large installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

BioM-BERT-PubMed-PMC-Large install url in huggingface.co:

https://huggingface.co/sultan/BioM-BERT-PubMed-PMC-Large

Url of BioM-BERT-PubMed-PMC-Large

BioM-BERT-PubMed-PMC-Large huggingface.co Url

Provider of BioM-BERT-PubMed-PMC-Large huggingface.co

sultan
ORGANIZATIONS

Other API from sultan