BounharAbdelaziz commited on
Commit
bf90461
1 Parent(s): f7d8382

BounharAbdelaziz/Transliteration-Moroccan-Darija

Browse files
README.md CHANGED
@@ -30,9 +30,9 @@ More information needed
30
  ### Training hyperparameters
31
 
32
  The following hyperparameters were used during training:
33
- - learning_rate: 0.0005
34
- - train_batch_size: 384
35
- - eval_batch_size: 384
36
  - seed: 42
37
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
38
  - lr_scheduler_type: linear
 
30
  ### Training hyperparameters
31
 
32
  The following hyperparameters were used during training:
33
+ - learning_rate: 0.05
34
+ - train_batch_size: 512
35
+ - eval_batch_size: 512
36
  - seed: 42
37
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
38
  - lr_scheduler_type: linear
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "./BounharAbdelaziz/Transliteration-Moroccan-Darija/checkpoint-5000/",
3
  "architectures": [
4
  "EncoderDecoderModel"
5
  ],
@@ -26,7 +26,7 @@
26
  "forced_eos_token_id": null,
27
  "hidden_act": "gelu",
28
  "hidden_dropout_prob": 0.1,
29
- "hidden_size": 512,
30
  "id2label": {
31
  "0": "LABEL_0",
32
  "1": "LABEL_1"
@@ -46,10 +46,10 @@
46
  "min_length": 0,
47
  "model_type": "bert",
48
  "no_repeat_ngram_size": 0,
49
- "num_attention_heads": 8,
50
  "num_beam_groups": 1,
51
  "num_beams": 1,
52
- "num_hidden_layers": 4,
53
  "num_return_sequences": 1,
54
  "output_attentions": false,
55
  "output_hidden_states": false,
@@ -81,7 +81,7 @@
81
  "use_cache": true,
82
  "vocab_size": 30522
83
  },
84
- "decoder_start_token_id": 15,
85
  "encoder": {
86
  "_name_or_path": "",
87
  "add_cross_attention": false,
@@ -105,7 +105,7 @@
105
  "forced_eos_token_id": null,
106
  "hidden_act": "gelu",
107
  "hidden_dropout_prob": 0.1,
108
- "hidden_size": 512,
109
  "id2label": {
110
  "0": "LABEL_0",
111
  "1": "LABEL_1"
@@ -125,10 +125,10 @@
125
  "min_length": 0,
126
  "model_type": "bert",
127
  "no_repeat_ngram_size": 0,
128
- "num_attention_heads": 8,
129
  "num_beam_groups": 1,
130
  "num_beams": 1,
131
- "num_hidden_layers": 4,
132
  "num_return_sequences": 1,
133
  "output_attentions": false,
134
  "output_hidden_states": false,
@@ -162,7 +162,7 @@
162
  },
163
  "is_encoder_decoder": true,
164
  "model_type": "encoder-decoder",
165
- "pad_token_id": 14,
166
  "torch_dtype": "float32",
167
  "transformers_version": "4.39.2"
168
  }
 
1
  {
2
+ "_name_or_path": "./checkpoint-1500/",
3
  "architectures": [
4
  "EncoderDecoderModel"
5
  ],
 
26
  "forced_eos_token_id": null,
27
  "hidden_act": "gelu",
28
  "hidden_dropout_prob": 0.1,
29
+ "hidden_size": 64,
30
  "id2label": {
31
  "0": "LABEL_0",
32
  "1": "LABEL_1"
 
46
  "min_length": 0,
47
  "model_type": "bert",
48
  "no_repeat_ngram_size": 0,
49
+ "num_attention_heads": 2,
50
  "num_beam_groups": 1,
51
  "num_beams": 1,
52
+ "num_hidden_layers": 2,
53
  "num_return_sequences": 1,
54
  "output_attentions": false,
55
  "output_hidden_states": false,
 
81
  "use_cache": true,
82
  "vocab_size": 30522
83
  },
84
+ "decoder_start_token_id": 1,
85
  "encoder": {
86
  "_name_or_path": "",
87
  "add_cross_attention": false,
 
105
  "forced_eos_token_id": null,
106
  "hidden_act": "gelu",
107
  "hidden_dropout_prob": 0.1,
108
+ "hidden_size": 64,
109
  "id2label": {
110
  "0": "LABEL_0",
111
  "1": "LABEL_1"
 
125
  "min_length": 0,
126
  "model_type": "bert",
127
  "no_repeat_ngram_size": 0,
128
+ "num_attention_heads": 2,
129
  "num_beam_groups": 1,
130
  "num_beams": 1,
131
+ "num_hidden_layers": 2,
132
  "num_return_sequences": 1,
133
  "output_attentions": false,
134
  "output_hidden_states": false,
 
162
  },
163
  "is_encoder_decoder": true,
164
  "model_type": "encoder-decoder",
165
+ "pad_token_id": 0,
166
  "torch_dtype": "float32",
167
  "transformers_version": "4.39.2"
168
  }
generation_config.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "_from_model_config": true,
3
- "decoder_start_token_id": 15,
4
- "pad_token_id": 14,
5
  "transformers_version": "4.39.2"
6
  }
 
1
  {
2
  "_from_model_config": true,
3
+ "decoder_start_token_id": 1,
4
+ "pad_token_id": 0,
5
  "transformers_version": "4.39.2"
6
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8ececda637307182678f8138549fe6e6a9a1bc86299ef7c211595b3807811187
3
- size 280671840
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:816a30480e3c6c9dbbbb8beda170def7573bba47ecbd7ea18790f9829eadfcae
3
+ size 22805496
special_tokens_map.json CHANGED
@@ -1,9 +1,30 @@
1
  {
2
- "bos_token": "<sos>",
3
- "cls_token": "[CLS]",
4
- "eos_token": "<eos>",
5
- "mask_token": "[MASK]",
6
- "pad_token": "<pad>",
7
- "sep_token": "[SEP]",
8
- "unk_token": "<unk>"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
 
1
  {
2
+ "bos_token": {
3
+ "content": "<bos>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<eos>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<pad>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
  }
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,14 +1,6 @@
1
  {
2
  "added_tokens_decoder": {
3
- "13": {
4
- "content": "<eos>",
5
- "lstrip": false,
6
- "normalized": false,
7
- "rstrip": false,
8
- "single_word": false,
9
- "special": true
10
- },
11
- "14": {
12
  "content": "<pad>",
13
  "lstrip": false,
14
  "normalized": false,
@@ -16,40 +8,24 @@
16
  "single_word": false,
17
  "special": true
18
  },
19
- "15": {
20
- "content": "<sos>",
21
- "lstrip": false,
22
- "normalized": false,
23
- "rstrip": false,
24
- "single_word": false,
25
- "special": true
26
- },
27
- "16": {
28
- "content": "<unk>",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
32
  "single_word": false,
33
  "special": true
34
  },
35
- "85": {
36
- "content": "[SEP]",
37
- "lstrip": false,
38
- "normalized": false,
39
- "rstrip": false,
40
- "single_word": false,
41
- "special": true
42
- },
43
- "86": {
44
- "content": "[CLS]",
45
  "lstrip": false,
46
  "normalized": false,
47
  "rstrip": false,
48
  "single_word": false,
49
  "special": true
50
  },
51
- "87": {
52
- "content": "[MASK]",
53
  "lstrip": false,
54
  "normalized": false,
55
  "rstrip": false,
@@ -57,27 +33,11 @@
57
  "special": true
58
  }
59
  },
60
- "bos_token": "<sos>",
61
  "clean_up_tokenization_spaces": true,
62
- "cls_token": "[CLS]",
63
- "do_basic_tokenize": true,
64
- "do_lower_case": true,
65
  "eos_token": "<eos>",
66
- "mask_token": "[MASK]",
67
- "max_length": 128,
68
  "model_max_length": 1000000000000000019884624838656,
69
- "never_split": null,
70
- "pad_to_multiple_of": null,
71
  "pad_token": "<pad>",
72
- "pad_token_type_id": 0,
73
- "padding_side": "right",
74
- "sep_token": "[SEP]",
75
- "stride": 0,
76
- "strip_accents": null,
77
- "tokenize_chinese_chars": true,
78
- "tokenizer_class": "BertTokenizer",
79
- "trainable": true,
80
- "truncation_side": "right",
81
- "truncation_strategy": "longest_first",
82
  "unk_token": "<unk>"
83
  }
 
1
  {
2
  "added_tokens_decoder": {
3
+ "0": {
 
 
 
 
 
 
 
 
4
  "content": "<pad>",
5
  "lstrip": false,
6
  "normalized": false,
 
8
  "single_word": false,
9
  "special": true
10
  },
11
+ "1": {
12
+ "content": "<bos>",
 
 
 
 
 
 
 
 
13
  "lstrip": false,
14
  "normalized": false,
15
  "rstrip": false,
16
  "single_word": false,
17
  "special": true
18
  },
19
+ "2": {
20
+ "content": "<eos>",
 
 
 
 
 
 
 
 
21
  "lstrip": false,
22
  "normalized": false,
23
  "rstrip": false,
24
  "single_word": false,
25
  "special": true
26
  },
27
+ "3": {
28
+ "content": "<unk>",
29
  "lstrip": false,
30
  "normalized": false,
31
  "rstrip": false,
 
33
  "special": true
34
  }
35
  },
36
+ "bos_token": "<bos>",
37
  "clean_up_tokenization_spaces": true,
 
 
 
38
  "eos_token": "<eos>",
 
 
39
  "model_max_length": 1000000000000000019884624838656,
 
 
40
  "pad_token": "<pad>",
41
+ "tokenizer_class": "PreTrainedTokenizerFast",
 
 
 
 
 
 
 
 
 
42
  "unk_token": "<unk>"
43
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:451ec24aae7e96054ac1348fb7c1ce2acc36f6242c9a05fe6fb4a94c07f2d26f
3
  size 5048
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:000459e2b1cc8e87d2d315734c195c15b6a59ac770c9921ddf85433e87be1519
3
  size 5048