https://victorzhou.com/blog/better-profanity-detection-with-scikit-learn/
That might be of interest to you then? Its a small model trained for profanity detection, might work for your use case. Dunno if it can be used for generation though.
Otherwise, there were 1GB gemma models, you can run them on CPU.