1.  [](/)
2.  [Models](/models)
3.  DistilBERT NSFW text classifier

![](/favicon.ico)Served on MixpeekClassificationVerified 2026-11-05

# DistilBERT NSFW text classifier

eliasalbouzidi/distilbert-nsfw-text-classifier

DistilBERT NSFW text classifier is a text classification model (Apache-2.0). Served on Mixpeek, scaling to zero when idle.

A Ray Serve app in Mixpeek's inference registry hosts it. It starts at zero replicas and wakes on first use.

[Use in a new namespace](https://studio.mixpeek.com/namespaces/design?utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)[Add to an existing namespace](https://studio.mixpeek.com/namespaces?utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp "Open the namespace in Studio, then its Designer tab") [Record as JSON](/models/distilbert-nsfw-text-classifier.json)

New opens the Designer in Studio. For an existing namespace, open it in Studio and use its Designer tab.

No demo for DistilBERT NSFW text classifier yet

A video, image, slideshow or playground goes here once we record one on our own data.

## What it is good and bad at

Best at

Cheap binary safe/nsfw screening of English text such as captions, titles and transcripts.

Worst at

Non-English text, sarcasm and context-dependent policy categories; it scores sexual content and does not cover other harms.

Task

Classification

Input

Text

Output

Labels, Scores

Use cases

Moderation, Classification

## Templates that use it

No template uses this model yet. [Browse templates](/templates).

## Input and output

### Input

Text

Language

English

Tokenizer

distilbert

### Output

Labels

safe, nsfw

Scores

nsfw\_score in \[0, 1\]; is\_nsfw = nsfw\_score >= threshold (default 0.5)

## How Mixpeek wires it

Extractors

None today

Feature URIs

None today

Vector indexes

None

Retriever stages

classify

Combines with

*   classify task=nsfw on text documents; images and video go to the ViT classifier in the same app

## How it runs

Status

![](/favicon.ico)Served on Mixpeek Text half of the mixpeek\_\_content\_classifier\_v1 Serve app.

Serve apps

`mixpeek__content_classifier_v1`

Runtime

transformers pipeline("text-classification") (DistilBertForSequenceClassification)

Weights

safetensors, no remote code

Parameters

67 M

Size on disk

268 MB

Preprocessing

Pipeline tokenizer defaults.

Postprocessing

Softmax over labels (top\_k=None); nsfw\_score is the max over labels matching nsfw/unsafe/porn/explicit/questionable.

Serving

realtime

Hardware

Runs on CPU (slower without a GPU)

### Scale to zero

Minimum replicas

0

Maximum replicas

4

Idle timeout

300 s

Memory

2 GB

CPUs

2

GPUs

0

Cold start, node warm

Not recorded

Cold start, new node

Not recorded

## Measured cost

Unmeasured

No committed throughput or cost measurement for this model.

## Our evaluations

Unmeasured

We have not evaluated this model on our own data yet. Publisher results are in the sources below.

## Questions

What is DistilBERT NSFW text classifier best at?

Cheap binary safe/nsfw screening of English text such as captions, titles and transcripts.

What are the limits of DistilBERT NSFW text classifier?

Non-English text, sarcasm and context-dependent policy categories; it scores sexual content and does not cover other harms.

Can DistilBERT NSFW text classifier be used commercially?

Yes. Apache-2.0 on the repo; a community fine-tune of DistilBERT.

How does DistilBERT NSFW text classifier run on Mixpeek?

Text half of the mixpeek\_\_content\_classifier\_v1 Serve app.

## Identity

Catalog id

`distilbert-nsfw-text-classifier`

Family

distilbert

Hub id

`eliasalbouzidi/distilbert-nsfw-text-classifier`

License

Apache-2.0

Commercial use

AllowedApache-2.0 on the repo; a community fine-tune of DistilBERT.

Released

2024-04

Last verified

Verified 2026-11-05

Paper

[arxiv.org/abs/2412.00064](https://arxiv.org/abs/2412.00064)

Code

[huggingface.co/eliasalbouzidi/distilbert-nsfw-text-classifier](https://huggingface.co/eliasalbouzidi/distilbert-nsfw-text-classifier)

## References and formats

*   `hf://eliasalbouzidi/distilbert-nsfw-text-classifier@c0abb7a10abea1f50528885e9e38d51cca935516`

Format

File

Loads today

safetensors

model.safetensors

Yes

## Related models

*   [TypeSafe Jev](/models/typesafe-jev)Classification
*   [Falconsai NSFW image detection (ViT)](/models/nsfw-image-detection)Classification
*   [Ultralytics YOLO11 classify](/models/yolo11-classify)Classification
*   [Ultralytics YOLO26 classify](/models/yolo26-classify)Classification

## Sources

*   [huggingface.co/eliasalbouzidi/distilbert-nsfw-text-classifier](https://huggingface.co/eliasalbouzidi/distilbert-nsfw-text-classifier)
*   [huggingface.co/api/models/eliasalbouzidi/distilbert-nsfw-text-classifier](https://huggingface.co/api/models/eliasalbouzidi/distilbert-nsfw-text-classifier)