CoolFace
Modelpublic

simocorbo/toxicthesis-gemini-3.5-flash-random-classification-3

sourceHugging Facemitupdated 3mo agoView on Hugging Face
0likes
Model Card

KDE Prior - GEMINI-3.5-FLASH - Classification (3 classes)

Toxicity prediction model trained on the GEMINI-3.5-FLASH dataset.

PropertyValue
ModelKDE Prior
TaskClassification (3 classes)
Datasetgemini-3.5-flash
FrameworkPyTorch / PyTorch Lightning

Model Information

See the ToxicThesis repository for model class documentation.

Usage

python
from huggingface_hub import hf_hub_download
import torch

checkpoint_path = hf_hub_download(
    repo_id="simocorbo/toxicthesis-gemini-3.5-flash-random-classification-3",
    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

Score Interpretation

OutputRangeMeaning
probabilitiesList[float]Probability distribution over 3 classes.
class0 to 2Predicted class (argmax of probabilities).

Classes: 3 toxicity levels, where higher class index = more toxic.

Files

FileDescription
checkpoints/best.ptModel checkpoint (best validation loss)
hparams.yamlHyperparameters used for training
train.csvTraining metrics per epoch
val.csvValidation metrics per epoch
vocab_stanza_hybrid.pklVocabulary (for tree-based models)

Installation

bash
# 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

Citation

bibtex
@software{toxicthesis2025,
  title={ToxicThesis},
  author={Corbo, Simone},
  year={2025},
  url={https://github.com/simo-corbo/ToxicThesis}
}