shaurya-06 commited on
Commit
d91a210
1 Parent(s): b0e9627

shaurya-06/adapter

Browse files
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: Helsinki-NLP/opus-mt-ROMANCE-en
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: adapter
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # adapter
20
+
21
+ This model is a fine-tuned version of [Helsinki-NLP/opus-mt-ROMANCE-en](https://huggingface.co/Helsinki-NLP/opus-mt-ROMANCE-en) on the generator dataset.
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0002
41
+ - train_batch_size: 4
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 2
45
+ - total_train_batch_size: 8
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.03
49
+ - num_epochs: 10
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - PEFT 0.10.1.dev0
58
+ - Transformers 4.40.0
59
+ - Pytorch 2.1.0+cu121
60
+ - Datasets 2.19.0
61
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Helsinki-NLP/opus-mt-ROMANCE-en",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0.1,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 64,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "model.decoder.layers.1.fc1",
24
+ "model.encoder.layers.4.fc1",
25
+ "model.encoder.layers.0.fc1",
26
+ "model.decoder.layers.4.fc1",
27
+ "model.encoder.layers.2.fc2",
28
+ "model.encoder.layers.5.fc2",
29
+ "model.decoder.layers.0.fc2",
30
+ "model.encoder.layers.0.fc2",
31
+ "model.encoder.layers.4.fc2",
32
+ "model.encoder.layers.1.fc2",
33
+ "model.encoder.layers.2.fc1",
34
+ "model.encoder.layers.3.fc1",
35
+ "model.decoder.layers.5.fc2",
36
+ "model.decoder.layers.2.fc1",
37
+ "model.decoder.layers.1.fc2",
38
+ "model.encoder.layers.5.fc1",
39
+ "model.decoder.layers.0.fc1",
40
+ "model.decoder.layers.4.fc2",
41
+ "model.decoder.layers.3.fc2",
42
+ "model.encoder.layers.3.fc2",
43
+ "model.decoder.layers.3.fc1",
44
+ "model.decoder.layers.2.fc2",
45
+ "model.encoder.layers.1.fc1",
46
+ "model.decoder.layers.5.fc1"
47
+ ],
48
+ "task_type": "SEQ_2_SEQ_LM",
49
+ "use_dora": false,
50
+ "use_rslora": false
51
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b89ebdcdd1526c540859ee6d1c964e45224b8e532ab7c36722c70ab6c9dcd18c
3
+ size 15734784
runs/Apr28_21-20-07_757a20c23d9b/events.out.tfevents.1714339233.757a20c23d9b.200681.12 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:076250396e2235755edafaccbd6ab53a0cd5cba54917d2f978ef93efd9b8a5b3
3
+ size 10877
runs/Apr28_21-20-07_757a20c23d9b/events.out.tfevents.1714339295.757a20c23d9b.200681.13 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b909f0505cbc1155ba452655fa2bfd6dff2666c5279a0ee282adeb1ce1b39f2d
3
+ size 10877
runs/Apr28_21-20-07_757a20c23d9b/events.out.tfevents.1714339358.757a20c23d9b.200681.14 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e8da711db1bb5d8485cdd859564e4cd3b2dc7061ac606d366eb1dd0a2490cfd
3
+ size 10877
source.spm ADDED
Binary file (800 kB). View file
 
special_tokens_map.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "eos_token": "</s>",
3
+ "pad_token": "<pad>",
4
+ "unk_token": "<unk>"
5
+ }
target.spm ADDED
Binary file (779 kB). View file
 
tokenizer_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<unk>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "65000": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ }
27
+ },
28
+ "clean_up_tokenization_spaces": true,
29
+ "eos_token": "</s>",
30
+ "model_max_length": 512,
31
+ "pad_token": "<pad>",
32
+ "separate_vocabs": false,
33
+ "source_lang": "fr+fr_BE+fr_CA+fr_FR+wa+frp+oc+ca+rm+lld+fur+lij+lmo+es+es_AR+es_CL+es_CO+es_CR+es_DO+es_EC+es_ES+es_GT+es_HN+es_MX+es_NI+es_PA+es_PE+es_PR+es_SV+es_UY+es_VE+pt+pt_br+pt_BR+pt_PT+gl+lad+an+mwl+it+it_IT+co+nap+scn+vec+sc+ro+la",
34
+ "sp_model_kwargs": {},
35
+ "target_lang": "en",
36
+ "tokenizer_class": "MarianTokenizer",
37
+ "unk_token": "<unk>"
38
+ }
trainer_state.json ADDED
@@ -0,0 +1,198 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 9.6,
5
+ "eval_steps": 500,
6
+ "global_step": 120,
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.4,
13
+ "grad_norm": 0.46419957280158997,
14
+ "learning_rate": 0.0001999633286223284,
15
+ "loss": 0.5697,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.8,
20
+ "grad_norm": 0.47279733419418335,
21
+ "learning_rate": 0.00019868265225415265,
22
+ "loss": 0.581,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 1.2,
27
+ "grad_norm": 0.34838807582855225,
28
+ "learning_rate": 0.00019559521426716118,
29
+ "loss": 0.5531,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 1.6,
34
+ "grad_norm": 0.4025287628173828,
35
+ "learning_rate": 0.00019075754196709572,
36
+ "loss": 0.528,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 2.0,
41
+ "grad_norm": 0.5065444707870483,
42
+ "learning_rate": 0.0001842582073616649,
43
+ "loss": 0.5522,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 2.4,
48
+ "grad_norm": 0.47670507431030273,
49
+ "learning_rate": 0.00017621620551276366,
50
+ "loss": 0.5206,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 2.8,
55
+ "grad_norm": 0.39348119497299194,
56
+ "learning_rate": 0.00016677877587886956,
57
+ "loss": 0.5305,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 3.2,
62
+ "grad_norm": 0.5051579475402832,
63
+ "learning_rate": 0.00015611870653623825,
64
+ "loss": 0.5061,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 3.6,
69
+ "grad_norm": 0.43032407760620117,
70
+ "learning_rate": 0.00014443117063539038,
71
+ "loss": 0.4894,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 4.0,
76
+ "grad_norm": 0.42734888195991516,
77
+ "learning_rate": 0.000131930153013598,
78
+ "loss": 0.4779,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 4.4,
83
+ "grad_norm": 0.3881720006465912,
84
+ "learning_rate": 0.00011884453238783185,
85
+ "loss": 0.4904,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 4.8,
90
+ "grad_norm": 0.4254741072654724,
91
+ "learning_rate": 0.00010541389085854176,
92
+ "loss": 0.4678,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 5.2,
97
+ "grad_norm": 0.3979746997356415,
98
+ "learning_rate": 9.18841274472569e-05,
99
+ "loss": 0.4605,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 5.6,
104
+ "grad_norm": 0.5344672799110413,
105
+ "learning_rate": 7.85029559788976e-05,
106
+ "loss": 0.4667,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 6.0,
111
+ "grad_norm": 0.44632646441459656,
112
+ "learning_rate": 6.551536973720298e-05,
113
+ "loss": 0.4588,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 6.4,
118
+ "grad_norm": 0.45458871126174927,
119
+ "learning_rate": 5.3159155930021e-05,
120
+ "loss": 0.4698,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 6.8,
125
+ "grad_norm": 0.46564164757728577,
126
+ "learning_rate": 4.16605420892506e-05,
127
+ "loss": 0.4429,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 7.2,
132
+ "grad_norm": 0.4069627523422241,
133
+ "learning_rate": 3.123005411465766e-05,
134
+ "loss": 0.451,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 7.6,
139
+ "grad_norm": 0.3835998475551605,
140
+ "learning_rate": 2.205866179584084e-05,
141
+ "loss": 0.4238,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 8.0,
146
+ "grad_norm": 0.4063926935195923,
147
+ "learning_rate": 1.4314282383241096e-05,
148
+ "loss": 0.4493,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 8.4,
153
+ "grad_norm": 0.3951762318611145,
154
+ "learning_rate": 8.138706223637827e-06,
155
+ "loss": 0.4394,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 8.8,
160
+ "grad_norm": 0.408200204372406,
161
+ "learning_rate": 3.6450007480777093e-06,
162
+ "loss": 0.4367,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 9.2,
167
+ "grad_norm": 0.5846555233001709,
168
+ "learning_rate": 9.154403421193225e-07,
169
+ "loss": 0.429,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 9.6,
174
+ "grad_norm": 0.3439011573791504,
175
+ "learning_rate": 0.0,
176
+ "loss": 0.4372,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 9.6,
181
+ "step": 120,
182
+ "total_flos": 77528353996800.0,
183
+ "train_loss": 0.4846629718939463,
184
+ "train_runtime": 54.9394,
185
+ "train_samples_per_second": 18.202,
186
+ "train_steps_per_second": 2.184
187
+ }
188
+ ],
189
+ "logging_steps": 5,
190
+ "max_steps": 120,
191
+ "num_input_tokens_seen": 0,
192
+ "num_train_epochs": 10,
193
+ "save_steps": 500,
194
+ "total_flos": 77528353996800.0,
195
+ "train_batch_size": 4,
196
+ "trial_name": null,
197
+ "trial_params": null
198
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:99d9de74d1a3b9b5e5e92d75fa38b4585c6562b7ce7aaa44691e6d0f1d9a8f5b
3
+ size 5176
vocab.json ADDED
The diff for this file is too large to render. See raw diff