Instructions to use mshenoda/roberta-spam with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mshenoda/roberta-spam with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mshenoda/roberta-spam")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mshenoda/roberta-spam") model = AutoModelForSequenceClassification.from_pretrained("mshenoda/roberta-spam", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download plots/test_set_distribution.jpg from mshenoda/roberta-spam: direct link, hf CLI and curl.
- Browser
- Download file 25.6 kB
-
https://huggingface.co/mshenoda/roberta-spam/resolve/main/plots/test_set_distribution.jpg
- Command line
-
hf download hf://mshenoda/roberta-spam/plots/test_set_distribution.jpg
-
curl -L -o test_set_distribution.jpg https://huggingface.co/mshenoda/roberta-spam/resolve/main/plots/test_set_distribution.jpg
25.6 kB
