GeorgeIbrahim commited on
Commit
8499711
1 Parent(s): 1165443

AraBERT-MADAR

Browse files
Files changed (4) hide show
  1. README.md +78 -0
  2. config.json +56 -0
  3. model.safetensors +3 -0
  4. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: aubmindlab/bert-base-arabert
3
+ tags:
4
+ - generated_from_trainer
5
+ metrics:
6
+ - accuracy
7
+ - precision
8
+ - recall
9
+ - f1
10
+ model-index:
11
+ - name: results
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # results
19
+
20
+ This model is a fine-tuned version of [aubmindlab/bert-base-arabert](https://huggingface.co/aubmindlab/bert-base-arabert) on the None dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 1.4485
23
+ - Accuracy: 0.7656
24
+ - Precision: 0.7688
25
+ - Recall: 0.7656
26
+ - F1: 0.7650
27
+ - Mrr: 0.8440
28
+
29
+ ## Model description
30
+
31
+ More information needed
32
+
33
+ ## Intended uses & limitations
34
+
35
+ More information needed
36
+
37
+ ## Training and evaluation data
38
+
39
+ More information needed
40
+
41
+ ## Training procedure
42
+
43
+ ### Training hyperparameters
44
+
45
+ The following hyperparameters were used during training:
46
+ - learning_rate: 5e-05
47
+ - train_batch_size: 8
48
+ - eval_batch_size: 8
49
+ - seed: 42
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: linear
52
+ - lr_scheduler_warmup_steps: 320
53
+ - num_epochs: 12
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 | Mrr |
58
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|:---------:|:------:|:------:|:------:|
59
+ | 0.9496 | 1.0 | 2250 | 0.9448 | 0.69 | 0.7197 | 0.69 | 0.6896 | 0.8003 |
60
+ | 0.7839 | 2.0 | 4500 | 0.8385 | 0.7 | 0.7302 | 0.7 | 0.7032 | 0.8101 |
61
+ | 0.4602 | 3.0 | 6750 | 0.9599 | 0.745 | 0.7524 | 0.745 | 0.7421 | 0.8346 |
62
+ | 0.4453 | 4.0 | 9000 | 0.9992 | 0.7325 | 0.7474 | 0.7325 | 0.7353 | 0.8342 |
63
+ | 0.3919 | 5.0 | 11250 | 1.2636 | 0.7425 | 0.7551 | 0.7425 | 0.7413 | 0.8312 |
64
+ | 0.313 | 6.0 | 13500 | 1.3639 | 0.7625 | 0.7679 | 0.7625 | 0.7628 | 0.8442 |
65
+ | 0.2186 | 7.0 | 15750 | 1.6281 | 0.745 | 0.7566 | 0.745 | 0.7461 | 0.8369 |
66
+ | 0.1942 | 8.0 | 18000 | 1.5611 | 0.775 | 0.7822 | 0.775 | 0.7752 | 0.8486 |
67
+ | 0.128 | 9.0 | 20250 | 1.7601 | 0.74 | 0.7504 | 0.74 | 0.7412 | 0.8341 |
68
+ | 0.0598 | 10.0 | 22500 | 1.6894 | 0.7725 | 0.7761 | 0.7725 | 0.7725 | 0.8548 |
69
+ | 0.0699 | 11.0 | 24750 | 1.8025 | 0.765 | 0.7698 | 0.765 | 0.7645 | 0.8460 |
70
+ | 0.0292 | 12.0 | 27000 | 1.8754 | 0.76 | 0.7621 | 0.76 | 0.7592 | 0.8451 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.38.2
76
+ - Pytorch 2.2.1+cu121
77
+ - Datasets 2.18.0
78
+ - Tokenizers 0.15.2
config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "aubmindlab/bert-base-arabert",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6",
20
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "LABEL_0": 0,
28
+ "LABEL_1": 1,
29
+ "LABEL_2": 2,
30
+ "LABEL_3": 3,
31
+ "LABEL_4": 4,
32
+ "LABEL_5": 5,
33
+ "LABEL_6": 6,
34
+ "LABEL_7": 7,
35
+ "LABEL_8": 8,
36
+ "LABEL_9": 9
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "max_position_embeddings": 512,
40
+ "model_type": "bert",
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "pad_token_id": 0,
44
+ "pooler_fc_size": 768,
45
+ "pooler_num_attention_heads": 12,
46
+ "pooler_num_fc_layers": 3,
47
+ "pooler_size_per_head": 128,
48
+ "pooler_type": "first_token_transform",
49
+ "position_embedding_type": "absolute",
50
+ "problem_type": "single_label_classification",
51
+ "torch_dtype": "float32",
52
+ "transformers_version": "4.38.2",
53
+ "type_vocab_size": 2,
54
+ "use_cache": true,
55
+ "vocab_size": 64000
56
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d526f6fc418cc99f235ddfc6bc0de9133856d25a65aa28a0961f1fa324bbfb64
3
+ size 540827680
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1031496513ccfb0a8950ecb72d47720c03cfb3dfa6f1d8e02b45cd6a25fc65c6
3
+ size 4856