Instructions to use FacebookAI/roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FacebookAI/roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="FacebookAI/roberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("FacebookAI/roberta-base") model = AutoModelForMaskedLM.from_pretrained("FacebookAI/roberta-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Update config.json
47a52b9
-
Update config.json
2ecd732
-
Update config.json
e306078 -
Update config.json
f52b0ba
-
Update config.json
3094fd1 -
Update config.json
bbbb96c
-
Update config.json
02c245a
-
Update config.json
a5b34d0