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")# pip install -U transformers accelerate # 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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.6bde1b8
-
upload flax model
80f0a42 -
allow flax
a98261b
-
Update special_tokens_map.json
93b2576 -
Update merges.txt
643183e -
Update vocab.json
b01c9ec -
Update config.json
58c9f45 -
Update tokenizer_config.json
7e7b295 -
Update train_args.json
8bb3243 -
Update log.txt
903acab -
Update README.md
3283488 -
Update pytorch_model.bin
1be5d3f
-
Update merges.txt
4232672 -
Update special_tokens_map.json
494379d -
Update tokenizer_config.json
1e6a03f -
Update train_args.json
1777932 -
Update vocab.json
91bcc8c -
Update config.json
e0ec7ba -
Update log.txt
d4d9483 -
Update README.md
6711418 -
Update merges.txt
5003843 -
Update special_tokens_map.json
23a8641 -
Update tokenizer_config.json
65fa1e7 -
Update train_args.json
e56c33b -
Update vocab.json
695aaa6 -
Update config.json
8015999 -
Update log.txt
dab12c3 -
Update README.md
78d8789 -
Update merges.txt
893e97d -
Update special_tokens_map.json
fda9f34 -
Update vocab.json
9b49372 -
Update tokenizer_config.json
cd9b7ce -
Update train_args.json
ba3ba94 -
Update config.json
6a8186b -
Update log.txt
1bd26f4 -
Update README.md
da35eaa -
initial commit
458049d