Instructions to use iTroned/nilu_baseline_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iTroned/nilu_baseline_v2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("iTroned/nilu_baseline_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
nilu_baseline_v2
This model is a fine-tuned version of bert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.4708
- Accuracy Offensive: 0.8384
- F1 Macro Offensive: 0.8114
- F1 Weighted Offensive: 0.8429
- F1 Macro Total: 0.8114
- F1 Weighted Total: 0.8429
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: 5e-06
- train_batch_size: 4
- eval_batch_size: 4
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 50
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy Offensive | F1 Macro Offensive | F1 Weighted Offensive | F1 Macro Total | F1 Weighted Total |
|---|---|---|---|---|---|---|---|---|
| 0.5392 | 1.0 | 3310 | 0.4225 | 0.8407 | 0.7795 | 0.8308 | 0.7795 | 0.8308 |
| 0.5101 | 2.0 | 6620 | 0.4708 | 0.8384 | 0.8114 | 0.8429 | 0.8114 | 0.8429 |
| 0.4882 | 3.0 | 9930 | 0.6953 | 0.8465 | 0.7879 | 0.8372 | 0.7879 | 0.8372 |
| 0.3664 | 4.0 | 13240 | 0.7424 | 0.8279 | 0.7937 | 0.8308 | 0.7937 | 0.8308 |
| 0.3033 | 5.0 | 16550 | 0.9267 | 0.8314 | 0.7769 | 0.8256 | 0.7769 | 0.8256 |
| 0.189 | 6.0 | 19860 | 1.0842 | 0.8349 | 0.7805 | 0.8288 | 0.7805 | 0.8288 |
| 0.1648 | 7.0 | 23170 | 1.2893 | 0.8256 | 0.7810 | 0.8247 | 0.7810 | 0.8247 |
Framework versions
- Transformers 4.50.2
- Pytorch 2.6.0+cu124
- Datasets 3.0.1
- Tokenizers 0.21.1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for iTroned/nilu_baseline_v2
Base model
google-bert/bert-base-uncased