medicalai / ClinicalBERT

huggingface.co
Total runs: 13.7K
24-hour runs: -1.0K
7-day runs: -1.5K
30-day runs: 239
Model's Last Updated: April 14 2025
fill-mask

Introduction of ClinicalBERT

Model Details of ClinicalBERT

ClinicalBERT

This model card describes the ClinicalBERT model, which was trained on a large multicenter dataset with a large corpus of 1.2B words of diverse diseases we constructed. We then utilized a large-scale corpus of EHRs from over 3 million patient records to fine tune the base language model.

Pretraining Data

The ClinicalBERT model was trained on a large multicenter dataset with a large corpus of 1.2B words of diverse diseases we constructed.

Model Pretraining
Pretraining Procedures

The ClinicalBERT was initialized from BERT. Then the training followed the principle of masked language model, in which given a piece of text, we randomly replace some tokens by MASKs, special tokens for masking, and then require the model to predict the original tokens via contextual text.

Pretraining Hyperparameters

We used a batch size of 32, a maximum sequence length of 256, and a learning rate of 5e-5 for pre-training our models.

How to use the model

Load the model via the transformers library:

from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("medicalai/ClinicalBERT")
model = AutoModel.from_pretrained("medicalai/ClinicalBERT")
Citation

Please cite this article: Wang, G., Liu, X., Ying, Z. et al. Optimized glycemic control of type 2 diabetes with reinforcement learning: a proof-of-concept trial. Nat Med (2023). https://doi.org/10.1038/s41591-023-02552-9

Runs of medicalai ClinicalBERT on huggingface.co

13.7K
Total runs
-1.0K
24-hour runs
-1.1K
3-day runs
-1.5K
7-day runs
239
30-day runs

More Information About ClinicalBERT huggingface.co Model

ClinicalBERT huggingface.co

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

medicalai ClinicalBERT online free

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

medicalai ClinicalBERT online free url in huggingface.co:

https://huggingface.co/medicalai/ClinicalBERT

ClinicalBERT install

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

ClinicalBERT install url in huggingface.co:

https://huggingface.co/medicalai/ClinicalBERT

Url of ClinicalBERT

ClinicalBERT huggingface.co Url

Provider of ClinicalBERT huggingface.co

medicalai
ORGANIZATIONS

Other API from medicalai

huggingface.co

Total runs: 229
Run Growth: -404
Growth Rate: -176.42%
Updated:April 15 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 10 2024