Downloads · 30 days
0
simocorbo/toxicthesis-gemini-3.5-flash-length-classification-5
toxicthesis-gemini-3.5-flash-length-classification-5 is a text classification model from simocorbo. Use it when you need a label for a piece of text. It is set up for pytorch. The card lists the license as mit.
Toxicity prediction model trained on the GEMINI-3.5-FLASH dataset.
Downloads · 30 days
0
Access
Public
Updated Jun 12, 2026
Repo size
4.2 KB
Likes
0
Public
Click a slice to open those files.
.csv651 KB · 99%
From the Hugging Face model README
Toxicity prediction model trained on the GEMINI-3.5-FLASH dataset.
| Property | Value |
|---|---|
| Model | Length Baseline |
| Task | Classification (5 classes) |
| Dataset | gemini-3.5-flash |
| Framework | PyTorch / PyTorch Lightning |
See the ToxicThesis repository for model class documentation.
from huggingface_hub import hf_hub_download
import torch
checkpoint_path = hf_hub_download(
repo_id="simocorbo/toxicthesis-gemini-3.5-flash-length-classification-5",
filename="checkpoints/best.pt"
)
checkpoint = torch.load(checkpoint_path, map_location='cpu', weights_only=False)
print("Checkpoint keys:", checkpoint.keys())
# See ToxicThesis repository for model implementation
# git clone https://github.com/simo-corbo/ToxicThesis
| Output | Range | Meaning |
|---|---|---|
probabilities | List[float] | Probability distribution over 5 classes. |
class | 0 to 4 | Predicted class (argmax of probabilities). |
Classes: 5 toxicity levels, where higher class index = more toxic.
| File | Description |
|---|---|
checkpoints/best.pt | Model checkpoint (best validation loss) |
hparams.yaml | Hyperparameters used for training |
train.csv | Training metrics per epoch |
val.csv | Validation metrics per epoch |
vocab_stanza_hybrid.pkl | Vocabulary (for tree-based models) |
# Clone ToxicThesis for full model implementations
git clone https://github.com/simo-corbo/ToxicThesis
cd ToxicThesis
pip install -r requirements.txt
# Or install dependencies directly
pip install torch transformers huggingface_hub fasttext-wheel stanza
@software{toxicthesis2025,
title={ToxicThesis},
author={Corbo, Simone},
year={2025},
url={https://github.com/simo-corbo/ToxicThesis}
}