Run this model with HF Jobs

Run oxyapi/albert-moderation-001 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:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/oxyapi/albert-moderation-001. 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.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/oxyapi/albert-moderation-001 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 from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="oxyapi/albert-moderation-001")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("oxyapi/albert-moderation-001")
model = AutoModelForSequenceClassification.from_pretrained("oxyapi/albert-moderation-001", device_map="auto")
Quick Links

image/png

Introduction

Albert Moderation 001 is a fine-tuned version of the distilbert/distilbert-base-uncased a distilled version of BERT, smaller and faster.

Developed by Oxygen (oxyapi), with contributions from TornadoSoftwares, Albert Moderation 001 allows you to moderate text content very quickly and efficiently across multiple categories

Model Details

Features

  • Categories: This model classifies text data into 11 different categories: harassment, harassment/threat, sexual, hate, hate/threat, self-harm/intent, self-harm/instructions, self-harm, sexual/minors, violence, violence/graphic
  • Efficient: Compact model size allows for faster inference and reduced computational resources.

Metadata

  • Owned by: Oxygen (oxyapi)
  • Contributors: TornadoSoftwares
  • Description: A fast and lightweight moderation model based on BERT

Usage

To utilize Albert Moderation 001 for text classification, you can load the model using the Hugging Face Transformers library:

from transformers import pipeline
text = "Hey little shit, GIVE ME YOUR SNACK !"
classifier = pipeline("text-classification", model="oxyapi/albert-moderation-001", tokenizer="oxyapi/albert-moderation-001")
result = classifier(text,top_k=len(classifier.model.config.id2label))
print(result)

License

This model is licensed under the Apache 2.0 License.

Citation

If you find Albert Moderation 001 useful in your research or applications, please cite it as:

@misc{albertmoderation0012025,
  title={Albert Moderation 001: A fast and lightweight moderation model based on BERT},
  author={Oxygen (oxyapi)},
  year={2024},
  howpublished={\url{https://huggingface.co/oxyapi/albert-moderation-001}},
}
Downloads last month
83
Safetensors
Model size
67M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for oxyapi/albert-moderation-001

Finetuned
(13,040)
this model
Finetunes
1 model

Collection including oxyapi/albert-moderation-001