Instructions to use textattack/roberta-base-SST-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/roberta-base-SST-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/roberta-base-SST-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/roberta-base-SST-2") model = AutoModelForSequenceClassification.from_pretrained("textattack/roberta-base-SST-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (bb15ed71be7c71fdc6a21473e14200e85ad90a21) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>84ee248 -
Add TF weights (#1)
- Add TF weights (8eaa22c6f7d2d004c904f3d616129195a8788afe) Co-authored-by: Joao Gante <joaogante@users.noreply.huggingface.co>d34f8f3
-
upload flax model
a029a46 -
allow flax
96f970f
-
Update tokenizer_config.json
102ad9e -
Update config.json
ad483da -
Update training_args.bin
d2d3d2d -
Update pytorch_model.bin
1bbf65e -
Update merges.txt
5adb3ac -
Update special_tokens_map.json
8ffd92e -
Update vocab.json
1249603 -
Update eval_results_sst-2.txt
2ec42a6
-
Update config.json
ba6ebca -
Update tokenizer_config.json
2f532c2 -
Update merges.txt
0456741 -
Update vocab.json
0dc69c6 -
Update eval_results_sst-2.txt
c45d682 -
Update special_tokens_map.json
6162ade -
initial commit
9041df4