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
Download optimizer.pt from cardiffnlp/twitter-scratch-roberta-base: direct link, hf CLI and curl.
- Browser
- Download file 1 GB
-
https://huggingface.co/cardiffnlp/twitter-scratch-roberta-base/resolve/main/optimizer.pt
- Command line
-
hf download hf://cardiffnlp/twitter-scratch-roberta-base/optimizer.pt
-
curl -L -o optimizer.pt https://huggingface.co/cardiffnlp/twitter-scratch-roberta-base/resolve/main/optimizer.pt
1 GB
- Xet hash:
- 61aa7d7cac194e2fbb55004fc7bb310e010aad9826ed194b6af1cc84f536417b
- Size of remote file:
- 1 GB
- SHA256:
- 3e09c4e97f331e421b84cc66dff2de436a2a5173bce9c24ab24f3268a31733d2
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.