felerminoali commited on
Commit
4e1d5e4
1 Parent(s): 6bfaab3
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,56 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: Davlan/afro-xlmr-base
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: afro_xlmr_base_emakhuwa
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # afro_xlmr_base_emakhuwa
16
+
17
+ This model is a fine-tuned version of [Davlan/afro-xlmr-base](https://huggingface.co/Davlan/afro-xlmr-base) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - Loss: 1.3341
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 4
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - distributed_type: multi-GPU
43
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
44
+ - lr_scheduler_type: linear
45
+ - num_epochs: 3.0
46
+
47
+ ### Training results
48
+
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.47.0
54
+ - Pytorch 2.1.0a0+4136153
55
+ - Datasets 3.2.0
56
+ - Tokenizers 0.21.0
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_loss": 1.334074854850769,
4
+ "eval_runtime": 4.3825,
5
+ "eval_samples": 153,
6
+ "eval_samples_per_second": 34.912,
7
+ "eval_steps_per_second": 4.564,
8
+ "perplexity": 3.7964820242969743,
9
+ "total_flos": 1.1730479287894016e+16,
10
+ "train_loss": 1.7010253453222524,
11
+ "train_runtime": 4017.837,
12
+ "train_samples": 14818,
13
+ "train_samples_per_second": 11.064,
14
+ "train_steps_per_second": 2.766
15
+ }
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Davlan/afro-xlmr-base",
3
+ "architectures": [
4
+ "XLMRobertaForMaskedLM"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "xlm-roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.47.0",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 250002
28
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_loss": 1.334074854850769,
4
+ "eval_runtime": 4.3825,
5
+ "eval_samples": 153,
6
+ "eval_samples_per_second": 34.912,
7
+ "eval_steps_per_second": 4.564,
8
+ "perplexity": 3.7964820242969743
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07dc81494c85bfdf65faf0845aa33e78f2eaae67b6566f4534581ac86424d86b
3
+ size 1113205088
sentencepiece.bpe.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
3
+ size 5069051
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a56def25aa40facc030ea8b0b87f3688e4b3c39eb8b45d5702b3a1300fe2a20
3
+ size 17082734
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
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,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "model_max_length": 512,
51
+ "pad_token": "<pad>",
52
+ "sep_token": "</s>",
53
+ "tokenizer_class": "XLMRobertaTokenizer",
54
+ "unk_token": "<unk>"
55
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "total_flos": 1.1730479287894016e+16,
4
+ "train_loss": 1.7010253453222524,
5
+ "train_runtime": 4017.837,
6
+ "train_samples": 14818,
7
+ "train_samples_per_second": 11.064,
8
+ "train_steps_per_second": 2.766
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 11115,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.1349527665317139,
13
+ "grad_norm": 7.277841567993164,
14
+ "learning_rate": 4.775078722447144e-05,
15
+ "loss": 3.0654,
16
+ "step": 500
17
+ },
18
+ {
19
+ "epoch": 0.2699055330634278,
20
+ "grad_norm": 7.536296844482422,
21
+ "learning_rate": 4.550157444894287e-05,
22
+ "loss": 2.4088,
23
+ "step": 1000
24
+ },
25
+ {
26
+ "epoch": 0.4048582995951417,
27
+ "grad_norm": 6.857296466827393,
28
+ "learning_rate": 4.3252361673414306e-05,
29
+ "loss": 2.1502,
30
+ "step": 1500
31
+ },
32
+ {
33
+ "epoch": 0.5398110661268556,
34
+ "grad_norm": 20.20909309387207,
35
+ "learning_rate": 4.100314889788574e-05,
36
+ "loss": 1.9977,
37
+ "step": 2000
38
+ },
39
+ {
40
+ "epoch": 0.6747638326585695,
41
+ "grad_norm": 6.654603004455566,
42
+ "learning_rate": 3.8753936122357176e-05,
43
+ "loss": 1.8983,
44
+ "step": 2500
45
+ },
46
+ {
47
+ "epoch": 0.8097165991902834,
48
+ "grad_norm": 7.12253999710083,
49
+ "learning_rate": 3.650472334682861e-05,
50
+ "loss": 1.8103,
51
+ "step": 3000
52
+ },
53
+ {
54
+ "epoch": 0.9446693657219973,
55
+ "grad_norm": 6.6242170333862305,
56
+ "learning_rate": 3.4255510571300045e-05,
57
+ "loss": 1.7543,
58
+ "step": 3500
59
+ },
60
+ {
61
+ "epoch": 1.0796221322537112,
62
+ "grad_norm": 5.963022232055664,
63
+ "learning_rate": 3.2006297795771486e-05,
64
+ "loss": 1.6822,
65
+ "step": 4000
66
+ },
67
+ {
68
+ "epoch": 1.214574898785425,
69
+ "grad_norm": 6.769837856292725,
70
+ "learning_rate": 2.9757085020242914e-05,
71
+ "loss": 1.6501,
72
+ "step": 4500
73
+ },
74
+ {
75
+ "epoch": 1.349527665317139,
76
+ "grad_norm": 6.467240333557129,
77
+ "learning_rate": 2.750787224471435e-05,
78
+ "loss": 1.612,
79
+ "step": 5000
80
+ },
81
+ {
82
+ "epoch": 1.484480431848853,
83
+ "grad_norm": 6.431339740753174,
84
+ "learning_rate": 2.5258659469185787e-05,
85
+ "loss": 1.5606,
86
+ "step": 5500
87
+ },
88
+ {
89
+ "epoch": 1.6194331983805668,
90
+ "grad_norm": 7.2527289390563965,
91
+ "learning_rate": 2.300944669365722e-05,
92
+ "loss": 1.5413,
93
+ "step": 6000
94
+ },
95
+ {
96
+ "epoch": 1.7543859649122808,
97
+ "grad_norm": 6.609572887420654,
98
+ "learning_rate": 2.0760233918128656e-05,
99
+ "loss": 1.5367,
100
+ "step": 6500
101
+ },
102
+ {
103
+ "epoch": 1.8893387314439947,
104
+ "grad_norm": 6.267154216766357,
105
+ "learning_rate": 1.851102114260009e-05,
106
+ "loss": 1.5087,
107
+ "step": 7000
108
+ },
109
+ {
110
+ "epoch": 2.0242914979757085,
111
+ "grad_norm": 6.8475117683410645,
112
+ "learning_rate": 1.6261808367071525e-05,
113
+ "loss": 1.4727,
114
+ "step": 7500
115
+ },
116
+ {
117
+ "epoch": 2.1592442645074224,
118
+ "grad_norm": 6.945182800292969,
119
+ "learning_rate": 1.401259559154296e-05,
120
+ "loss": 1.4564,
121
+ "step": 8000
122
+ },
123
+ {
124
+ "epoch": 2.294197031039136,
125
+ "grad_norm": 6.858353137969971,
126
+ "learning_rate": 1.1763382816014395e-05,
127
+ "loss": 1.4325,
128
+ "step": 8500
129
+ },
130
+ {
131
+ "epoch": 2.42914979757085,
132
+ "grad_norm": 6.653971195220947,
133
+ "learning_rate": 9.51417004048583e-06,
134
+ "loss": 1.4041,
135
+ "step": 9000
136
+ },
137
+ {
138
+ "epoch": 2.564102564102564,
139
+ "grad_norm": 5.984017848968506,
140
+ "learning_rate": 7.264957264957266e-06,
141
+ "loss": 1.4085,
142
+ "step": 9500
143
+ },
144
+ {
145
+ "epoch": 2.699055330634278,
146
+ "grad_norm": 6.64699649810791,
147
+ "learning_rate": 5.0157444894287e-06,
148
+ "loss": 1.365,
149
+ "step": 10000
150
+ },
151
+ {
152
+ "epoch": 2.834008097165992,
153
+ "grad_norm": 6.052412509918213,
154
+ "learning_rate": 2.766531713900135e-06,
155
+ "loss": 1.3799,
156
+ "step": 10500
157
+ },
158
+ {
159
+ "epoch": 2.968960863697706,
160
+ "grad_norm": 6.4499711990356445,
161
+ "learning_rate": 5.1731893837157e-07,
162
+ "loss": 1.3994,
163
+ "step": 11000
164
+ },
165
+ {
166
+ "epoch": 3.0,
167
+ "step": 11115,
168
+ "total_flos": 1.1730479287894016e+16,
169
+ "train_loss": 1.7010253453222524,
170
+ "train_runtime": 4017.837,
171
+ "train_samples_per_second": 11.064,
172
+ "train_steps_per_second": 2.766
173
+ }
174
+ ],
175
+ "logging_steps": 500,
176
+ "max_steps": 11115,
177
+ "num_input_tokens_seen": 0,
178
+ "num_train_epochs": 3,
179
+ "save_steps": 100000,
180
+ "stateful_callbacks": {
181
+ "TrainerControl": {
182
+ "args": {
183
+ "should_epoch_stop": false,
184
+ "should_evaluate": false,
185
+ "should_log": false,
186
+ "should_save": true,
187
+ "should_training_stop": true
188
+ },
189
+ "attributes": {}
190
+ }
191
+ },
192
+ "total_flos": 1.1730479287894016e+16,
193
+ "train_batch_size": 4,
194
+ "trial_name": null,
195
+ "trial_params": null
196
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eff96883c5e6a5c14c2f28312d1ff5255203c4b1777d1d571a18a799c3228ce7
3
+ size 5056