Instructions to use Penn1357/bilibili-clickbait-xlmr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Penn1357/bilibili-clickbait-xlmr with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-classification', 'Penn1357/bilibili-clickbait-xlmr');
bilibili-clickbait-xlmr
XLM-RoBERTa-base fine-tuned as a single-logit sigmoid regressor to score Chinese video titles for clickbait ("ζ ι’ε "). Built for bilibili-clickbait-filter, a fork of festoney8/bilibili-cleaner that replaces keyword-based filtering with a distilled model.
Training
Distilled from an averaged two-teacher signal β codex (gpt-5.6-sol, AUC 0.909 on the eval set below) and Gemini 3.1 Pro (AUC 0.913) β soft-labeling 10,684 bilibili video titles scraped from public ranking/popular/newlist/search APIs. Averaging the two teachers measured AUC 0.930, meaningfully above either alone (correlation 0.81 β independent enough that averaging helps). Fine-tuned on the averaged labels; checkpoint selected by validation loss, not test AUC.
Evaluation
200 titles, hand-labeled by a single human annotator, held out from every training/distillation step:
| metric | value |
|---|---|
| AUC | 0.865 |
| best accuracy | 0.855 (threshold 0.75) |
| precision / recall | 0.794 / 0.551 |
| F1 | 0.651 |
Full writeup, ablations (data scale vs. teacher quality β the latter is what actually helped), and honest failure modes: see the project README.
Usage
import { AutoTokenizer, AutoModelForSequenceClassification } from '@huggingface/transformers'
const tok = await AutoTokenizer.from_pretrained('Penn1357/bilibili-clickbait-xlmr')
const model = await AutoModelForSequenceClassification.from_pretrained('Penn1357/bilibili-clickbait-xlmr', { dtype: 'fp32' })
const inputs = await tok(['ιζοΌ99%ηδΊΊι½δΈη₯ιηη§ε―'], { padding: true, truncation: true })
const { logits } = await model(inputs)
const score = 1 / (1 + Math.exp(-logits.data[0])) // sigmoid -- this is a regressor, not a softmax classifier
Not quantized (fp32, ~1.1GB) by request β this is the tradeoff of full precision vs. download size and in-browser inference speed.
- Downloads last month
- 66
Model tree for Penn1357/bilibili-clickbait-xlmr
Base model
FacebookAI/xlm-roberta-base