yazansh commited on
Commit
984ac09
·
1 Parent(s): 1e1d7fe
Files changed (6) hide show
  1. README.md +11 -14
  2. config.json +1 -1
  3. config.toml +8 -8
  4. pytorch_model.bin +2 -2
  5. tokenizer.json +2 -14
  6. 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.7143
20
 
21
  ## Model description
22
 
@@ -35,29 +35,26 @@ More information needed
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
 
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
  ### 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
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": 8,
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": 12,
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-2"
3
  type = "mlm"
4
 
5
 
@@ -16,20 +16,20 @@ 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
 
1
  [experiment]
2
+ name = "mlm-3"
3
  type = "mlm"
4
 
5
 
 
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
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77ba656ca0a468c5254acd0f409bf4736a1cbf0140d9064fd0e21c59cbe176a3
3
- size 427676597
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:812c36a44c7713e58775c0aac94aa7b15c6509792d3c97038a7e4651c3cf8d29
3
+ size 541104501
tokenizer.json CHANGED
@@ -1,19 +1,7 @@
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,
 
1
  {
2
  "version": "1.0",
3
+ "truncation": null,
4
+ "padding": null,
 
 
 
 
 
 
 
 
 
 
 
 
5
  "added_tokens": [
6
  {
7
  "id": 0,
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:14b7b9084803fcab4baf4a0bb822aa03dd0f81f6311c38ae7f3411489a2dd872
3
  size 4027
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d94db48e3cc2b831068369c7fecfafa07c51db5aaed7a2f6a9959a46edebe263
3
  size 4027