Instructions to use AIWizards/MultiPRIDE-LGBT-Pretrain-it with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AIWizards/MultiPRIDE-LGBT-Pretrain-it with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AIWizards/MultiPRIDE-LGBT-Pretrain-it")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AIWizards/MultiPRIDE-LGBT-Pretrain-it") model = AutoModelForSequenceClassification.from_pretrained("AIWizards/MultiPRIDE-LGBT-Pretrain-it", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| library_name: transformers | |
| license: apache-2.0 | |
| base_model: nickprock/setfit-italian-hate-speech | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - accuracy | |
| - f1 | |
| - precision | |
| - recall | |
| model-index: | |
| - name: MultiPRIDE-LGBT-Pretrain-it | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # MultiPRIDE-LGBT-Pretrain-it | |
| This model is a fine-tuned version of [nickprock/setfit-italian-hate-speech](https://huggingface.co/nickprock/setfit-italian-hate-speech) on the None dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.1484 | |
| - Accuracy: 0.7975 | |
| - F1: 0.8290 | |
| - Precision: 0.8511 | |
| - Recall: 0.8081 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 2e-05 | |
| - train_batch_size: 8 | |
| - eval_batch_size: 8 | |
| - seed: 1337 | |
| - optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments | |
| - lr_scheduler_type: linear | |
| - num_epochs: 10 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall | | |
| |:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:| | |
| | 0.1493 | 1.0 | 95 | 0.1072 | 0.7607 | 0.7979 | 0.8191 | 0.7778 | | |
| | 0.0858 | 2.0 | 190 | 0.1384 | 0.8037 | 0.8545 | 0.7769 | 0.9495 | | |
| | 0.0225 | 3.0 | 285 | 0.1640 | 0.6626 | 0.6497 | 0.8793 | 0.5152 | | |
| | 0.0067 | 4.0 | 380 | 0.1414 | 0.7546 | 0.7826 | 0.8471 | 0.7273 | | |
| | 0.0008 | 5.0 | 475 | 0.1484 | 0.7975 | 0.8290 | 0.8511 | 0.8081 | | |
| ### Framework versions | |
| - Transformers 4.57.3 | |
| - Pytorch 2.9.1+cu128 | |
| - Datasets 4.4.1 | |
| - Tokenizers 0.22.1 | |