simocorbo/toxicthesis-llama3-perspective-classification-4
0
Perspective API - LLAMA3 - Classification (4 classes)
Toxicity prediction model trained on the LLAMA3 dataset.
Model Information
See the ToxicThesis repository for model class documentation.
Usage
from huggingface_hub import hf_hub_download
import torch
checkpoint_path = hf_hub_download(
repo_id="simocorbo/toxicthesis-llama3-perspective-classification-4",
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/ToxicThesisScore Interpretation
Classes: 4 toxicity levels, where higher class index = more toxic.
Files
Installation
# 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 stanzaCitation
@software{toxicthesis2025,
title={ToxicThesis},
author={Corbo, Simone},
year={2025},
url={https://github.com/simo-corbo/ToxicThesis}
}