Instructions to use cardiffnlp/twitter-scratch-roberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cardiffnlp/twitter-scratch-roberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="cardiffnlp/twitter-scratch-roberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-scratch-roberta-base") model = AutoModelForMaskedLM.from_pretrained("cardiffnlp/twitter-scratch-roberta-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add model card
43f3d69 -
Delete tmp-twitter-roberta-from-scratch-checkpoint-1936000-scheduler.pt
d851876 -
Delete tmp-twitter-roberta-from-scratch-checkpoint-1936000-optimizer.pt
2fc2ae6 -
Delete tmp-twitter-roberta-from-scratch-checkpoint-1936000-pytorch_model.bin
1d033cf -
Upload 7 files
76dcf00
-
Upload files
41f2906 -
Upload files
b9cc767 -
initial commit
4c6a6ac