Instructions to use MM2157/AraBERT_token_classification__AraEval24_sample50 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MM2157/AraBERT_token_classification__AraEval24_sample50 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="MM2157/AraBERT_token_classification__AraEval24_sample50")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("MM2157/AraBERT_token_classification__AraEval24_sample50") model = AutoModelForTokenClassification.from_pretrained("MM2157/AraBERT_token_classification__AraEval24_sample50", device_map="auto") - Notebooks
- Google Colab
- Kaggle
AraBERT_token_classification__AraEval24_sample50
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.9371
- Precision: 0.0415
- Recall: 0.0178
- F1: 0.0249
- Accuracy: 0.8672
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.6217 | 1.0 | 1226 | 0.7327 | 0.0 | 0.0 | 0.0 | 0.8767 |
| 0.5482 | 2.0 | 2452 | 0.7157 | 0.0749 | 0.0025 | 0.0048 | 0.8763 |
| 0.4712 | 3.0 | 3678 | 0.7441 | 0.0466 | 0.0062 | 0.0109 | 0.8751 |
| 0.3973 | 4.0 | 4904 | 0.7451 | 0.0611 | 0.0055 | 0.0100 | 0.8756 |
| 0.3432 | 5.0 | 6130 | 0.7866 | 0.0464 | 0.0181 | 0.0261 | 0.8663 |
| 0.3024 | 6.0 | 7356 | 0.8434 | 0.0594 | 0.0090 | 0.0156 | 0.8752 |
| 0.2786 | 7.0 | 8582 | 0.8571 | 0.0431 | 0.0207 | 0.0280 | 0.8643 |
| 0.2533 | 8.0 | 9808 | 0.8840 | 0.0459 | 0.0165 | 0.0243 | 0.8673 |
| 0.2391 | 9.0 | 11034 | 0.9078 | 0.0476 | 0.0193 | 0.0275 | 0.8675 |
| 0.2209 | 10.0 | 12260 | 0.9371 | 0.0415 | 0.0178 | 0.0249 | 0.8672 |
Framework versions
- Transformers 4.30.2
- Pytorch 1.12.1
- Datasets 2.13.2
- Tokenizers 0.13.3
- Downloads last month
- 15