Text Classification
PEFT
Safetensors
Transformers
English
spam-classification
email-classification
lora
Instructions to use ssheroz/spam-email-classifier-roberta-r8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ssheroz/spam-email-classifier-roberta-r8 with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("./local_models/FacebookAI_roberta-base") model = PeftModel.from_pretrained(base_model, "ssheroz/spam-email-classifier-roberta-r8") - Transformers
How to use ssheroz/spam-email-classifier-roberta-r8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ssheroz/spam-email-classifier-roberta-r8")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ssheroz/spam-email-classifier-roberta-r8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!