Instructions to use textattack/roberta-base-ag-news with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/roberta-base-ag-news with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/roberta-base-ag-news")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/roberta-base-ag-news") model = AutoModelForSequenceClassification.from_pretrained("textattack/roberta-base-ag-news") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 982c705796871a3d74827ee707014d047c5f3915319e44b5ccbe0611c056e59b
- Size of remote file:
- 501 MB
- SHA256:
- 20bd5ed3cd5122a0f4744223b5d49e334ae8750b84039d6c4b4a5aa6f270d339
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.