yazansh commited on
Commit
ce20f49
·
verified ·
1 Parent(s): 669ca13
Files changed (5) hide show
  1. README.md +19 -9
  2. config.toml +8 -9
  3. pytorch_model.bin +1 -1
  4. tokenizer.json +14 -2
  5. training_args.bin +1 -1
README.md CHANGED
@@ -16,7 +16,7 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  This model is a fine-tuned version of [aubmindlab/bert-base-arabertv02-twitter](https://huggingface.co/aubmindlab/bert-base-arabertv02-twitter) on the nuha-dataset dataset.
18
  It achieves the following results on the evaluation set:
19
- - Loss: 4.3014
20
 
21
  ## Model description
22
 
@@ -35,23 +35,33 @@ More information needed
35
  ### Training hyperparameters
36
 
37
  The following hyperparameters were used during training:
38
- - learning_rate: 1e-05
39
- - train_batch_size: 64
40
- - eval_batch_size: 64
41
  - seed: 42
 
 
42
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
  - lr_scheduler_type: constant
44
- - lr_scheduler_warmup_steps: 500.0
45
- - num_epochs: 1
46
  - label_smoothing_factor: 0.1
47
 
48
  ### Training results
49
 
50
  | Training Loss | Epoch | Step | Validation Loss |
51
  |:-------------:|:-----:|:----:|:---------------:|
52
- | 4.6458 | 0.25 | 500 | 4.4435 |
53
- | 4.4927 | 0.5 | 1000 | 4.3572 |
54
- | 4.4381 | 0.75 | 1500 | 4.3014 |
 
 
 
 
 
 
 
 
55
 
56
 
57
  ### Framework versions
 
16
 
17
  This model is a fine-tuned version of [aubmindlab/bert-base-arabertv02-twitter](https://huggingface.co/aubmindlab/bert-base-arabertv02-twitter) on the nuha-dataset dataset.
18
  It achieves the following results on the evaluation set:
19
+ - Loss: 4.1000
20
 
21
  ## Model description
22
 
 
35
  ### Training hyperparameters
36
 
37
  The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 32
40
+ - eval_batch_size: 32
41
  - seed: 42
42
+ - gradient_accumulation_steps: 2
43
+ - total_train_batch_size: 64
44
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
  - lr_scheduler_type: constant
46
+ - lr_scheduler_warmup_steps: 1000.0
47
+ - num_epochs: 3
48
  - label_smoothing_factor: 0.1
49
 
50
  ### Training results
51
 
52
  | Training Loss | Epoch | Step | Validation Loss |
53
  |:-------------:|:-----:|:----:|:---------------:|
54
+ | 4.5289 | 0.25 | 500 | 4.3484 |
55
+ | 4.4276 | 0.5 | 1000 | 4.2974 |
56
+ | 4.402 | 0.75 | 1500 | 4.2336 |
57
+ | 4.3494 | 1.0 | 2000 | 4.1649 |
58
+ | 4.2526 | 1.26 | 2500 | 4.1969 |
59
+ | 4.2335 | 1.51 | 3000 | 4.1577 |
60
+ | 4.2401 | 1.76 | 3500 | 4.1136 |
61
+ | 4.1889 | 2.01 | 4000 | 4.1469 |
62
+ | 4.1366 | 2.26 | 4500 | 4.1297 |
63
+ | 4.1435 | 2.51 | 5000 | 4.0907 |
64
+ | 4.1207 | 2.76 | 5500 | 4.1000 |
65
 
66
 
67
  ### Framework versions
config.toml CHANGED
@@ -1,5 +1,5 @@
1
  [experiment]
2
- name = "mlm-4"
3
  type = "mlm"
4
 
5
 
@@ -12,18 +12,17 @@ undersampling_strategy = false
12
 
13
  [model]
14
  pretrained_model_name_or_path = "aubmindlab/bert-base-arabertv02-twitter"
15
- revision = "main"
16
 
17
 
18
  [training]
19
- num_train_epochs = 1
20
- warmup_steps = 5e2
21
  lr_scheduler_type = "constant"
22
- learning_rate = 1e-5
23
- per_device_train_batch_size = 64
24
- per_device_eval_batch_size = 64
25
- gradient_accumulation_steps = 1
26
- weight_decay = 0.01
27
  label_smoothing_factor = 0.1
28
  weighted_loss = false
29
  early_stopping_patience = 5
 
1
  [experiment]
2
+ name = "mlm-5"
3
  type = "mlm"
4
 
5
 
 
12
 
13
  [model]
14
  pretrained_model_name_or_path = "aubmindlab/bert-base-arabertv02-twitter"
 
15
 
16
 
17
  [training]
18
+ num_train_epochs = 3
19
+ warmup_steps = 1e3
20
  lr_scheduler_type = "constant"
21
+ learning_rate = 5e-5
22
+ per_device_train_batch_size = 32
23
+ per_device_eval_batch_size = 32
24
+ gradient_accumulation_steps = 2
25
+ weight_decay = 0.00
26
  label_smoothing_factor = 0.1
27
  weighted_loss = false
28
  early_stopping_patience = 5
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4606e079bff12241fab620c6ea27ccf1c6a4a95ad320b348353b82e869dad9ee
3
  size 541104501
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7aed42dcd14312adec1767d61596c1213bfdac1ca5e6620ff838b7c82551b6a2
3
  size 541104501
tokenizer.json CHANGED
@@ -1,7 +1,19 @@
1
  {
2
  "version": "1.0",
3
- "truncation": null,
4
- "padding": null,
 
 
 
 
 
 
 
 
 
 
 
 
5
  "added_tokens": [
6
  {
7
  "id": 0,
 
1
  {
2
  "version": "1.0",
3
+ "truncation": {
4
+ "direction": "Right",
5
+ "max_length": 512,
6
+ "strategy": "LongestFirst",
7
+ "stride": 0
8
+ },
9
+ "padding": {
10
+ "strategy": "BatchLongest",
11
+ "direction": "Right",
12
+ "pad_to_multiple_of": null,
13
+ "pad_id": 0,
14
+ "pad_type_id": 0,
15
+ "pad_token": "[PAD]"
16
+ },
17
  "added_tokens": [
18
  {
19
  "id": 0,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a6420bbe060e364db418484f88662d36095b1bb69ce021b673848354839c0617
3
  size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:591a687be7219249edf221ee703b4450d76d95a56bc77b37a6061088d416e8a0
3
  size 4091