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 (#2)
- Adding `safetensors` variant of this model (5cbd7d214707beb941608d50e734179140c5f93f) Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>d5411c3
-
allow flax
159dbe0
-
initial commit
6abcca5