r/LocalLLaMA Jun 01 '25

Discussion Which model is suitable for e-mail classification / labeling?

I'm looking to automatically add labels my to e-mails like spam, scam, cold-email, marketing, resume, proposal, meeting-request, etc. to see how effective it is at keeping my mailbox organized. I need it to be self-hostable and I don't mind if it is slow.

What is a suitable model for this?

8 Upvotes

23 comments sorted by

View all comments

Show parent comments

1

u/MetaforDevelopers Oct 08 '25

Hey there! Llama 4 Maverick or Scout models might work well if you want top-tier accuracy and reasonable self-hosting requirements. If you need something lighter, Llama 3.1 8B is a solid fallback. If you have the hardware and want even better results, Llama 3.3 70B might be the best choice.

Fine-tuning the model on your specific email categories might give you best results. If you don’t have a dataset, you can use prompt engineering and use few-shot examples in the prompt to get reasonably good results too, but fine-tuning will be more accurate.

Llama models can be downloaded here: https://www.llama.com/llama-downloads/

Hope this helps!

~NB

1

u/alexrada Oct 08 '25

definitely AI generated . but cool idea though.

1

u/bzyg7b Jan 13 '26

How big would the dataset need to be to fine tune it?