A fine-tuned version of SmolLM2-360M-Instruct for Reddit content moderation. This model classifies text into 11 content safety categories with 4 severity levels each.
Model Description
This model performs multi-category content classification for moderation purposes. It analyzes text and provides severity ratings across 11 distinct content safety categories, making it ideal for content moderation pipelines and safety applications.
Training Method: LoRA (Low-Rank Adaptation)
Base Model: SmolLM2-360M-Instruct
Parameters: 360M (base) + 819K (LoRA adapter)
Dataset: Reddit moderation examples with 11-category labels
Categories & Severity Levels
The model classifies content across these 11 categories:
Harassment - Personal attacks, bullying, insulting behavior
1defparse_categories(response):2"""Parse model output into a dictionary"""3 categories ={}45for line in response.split('\n'):6if':'in line:7 parts = line.split(':',1)8iflen(parts)==2:9 category = parts[0].strip().lower().replace('-','_')10 severity = parts[1].strip().lower()11 categories[category]= severity
1213return categories
1415# Example usage16result = classify_comment("Some comment text here")17categories = parse_categories(result)1819# Check for high-risk content20high_risk =[cat for cat, sev in categories.items()if sev =='high']21if high_risk:22print(f"⚠️ High risk detected in: {', '.join(high_risk)}")2324# Check for any concerning content25concerning =[cat for cat, sev in categories.items()26if sev in['high','medium']]27if concerning:28print(f"🔍 Review needed for: {', '.join(concerning)}")
Important Configuration
⚠️ Critical Settings for Best Results:
Use the EXACT prompt format - The model was trained on this specific format
Temperature: 0.3 - Lower temperature ensures consistent output formatting
Max New Tokens: 250 - Ensures all 11 categories are generated
Profanity Handling: Distinguishes between harmful and benign profanity use
Out-of-Scope Use
This model should NOT be used for:
Fully automated content removal without human review
Legal decisions or determinations
Non-Reddit platforms without additional fine-tuning
Personal harassment or targeted moderation
Bypassing platform terms of service
Real-time moderation without human oversight
Applications that could cause harm to individuals
Model Card
Model Type: Causal Language Model (Fine-tuned for Classification)
Language: English
License: Apache 2.0
Base Model: HuggingFaceTB/SmolLM2-360M-Instruct
Adapter Type: LoRA
Task: Multi-category content classification
This model is a research and development tool designed to assist human moderators, not replace them. The model's outputs are predictions and may contain errors.
Critical Content Warning: For content flagged as high-risk in the following categories, immediate human review and intervention is required:
Self-harm, self-harm instructions, or self-harm intent
Sexual content involving minors
Threatening harassment or hate speech
High violence or graphic violence
Always use this model responsibly and maintain human oversight in all moderation decisions.