Instructions to use MM2157/AraBERT_token_classification__AraEval24_sample70 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MM2157/AraBERT_token_classification__AraEval24_sample70 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="MM2157/AraBERT_token_classification__AraEval24_sample70")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("MM2157/AraBERT_token_classification__AraEval24_sample70") model = AutoModelForTokenClassification.from_pretrained("MM2157/AraBERT_token_classification__AraEval24_sample70", device_map="auto") - Notebooks
- Google Colab
- Kaggle
AraBERT_token_classification__AraEval24_sample70
This model is a fine-tuned version of aubmindlab/bert-base-arabert on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.9218
- Precision: 0.0590
- Recall: 0.0230
- F1: 0.0331
- Accuracy: 0.8660
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: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.6402 | 1.0 | 1697 | 0.7684 | 0.0 | 0.0 | 0.0 | 0.8767 |
| 0.5626 | 2.0 | 3394 | 0.7253 | 0.0 | 0.0 | 0.0 | 0.8767 |
| 0.5009 | 3.0 | 5091 | 0.7463 | 0.1071 | 0.0011 | 0.0021 | 0.8768 |
| 0.4272 | 4.0 | 6788 | 0.7954 | 0.0752 | 0.0042 | 0.0080 | 0.8763 |
| 0.3694 | 5.0 | 8485 | 0.8204 | 0.0736 | 0.0086 | 0.0154 | 0.8748 |
| 0.3474 | 6.0 | 10182 | 0.8208 | 0.0542 | 0.0109 | 0.0182 | 0.8722 |
| 0.3023 | 7.0 | 11879 | 0.8543 | 0.0546 | 0.0113 | 0.0187 | 0.8709 |
| 0.2773 | 8.0 | 13576 | 0.8649 | 0.0581 | 0.0158 | 0.0249 | 0.8686 |
| 0.2728 | 9.0 | 15273 | 0.9116 | 0.0530 | 0.0195 | 0.0285 | 0.8678 |
| 0.2378 | 10.0 | 16970 | 0.9218 | 0.0590 | 0.0230 | 0.0331 | 0.8660 |
Framework versions
- Transformers 4.30.2
- Pytorch 1.12.1
- Datasets 2.13.2
- Tokenizers 0.13.3
- Downloads last month
- 10