Downloads · 30 days
0
jake-watkins/email-classifier
email-classifier is a text classification model from jake-watkins. Use it when you need a label for a piece of text. It is set up for mlx. The card lists the license as mit.
This model is a fine-tuned version of microsoft/Phi-3-mini-4k-instruct for email classification tasks. It uses LoRA (Low-Rank Adaptation) for efficient fine-tuning on Apple Silicon using the MLX framework.
Downloads · 30 days
0
Access
Public
Updated Dec 7, 2025
Repo size
176 MB
Likes
0
Public
Click a slice to open those files.
.safetensors176 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/Phi-3-mini-4k-instruct for email classification tasks. It uses LoRA (Low-Rank Adaptation) for efficient fine-tuning on Apple Silicon using the MLX framework.
This model classifies emails into predefined categories to help with inbox organization, email filtering, and workflow automation.
from mlx_lm import load, generate
# Load the model
model, tokenizer = load("jake-watkins/email-classifier")
# Classify an email
email_content = """
Your subscription to Premium Service will renew on January 1st, 2026.
To cancel or modify your subscription, visit your account settings.
"""
prompt = f"Classify this email:\n\n{email_content}\n\nCategory:"
response = generate(model, tokenizer, prompt=prompt, max_tokens=50, verbose=False)
print(response)
The model was trained on a private dataset of email examples across 20 categories:
Fine-tuned using MLX-LM on Apple Silicon with LoRA adapters for parameter-efficient training.
The model was validated on a held-out test set with stratified sampling to maintain category distribution across training, validation, and test splits (80/10/10).
This model is intended for email organization and automation purposes. Users should:
If you use this model, please cite the base model:
@article{abdin2024phi,
title={Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone},
author={Abdin, Marah and others},
journal={arXiv preprint arXiv:2404.14219},
year={2024}
}
For questions or feedback about this model, please open an issue on the model repository.