Instructions to use simonlevine/clinical-longformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use simonlevine/clinical-longformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="simonlevine/clinical-longformer")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("simonlevine/clinical-longformer") model = AutoModelForMaskedLM.from_pretrained("simonlevine/clinical-longformer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
ff576e6 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:aaf48c5141499d35d47dcb7a2734299aad7b9343f05e200c780d46aca2af63cd
size 509807031
|