Instructions to use FacebookAI/roberta-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FacebookAI/roberta-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="FacebookAI/roberta-large")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("FacebookAI/roberta-large") model = AutoModelForMaskedLM.from_pretrained("FacebookAI/roberta-large") - Inference
- Notebooks
- Google Colab
- Kaggle
Convert weights to .safetensors
#1
by julien-c HF Staff - opened
Using https://github.com/huggingface/safetensors and https://github.com/huggingface/transformers/pull/19175, Hat/tip @narsil and @sgugger π₯
merging this one already, will keep the others open for review
julien-c changed pull request status to merged