Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

Toxic Classify (Frozen Qwen Embeddings + MLP)

This project builds frozen embeddings using Qwen3-4B-Embedding and trains a small MLP classifier to predict labels $0$–$5$.

Setup

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

1) Build embeddings (cached)

python prepare_embeddings.py \
  --data_dir data \
  --output_dir artifacts \
  --model_name Qwen/Qwen3-4B-Embedding

2) Train MLP

python train_mlp.py \
  --embeddings_path artifacts/embeddings.npy \
  --labels_path artifacts/labels.npy \
  --output_dir artifacts

Artifacts are written to artifacts/.

Downloads last month
12