Monda commited on
Commit
53a3aa6
·
verified ·
1 Parent(s): f3636c6

Model save

Browse files
Files changed (5) hide show
  1. README.md +77 -0
  2. all_results.json +30 -0
  3. eval_results.json +16 -0
  4. model.safetensors +1 -1
  5. test_results.json +16 -0
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: aubmindlab/bert-base-arabertv2
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ model-index:
9
+ - name: bert-base-arabertv2_D3Lex_CE_19levels
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # bert-base-arabertv2_D3Lex_CE_19levels
17
+
18
+ This model is a fine-tuned version of [aubmindlab/bert-base-arabertv2](https://huggingface.co/aubmindlab/bert-base-arabertv2) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 1.8342
21
+ - Macro F1: 0.4364
22
+ - Macro Precision: 0.4424
23
+ - Macro Recall: 0.4454
24
+ - Accuracy: 0.5140
25
+ - Accuracy With Margin: 0.6744
26
+ - Distance: 1.2527
27
+ - Quadratic weighted kappa: 0.7889
28
+ - Accuracy 7: 0.6179
29
+ - Accuracy 5: 0.6653
30
+ - Accuracy 3: 0.7363
31
+
32
+ ## Model description
33
+
34
+ More information needed
35
+
36
+ ## Intended uses & limitations
37
+
38
+ More information needed
39
+
40
+ ## Training and evaluation data
41
+
42
+ More information needed
43
+
44
+ ## Training procedure
45
+
46
+ ### Training hyperparameters
47
+
48
+ The following hyperparameters were used during training:
49
+ - learning_rate: 5e-05
50
+ - train_batch_size: 16
51
+ - eval_batch_size: 16
52
+ - seed: 42
53
+ - gradient_accumulation_steps: 4
54
+ - total_train_batch_size: 64
55
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
56
+ - lr_scheduler_type: linear
57
+ - num_epochs: 6
58
+ - mixed_precision_training: Native AMP
59
+
60
+ ### Training results
61
+
62
+ | Training Loss | Epoch | Step | Validation Loss | Macro F1 | Macro Precision | Macro Recall | Accuracy | Accuracy With Margin | Distance | Quadratic weighted kappa | Accuracy 7 | Accuracy 5 | Accuracy 3 |
63
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------------:|:------------:|:--------:|:--------------------:|:--------:|:------------------------:|:----------:|:----------:|:----------:|
64
+ | 1.8254 | 1.0 | 857 | 1.4573 | 0.3478 | 0.3741 | 0.3804 | 0.5044 | 0.6513 | 1.3171 | 0.7790 | 0.6223 | 0.6773 | 0.7415 |
65
+ | 1.2699 | 2.0 | 1714 | 1.4409 | 0.4133 | 0.4330 | 0.4316 | 0.5157 | 0.6688 | 1.2666 | 0.7825 | 0.6230 | 0.6802 | 0.7497 |
66
+ | 1.0213 | 3.0 | 2571 | 1.4714 | 0.4157 | 0.4210 | 0.4276 | 0.5272 | 0.6711 | 1.2473 | 0.7889 | 0.6308 | 0.6780 | 0.7458 |
67
+ | 0.8308 | 4.0 | 3428 | 1.6169 | 0.4074 | 0.4422 | 0.4110 | 0.5171 | 0.6724 | 1.2573 | 0.7848 | 0.6194 | 0.6663 | 0.7397 |
68
+ | 0.6128 | 5.0 | 4285 | 1.7657 | 0.4222 | 0.4375 | 0.4349 | 0.5164 | 0.6737 | 1.2575 | 0.7861 | 0.6208 | 0.6703 | 0.7391 |
69
+ | 0.4786 | 6.0 | 5142 | 1.8342 | 0.4364 | 0.4424 | 0.4454 | 0.5140 | 0.6744 | 1.2527 | 0.7889 | 0.6179 | 0.6653 | 0.7363 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - Transformers 4.53.2
75
+ - Pytorch 2.6.0+cu124
76
+ - Datasets 4.0.0
77
+ - Tokenizers 0.21.2
all_results.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eval_Distance": 1.2666210670314637,
3
+ "eval_Quadratic Weighted Kappa": 0.7824598012075371,
4
+ "eval_accuracy": 0.5157318741450069,
5
+ "eval_accuracy_3": 0.7496580027359782,
6
+ "eval_accuracy_5": 0.6801641586867305,
7
+ "eval_accuracy_7": 0.6229822161422709,
8
+ "eval_accuracy_with_margin": 0.6688098495212038,
9
+ "eval_loss": 1.4409170150756836,
10
+ "eval_macro_f1": 0.4133400339951421,
11
+ "eval_macro_precision": 0.4329746157332755,
12
+ "eval_macro_recall": 0.4315951261744784,
13
+ "eval_runtime": 7.1213,
14
+ "eval_samples_per_second": 1026.494,
15
+ "eval_steps_per_second": 64.173,
16
+ "test_Distance": 1.2098545155091958,
17
+ "test_Quadratic Weighted Kappa": 0.7923845095768535,
18
+ "test_accuracy": 0.5168816909140818,
19
+ "test_accuracy_3": 0.7318144386494647,
20
+ "test_accuracy_5": 0.6690914081800714,
21
+ "test_accuracy_7": 0.6177600878396926,
22
+ "test_accuracy_with_margin": 0.6662091682679111,
23
+ "test_loss": 1.4232884645462036,
24
+ "test_macro_f1": 0.41679186365313936,
25
+ "test_macro_precision": 0.43817992671310624,
26
+ "test_macro_recall": 0.41739286889353727,
27
+ "test_runtime": 7.1992,
28
+ "test_samples_per_second": 1012.05,
29
+ "test_steps_per_second": 63.34
30
+ }
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "eval_Distance": 1.2666210670314637,
3
+ "eval_Quadratic Weighted Kappa": 0.7824598012075371,
4
+ "eval_accuracy": 0.5157318741450069,
5
+ "eval_accuracy_3": 0.7496580027359782,
6
+ "eval_accuracy_5": 0.6801641586867305,
7
+ "eval_accuracy_7": 0.6229822161422709,
8
+ "eval_accuracy_with_margin": 0.6688098495212038,
9
+ "eval_loss": 1.4409170150756836,
10
+ "eval_macro_f1": 0.4133400339951421,
11
+ "eval_macro_precision": 0.4329746157332755,
12
+ "eval_macro_recall": 0.4315951261744784,
13
+ "eval_runtime": 7.1213,
14
+ "eval_samples_per_second": 1026.494,
15
+ "eval_steps_per_second": 64.173
16
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:37caeff6f11e3e01fec5a3961e0d9f4dbef9555a990b2e546590a750890ed4cd
3
  size 540855364
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41473b787b2d3870e9f7ac031ba14e26ab2a1c682f63d7eab8219de7b2534f29
3
  size 540855364
test_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "test_Distance": 1.2098545155091958,
3
+ "test_Quadratic Weighted Kappa": 0.7923845095768535,
4
+ "test_accuracy": 0.5168816909140818,
5
+ "test_accuracy_3": 0.7318144386494647,
6
+ "test_accuracy_5": 0.6690914081800714,
7
+ "test_accuracy_7": 0.6177600878396926,
8
+ "test_accuracy_with_margin": 0.6662091682679111,
9
+ "test_loss": 1.4232884645462036,
10
+ "test_macro_f1": 0.41679186365313936,
11
+ "test_macro_precision": 0.43817992671310624,
12
+ "test_macro_recall": 0.41739286889353727,
13
+ "test_runtime": 7.1992,
14
+ "test_samples_per_second": 1012.05,
15
+ "test_steps_per_second": 63.34
16
+ }