Skip to content

deepspam2-lite-model6e25-jo10

Latest

Choose a tag to compare

@gereoffy gereoffy released this 21 Aug 16:50
· 2 commits to main since this release

Lite version, which only depends on NumPy. No PyTorch and SentencePiece required!
Runs only on 1 CPU core, no multithreading or GPU support, recommended for low-traffic sites.

Requirements:
Python 3.8+ (3.10/3.11 recommended)
NumPy (pip3 install numpy / apt install python3-numpy)

Model data:
trained ds2 model, based on v6 spm tokenizer + 25-epoch word2vec trained on 12GB multilanguage lowercased text.
cnn classifier trained on 200k email messages, selected the best checkpoint from ~150 runs:
88.792 (1/15) ham: 94.99/1.71 (3.454) spam: 96.74/0.77 (97.498) [model/deepspam.pt] 7.89s (12802+14476)

Postfix configuration:
smtpd_milters = inet:127.0.0.1:1081
milter_default_action = accept