yazansh commited on
Commit
669ca13
·
verified ·
1 Parent(s): 984ac09
Files changed (4) hide show
  1. README.md +10 -13
  2. config.toml +11 -19
  3. pytorch_model.bin +1 -1
  4. training_args.bin +2 -2
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.2591
20
 
21
  ## Model description
22
 
@@ -35,26 +35,23 @@ More information needed
35
  ### Training hyperparameters
36
 
37
  The following hyperparameters were used during training:
38
- - learning_rate: 0.0001
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: linear
46
- - lr_scheduler_warmup_steps: 2000.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.6174 | 0.64 | 500 | 4.4343 |
55
- | 4.3509 | 1.28 | 1000 | 4.2799 |
56
- | 4.3392 | 1.91 | 1500 | 4.2559 |
57
- | 4.2514 | 2.55 | 2000 | 4.2591 |
58
 
59
 
60
  ### 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.3014
20
 
21
  ## Model description
22
 
 
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
config.toml CHANGED
@@ -1,38 +1,30 @@
1
  [experiment]
2
- name = "mlm-3"
3
  type = "mlm"
4
 
5
 
6
  [dataset]
7
  path = "thejosango/nuha-dataset"
8
  dataset_revision = "main"
9
- with_post_text = false
10
  augment_ratio = 0.0
 
11
 
12
 
13
  [model]
14
  pretrained_model_name_or_path = "aubmindlab/bert-base-arabertv02-twitter"
15
  revision = "main"
16
- #hidden_dropout_prob = 0.2
17
- #attention_probs_dropout_prob = 0.2
18
- #classifier_dropout = 0.2
19
- #num_hidden_layers = 8
20
- #num_attention_heads = 12
21
- #hidden_size = 768
22
- #intermediate_size= null
23
 
24
 
25
  [training]
26
- num_train_epochs = 3
27
- warmup_steps = 2e3
28
- lr_scheduler_type = "linear"
29
- learning_rate = 1e-4
30
- per_device_train_batch_size = 32
31
- per_device_eval_batch_size = 32
32
- gradient_accumulation_steps = 2
33
  weight_decay = 0.01
34
  label_smoothing_factor = 0.1
35
  weighted_loss = false
36
- resample_data = false
37
- early_stopping_patience = 0
38
- early_stopping_threshold = 0
 
1
  [experiment]
2
+ name = "mlm-4"
3
  type = "mlm"
4
 
5
 
6
  [dataset]
7
  path = "thejosango/nuha-dataset"
8
  dataset_revision = "main"
 
9
  augment_ratio = 0.0
10
+ undersampling_strategy = false
11
 
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
30
+ early_stopping_threshold = 0.005
 
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:812c36a44c7713e58775c0aac94aa7b15c6509792d3c97038a7e4651c3cf8d29
3
  size 541104501
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4606e079bff12241fab620c6ea27ccf1c6a4a95ad320b348353b82e869dad9ee
3
  size 541104501
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d94db48e3cc2b831068369c7fecfafa07c51db5aaed7a2f6a9959a46edebe263
3
- size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6420bbe060e364db418484f88662d36095b1bb69ce021b673848354839c0617
3
+ size 4091