Toxicity prediction model trained on the VICUNAUC dataset.
See the ToxicThesis repository for model class documentation.
1from huggingface_hub import hf_hub_download
2import torch
3
4checkpoint_path = hf_hub_download(
5 repo_id="simocorbo/toxicthesis-vicunauc-perspective-classification-2",
6 filename="checkpoints/best.pt"
7)
8
9checkpoint = torch.load(checkpoint_path, map_location='cpu', weights_only=False)
10print("Checkpoint keys:", checkpoint.keys())
11
12# See ToxicThesis repository for model implementation
13# git clone https://github.com/simo-corbo/ToxicThesis
1# Clone ToxicThesis for full model implementations
2git clone https://github.com/simo-corbo/ToxicThesis
3cd ToxicThesis
4pip install -r requirements.txt
5
6# Or install dependencies directly
7pip install torch transformers huggingface_hub fasttext-wheel stanza
1@software{toxicthesis2025,
2 title={ToxicThesis},
3 author={Corbo, Simone},
4 year={2025},
5 url={https://github.com/simo-corbo/ToxicThesis}
6}