Instructions to use ePeryy/sexist_detection_quantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ePeryy/sexist_detection_quantized with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("google-bert/bert-base-uncased") model = PeftModel.from_pretrained(base_model, "ePeryy/sexist_detection_quantized") - Transformers
How to use ePeryy/sexist_detection_quantized with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ePeryy/sexist_detection_quantized", device_map="auto") - Notebooks
- Google Colab
- Kaggle
sexist_detection_quantized
This model is a fine-tuned version of google-bert/bert-base-uncased on an aggregated corpora of data differentiating 'sexist' from 'non-sexist' English texts. It corresponds to a quantized version (qLORA) of the 'sexist_detection_text_data_v1' model.
It achieves the following results on the evaluation set:
- Loss: 0.3212
- Accuracy: 0.8583
Model description
More information needed
Intended uses & limitations
The model is limited to text classification of sexist phrases in English.
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.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: 15
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.3679 | 1.0 | 3369 | 0.3691 | 0.8260 |
| 0.3579 | 2.0 | 6738 | 0.3603 | 0.8364 |
| 0.3341 | 3.0 | 10107 | 0.3467 | 0.8405 |
| 0.3234 | 4.0 | 13476 | 0.3368 | 0.8449 |
| 0.3345 | 5.0 | 16845 | 0.3339 | 0.8488 |
| 0.3123 | 6.0 | 20214 | 0.3280 | 0.8510 |
| 0.3191 | 7.0 | 23583 | 0.3251 | 0.8532 |
| 0.3183 | 8.0 | 26952 | 0.3236 | 0.8551 |
| 0.2994 | 9.0 | 30321 | 0.3284 | 0.8560 |
| 0.2993 | 10.0 | 33690 | 0.3227 | 0.8564 |
| 0.3050 | 11.0 | 37059 | 0.3219 | 0.8575 |
| 0.2888 | 12.0 | 40428 | 0.3202 | 0.8567 |
| 0.2921 | 13.0 | 43797 | 0.3210 | 0.8587 |
| 0.2993 | 14.0 | 47166 | 0.3223 | 0.8580 |
| 0.2944 | 15.0 | 50535 | 0.3212 | 0.8583 |
- Downloads last month
- 61
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
Model tree for ePeryy/sexist_detection_quantized
Base model
google-bert/bert-base-uncased