This repository was created for a senior project in ENGT 375 Applied Machine Learning at Old Dominion University. It is provided for educational and research demonstration purposes only. It is not intended for production use, security filtering, or making real-world spam/phishing decisions. Always use established security tools for operational email protection.
1from mlx_lm import load, generate
2
3model, tokenizer = load("models/Qwen3.5-0.8B-OptiQ-4bit", adapter_path="adapters")
4prompt = "Classify this email as spam or ham:\n\nSubject: You won a prize!\n..."
5response = generate(model, tokenizer, prompt=prompt, max_tokens=100)
1pip install -r requirements.txt
2python app.py
1@misc{voltagevagabond2026spammlx,
2 title={Spam Classifier — MLX LoRA Fine-Tune (Qwen 3.5 0.8B)},
3 author={VoltageVagabond},
4 year={2026},
5 howpublished={\url{https://huggingface.co/VoltageVagabond/spam-classifier-mlx}},
6 note={ENGT 375 — Applied Machine Learning, Old Dominion University, Spring 2026}
7}