Instructions to use medicalai/ClinicalBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use medicalai/ClinicalBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="medicalai/ClinicalBERT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("medicalai/ClinicalBERT") model = AutoModelForMaskedLM.from_pretrained("medicalai/ClinicalBERT", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download pytorch_model.bin from medicalai/ClinicalBERT: direct link, hf CLI and curl.
- Browser
- Download file 542 MB
-
https://huggingface.co/medicalai/ClinicalBERT/resolve/refs%2Fpr%2F1/pytorch_model.bin
- Command line
-
hf download hf://medicalai/ClinicalBERT@refs/pr/1/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/medicalai/ClinicalBERT/resolve/refs%2Fpr%2F1/pytorch_model.bin
542 MB
- Xet hash:
- 93b3506e27c0763613cbcf65c0c49a4494a073e392f5a75e6f7563644283008b
- Size of remote file:
- 542 MB
- SHA256:
- bc6feaee5a8d02973e470763b95b461a517a5e8143476edef734fe7cfa20763f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.