marksverdhei/clickbait_title_classification
Viewer β’ Updated β’ 32k β’ 1.23k β’ 6
Run ENTUM-AI/roberta-clickbait-classifier on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/ENTUM-AI/roberta-clickbait-classifier. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/ENTUM-AI/roberta-clickbait-classifier on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use ENTUM-AI/roberta-clickbait-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ENTUM-AI/roberta-clickbait-classifier") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ENTUM-AI/roberta-clickbait-classifier")
model = AutoModelForSequenceClassification.from_pretrained("ENTUM-AI/roberta-clickbait-classifier", device_map="auto")A clickbait detection model built on RoBERTa-base (125M parameters), fine-tuned on multiple combined and deduplicated English datasets.
from transformers import pipeline
classifier = pipeline("text-classification", model="ENTUM-AI/roberta-clickbait-classifier")
# Clickbait
result = classifier("You Won't BELIEVE What This Celebrity Did Next!")
print(result) # [{'label': 'Clickbait', 'score': 0.99...}]
# Non-Clickbait
result = classifier("Federal Reserve raises interest rates by 0.25 percentage points")
print(result) # [{'label': 'Non-Clickbait', 'score': 0.99...}]
| Architecture | RoBERTa-base (125M parameters) |
| Task | Binary text classification |
| Labels | Clickbait (1), Non-Clickbait (0) |
| Language | English |
| License | Apache 2.0 |
| Max input length | 128 tokens |
Three public English clickbait datasets, combined and deduplicated:
| Dataset | Source |
|---|---|
| christinacdl/Clickbait_New | 58.6K samples from multiple sources |
| marksverdhei/clickbait_title_classification | 32K samples (Chakraborty et al., ASONAM 2016) |
| contemmcm/clickbait | 26K samples |
After deduplication and balancing: ~48K samples (train/val/test split 85/10/5).
Fine-tuned with HuggingFace Trainer using linear LR schedule with warmup, AdamW optimizer, and early stopping on F1 score.