Instructions to use MM2157/BERT_token_classification_AraEval24 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MM2157/BERT_token_classification_AraEval24 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="MM2157/BERT_token_classification_AraEval24")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("MM2157/BERT_token_classification_AraEval24") model = AutoModelForTokenClassification.from_pretrained("MM2157/BERT_token_classification_AraEval24", device_map="auto") - Notebooks
- Google Colab
- Kaggle
BERT_token_classification_AraEval24
This model is a fine-tuned version of bert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.2671
- Precision: 0.0455
- Recall: 0.0543
- F1: 0.0495
- Accuracy: 0.7188
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 |
|---|---|---|---|---|---|---|---|
| 1.168 | 1.0 | 664 | 0.9646 | 0.0634 | 0.0169 | 0.0267 | 0.7782 |
| 0.984 | 2.0 | 1328 | 0.9723 | 0.0620 | 0.0623 | 0.0621 | 0.7561 |
| 0.8439 | 3.0 | 1992 | 0.9939 | 0.0495 | 0.0398 | 0.0441 | 0.7490 |
| 0.5685 | 4.0 | 2656 | 1.0298 | 0.0512 | 0.0568 | 0.0538 | 0.7425 |
| 0.5218 | 5.0 | 3320 | 1.1005 | 0.0493 | 0.0618 | 0.0549 | 0.7270 |
| 0.4691 | 6.0 | 3984 | 1.1279 | 0.0469 | 0.0503 | 0.0485 | 0.7403 |
| 0.3587 | 7.0 | 4648 | 1.1704 | 0.0490 | 0.0578 | 0.0530 | 0.7239 |
| 0.338 | 8.0 | 5312 | 1.2298 | 0.0477 | 0.0593 | 0.0529 | 0.7150 |
| 0.3136 | 9.0 | 5976 | 1.2286 | 0.0499 | 0.0553 | 0.0524 | 0.7273 |
| 0.2662 | 10.0 | 6640 | 1.2671 | 0.0455 | 0.0543 | 0.0495 | 0.7188 |
Framework versions
- Transformers 4.30.2
- Pytorch 1.12.1
- Datasets 2.13.2
- Tokenizers 0.13.3
- Downloads last month
- 4