yazansh commited on
Commit
1e1d7fe
·
1 Parent(s): 2caf9eb
Files changed (5) hide show
  1. README.md +12 -6
  2. config.json +1 -1
  3. config.toml +13 -12
  4. pytorch_model.bin +2 -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: 6.7276
20
 
21
  ## Model description
22
 
@@ -35,23 +35,29 @@ More information needed
35
  ### Training hyperparameters
36
 
37
  The following hyperparameters were used during training:
38
- - learning_rate: 1e-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: 1
48
  - label_smoothing_factor: 0.1
49
 
50
  ### Training results
51
 
52
  | Training Loss | Epoch | Step | Validation Loss |
53
  |:-------------:|:-----:|:----:|:---------------:|
54
- | 7.028 | 0.64 | 500 | 6.7276 |
 
 
 
 
 
 
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.7143
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: 16
40
  - eval_batch_size: 32
41
  - seed: 42
42
+ - gradient_accumulation_steps: 4
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: 5
48
  - label_smoothing_factor: 0.1
49
 
50
  ### Training results
51
 
52
  | Training Loss | Epoch | Step | Validation Loss |
53
  |:-------------:|:-----:|:----:|:---------------:|
54
+ | 5.6551 | 0.64 | 500 | 5.3465 |
55
+ | 5.2489 | 1.28 | 1000 | 5.1498 |
56
+ | 5.1004 | 1.91 | 1500 | 4.9168 |
57
+ | 4.9289 | 2.55 | 2000 | 4.9202 |
58
+ | 4.9081 | 3.19 | 2500 | 4.8600 |
59
+ | 4.7641 | 3.83 | 3000 | 4.7688 |
60
+ | 4.6543 | 4.47 | 3500 | 4.7143 |
61
 
62
 
63
  ### Framework versions
config.json CHANGED
@@ -15,7 +15,7 @@
15
  "max_position_embeddings": 512,
16
  "model_type": "bert",
17
  "num_attention_heads": 12,
18
- "num_hidden_layers": 4,
19
  "pad_token_id": 0,
20
  "position_embedding_type": "absolute",
21
  "torch_dtype": "float32",
 
15
  "max_position_embeddings": 512,
16
  "model_type": "bert",
17
  "num_attention_heads": 12,
18
+ "num_hidden_layers": 8,
19
  "pad_token_id": 0,
20
  "position_embedding_type": "absolute",
21
  "torch_dtype": "float32",
config.toml CHANGED
@@ -1,5 +1,5 @@
1
  [experiment]
2
- name = "mlm-1"
3
  type = "mlm"
4
 
5
 
@@ -13,25 +13,26 @@ augment_ratio = 0.0
13
  [model]
14
  pretrained_model_name_or_path = "aubmindlab/bert-base-arabertv02-twitter"
15
  revision = "main"
16
- #hidden_dropout_prob = 0
17
- #attention_probs_dropout_prob = 0
18
- #classifier_dropout = 0
19
- num_hidden_layers = 4
20
  #num_attention_heads = 12
21
  #hidden_size = 768
22
  #intermediate_size= null
23
 
24
 
25
  [training]
26
- num_train_epochs = 1
27
  warmup_steps = 1e3
28
  lr_scheduler_type = "constant"
29
- learning_rate = 1e-5
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
- early_stopping_patience = 5
37
- early_stopping_threshold = 0.005
 
 
1
  [experiment]
2
+ name = "mlm-2"
3
  type = "mlm"
4
 
5
 
 
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 = 5
27
  warmup_steps = 1e3
28
  lr_scheduler_type = "constant"
29
+ learning_rate = 5e-5
30
+ per_device_train_batch_size = 16
31
+ per_device_eval_batch_size = 32
32
+ gradient_accumulation_steps = 4
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
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2390bcc18655c3b705f4bc3a92dfa3e334a5545ec9a2ea7203aad44f4dda0972
3
- size 314248719
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77ba656ca0a468c5254acd0f409bf4736a1cbf0140d9064fd0e21c59cbe176a3
3
+ size 427676597
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5816c68c135c2d5cb8ef366758286e5d2acaca037248be513e6bdfcb64fb6c8c
3
  size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14b7b9084803fcab4baf4a0bb822aa03dd0f81f6311c38ae7f3411489a2dd872
3
  size 4027