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
Commit History
-
Adding `safetensors` variant of this model
5cbd7d2
-
Update model card (#1)
- Update model card (ae7a275b1e90a24f2e25105eaeea6a2015953a45) Co-authored-by: Marissa Gerchick <Marissa@users.noreply.huggingface.co>c114932
-
upload flax model
ec58a5b -
allow flax
159dbe0
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/distilroberta-base-README.mda547ce1
-
For clarity, delete deprecated modelcard.json
We now use the README.md model card instead Approved-by: Julien Chaumond <julien@huggingface.co>3124ec8
-
addition of Rust model
d92efe0
-
Update tokenizer.json
2862d04
-
Update config.json
83205b1
-
Update config.json
7c2a320
-
Update modelcard.json
31fb5db
-
Update dict.txt
524080d -
Update vocab.json
f9082fe -
Update merges.txt
416be29 -
Update config.json
d35107b -
Update pytorch_model.bin
94d8c63 -
Update tf_model.h5
1f54906 -
initial commit
6abcca5