Downloads · 30 days
4
8% of all-time downloads
Dc-4nderson/TheCulture-content-moderation-model
TheCulture-content-moderation-model is a text classification model from Dc-4nderson. Use it when you need a label for a piece of text. The card lists the license as mit.
Binary safe/unsafe classifier for posts, comments, stories, and reels on The Culture, fine-tuned with class-weighted loss to handle the ~70/30 safe/unsafe imbalance. A secondary logistic regression head (trained on th…
Downloads · 30 days
4
8% of all-time downloads
All-time downloads
53
Public
Parameters
67M
268 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
Binary safe/unsafe classifier for posts, comments, stories, and reels on The Culture, fine-tuned with class-weighted loss to handle the ~70/30 safe/unsafe imbalance. A secondary logistic regression head (trained on the fine-tuned [CLS] embeddings) predicts the unsafe sub-category (counterfeit_goods, link_spam, off_platform_sales, etc.).
Accuracy: 1.0000
Full classification report saved in eval_metrics.json.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tok = AutoTokenizer.from_pretrained("Dc-4nderson/TheCulture-content-moderation-model")
model = AutoModelForSequenceClassification.from_pretrained("Dc-4nderson/TheCulture-content-moderation-model")
inputs = tok("DM me for exclusive deals not available here", return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits
pred = logits.argmax(-1).item()
Part of The Culture ML model suite.