imnim/multiclass-email-classification
Viewer • Updated • 2.11k • 131 • 4
How to use imnim/multi-label-email-classifier with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
model = PeftModel.from_pretrained(base_model, "imnim/multi-label-email-classifier")Model is finetuned for the task of email labelling. It labels the given email into one or more than one categories based on email subject and email body.
The model classifies emails into the following 10 categories: "Business", "Personal", "Promotions", "Customer Support", "Job Application", "Finance & Bills", "Events & Invitations", "Travel & Bookings", "Reminders", "Newsletters"
I have prepared a synthetic but realistic dataset of 2,105 labeled emails. Each email includes a subject, body, and one or more categories.
Auto-regressive language model that uses an optimized transformer architecture.
Kaggle Notebook
Trained on Kaggle's P100 GPU
Base model
meta-llama/Llama-3.1-8B