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