chansung commited on
Commit
3bbaad7
1 Parent(s): 4bc792d

Model save

Browse files
.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 ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: google/gemma-2b
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: gemma2b-summarize-gpt4o-4k
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
+ # gemma2b-summarize-gpt4o-4k
20
+
21
+ This model is a fine-tuned version of [google/gemma-2b](https://huggingface.co/google/gemma-2b) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 2.5678
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 0.0002
43
+ - train_batch_size: 8
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 3
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 48
50
+ - total_eval_batch_size: 24
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_ratio: 0.1
54
+ - num_epochs: 10
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss |
59
+ |:-------------:|:------:|:----:|:---------------:|
60
+ | 3.0546 | 0.9474 | 9 | 2.9560 |
61
+ | 2.2821 | 2.0 | 19 | 2.6966 |
62
+ | 1.8527 | 2.9474 | 28 | 2.6031 |
63
+ | 1.5789 | 4.0 | 38 | 2.5802 |
64
+ | 1.4487 | 4.9474 | 47 | 2.5688 |
65
+ | 1.3708 | 6.0 | 57 | 2.5638 |
66
+ | 1.3286 | 6.9474 | 66 | 2.5667 |
67
+ | 1.3104 | 8.0 | 76 | 2.5672 |
68
+ | 1.3046 | 8.9474 | 85 | 2.5674 |
69
+ | 1.3032 | 9.4737 | 90 | 2.5678 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - PEFT 0.11.1
75
+ - Transformers 4.41.2
76
+ - Pytorch 2.3.0+cu121
77
+ - Datasets 2.19.2
78
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-2b",
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.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "up_proj",
24
+ "k_proj",
25
+ "down_proj",
26
+ "q_proj",
27
+ "gate_proj",
28
+ "v_proj",
29
+ "o_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69abfe6a90b925dfb45f5ca591fe0a95d2331bc71651363ad88087326500e2fe
3
+ size 19644912
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.473684210526315,
3
+ "total_flos": 5.286360054444851e+16,
4
+ "train_loss": 1.6763220760557387,
5
+ "train_runtime": 490.2927,
6
+ "train_samples": 4038,
7
+ "train_samples_per_second": 8.933,
8
+ "train_steps_per_second": 0.184
9
+ }
runs/Jun05_13-46-03_user-HP-Z8-Fury-G5-Workstation-Desktop-PC/events.out.tfevents.1717562777.user-HP-Z8-Fury-G5-Workstation-Desktop-PC.25140.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00b2057ac5a6380df9873efa517e142b5b98dfcfd36fc50d3fa29793dbdac71e
3
+ size 12534
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<bos>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<eos>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<pad>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "unk_token": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:322a5f52ab5cab196761ab397a022d6fa3a2e1418585e532bb6efb2fedd2ae94
3
+ size 17477501
tokenizer_config.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<pad>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<eos>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "<bos>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "3": {
30
+ "content": "<unk>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "106": {
38
+ "content": "<|im_start|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "107": {
46
+ "content": "<|im_end|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ }
53
+ },
54
+ "additional_special_tokens": [
55
+ "<|im_start|>",
56
+ "<|im_end|>"
57
+ ],
58
+ "bos_token": "<bos>",
59
+ "chat_template": "{% if messages[0]['role'] == 'user' or messages[0]['role'] == 'system' %}{{ bos_token }}{% endif %}{% for message in messages %}{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% elif messages[-1]['role'] == 'assistant' %}{{ eos_token }}{% endif %}",
60
+ "clean_up_tokenization_spaces": false,
61
+ "eos_token": "<eos>",
62
+ "legacy": null,
63
+ "model_max_length": 2048,
64
+ "pad_token": "<pad>",
65
+ "sp_model_kwargs": {},
66
+ "spaces_between_special_tokens": false,
67
+ "tokenizer_class": "GemmaTokenizer",
68
+ "unk_token": "<unk>",
69
+ "use_default_system_prompt": false
70
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.473684210526315,
3
+ "total_flos": 5.286360054444851e+16,
4
+ "train_loss": 1.6763220760557387,
5
+ "train_runtime": 490.2927,
6
+ "train_samples": 4038,
7
+ "train_samples_per_second": 8.933,
8
+ "train_steps_per_second": 0.184
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,255 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 9.473684210526315,
5
+ "eval_steps": 500,
6
+ "global_step": 90,
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.10526315789473684,
13
+ "grad_norm": 2.171875,
14
+ "learning_rate": 2.2222222222222223e-05,
15
+ "loss": 3.0858,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.5263157894736842,
20
+ "grad_norm": 1.84375,
21
+ "learning_rate": 0.00011111111111111112,
22
+ "loss": 3.0546,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.9473684210526315,
27
+ "eval_loss": 2.956000804901123,
28
+ "eval_runtime": 0.5468,
29
+ "eval_samples_per_second": 18.288,
30
+ "eval_steps_per_second": 1.829,
31
+ "step": 9
32
+ },
33
+ {
34
+ "epoch": 1.0526315789473684,
35
+ "grad_norm": 1.8359375,
36
+ "learning_rate": 0.00019992479525042303,
37
+ "loss": 2.6964,
38
+ "step": 10
39
+ },
40
+ {
41
+ "epoch": 1.5789473684210527,
42
+ "grad_norm": 1.3828125,
43
+ "learning_rate": 0.00019730448705798239,
44
+ "loss": 2.2821,
45
+ "step": 15
46
+ },
47
+ {
48
+ "epoch": 2.0,
49
+ "eval_loss": 2.696643829345703,
50
+ "eval_runtime": 0.5537,
51
+ "eval_samples_per_second": 18.061,
52
+ "eval_steps_per_second": 1.806,
53
+ "step": 19
54
+ },
55
+ {
56
+ "epoch": 2.1052631578947367,
57
+ "grad_norm": 0.87890625,
58
+ "learning_rate": 0.0001910362940966147,
59
+ "loss": 2.0545,
60
+ "step": 20
61
+ },
62
+ {
63
+ "epoch": 2.6315789473684212,
64
+ "grad_norm": 0.9921875,
65
+ "learning_rate": 0.00018135520702629675,
66
+ "loss": 1.8527,
67
+ "step": 25
68
+ },
69
+ {
70
+ "epoch": 2.9473684210526314,
71
+ "eval_loss": 2.6030924320220947,
72
+ "eval_runtime": 0.5536,
73
+ "eval_samples_per_second": 18.063,
74
+ "eval_steps_per_second": 1.806,
75
+ "step": 28
76
+ },
77
+ {
78
+ "epoch": 3.1578947368421053,
79
+ "grad_norm": 0.431640625,
80
+ "learning_rate": 0.0001686241637868734,
81
+ "loss": 1.6976,
82
+ "step": 30
83
+ },
84
+ {
85
+ "epoch": 3.6842105263157894,
86
+ "grad_norm": 0.5,
87
+ "learning_rate": 0.00015332044328016914,
88
+ "loss": 1.5789,
89
+ "step": 35
90
+ },
91
+ {
92
+ "epoch": 4.0,
93
+ "eval_loss": 2.58021879196167,
94
+ "eval_runtime": 0.5505,
95
+ "eval_samples_per_second": 18.165,
96
+ "eval_steps_per_second": 1.817,
97
+ "step": 38
98
+ },
99
+ {
100
+ "epoch": 4.2105263157894735,
101
+ "grad_norm": 0.43359375,
102
+ "learning_rate": 0.00013601777248047105,
103
+ "loss": 1.5127,
104
+ "step": 40
105
+ },
106
+ {
107
+ "epoch": 4.7368421052631575,
108
+ "grad_norm": 0.3984375,
109
+ "learning_rate": 0.00011736481776669306,
110
+ "loss": 1.4487,
111
+ "step": 45
112
+ },
113
+ {
114
+ "epoch": 4.947368421052632,
115
+ "eval_loss": 2.5688371658325195,
116
+ "eval_runtime": 0.555,
117
+ "eval_samples_per_second": 18.017,
118
+ "eval_steps_per_second": 1.802,
119
+ "step": 47
120
+ },
121
+ {
122
+ "epoch": 5.2631578947368425,
123
+ "grad_norm": 0.271484375,
124
+ "learning_rate": 9.806086682281758e-05,
125
+ "loss": 1.4087,
126
+ "step": 50
127
+ },
128
+ {
129
+ "epoch": 5.7894736842105265,
130
+ "grad_norm": 0.265625,
131
+ "learning_rate": 7.882961277705895e-05,
132
+ "loss": 1.3708,
133
+ "step": 55
134
+ },
135
+ {
136
+ "epoch": 6.0,
137
+ "eval_loss": 2.5638375282287598,
138
+ "eval_runtime": 0.5463,
139
+ "eval_samples_per_second": 18.305,
140
+ "eval_steps_per_second": 1.831,
141
+ "step": 57
142
+ },
143
+ {
144
+ "epoch": 6.315789473684211,
145
+ "grad_norm": 0.310546875,
146
+ "learning_rate": 6.039202339608432e-05,
147
+ "loss": 1.3437,
148
+ "step": 60
149
+ },
150
+ {
151
+ "epoch": 6.842105263157895,
152
+ "grad_norm": 0.25390625,
153
+ "learning_rate": 4.343931245134616e-05,
154
+ "loss": 1.3286,
155
+ "step": 65
156
+ },
157
+ {
158
+ "epoch": 6.947368421052632,
159
+ "eval_loss": 2.5667476654052734,
160
+ "eval_runtime": 0.5585,
161
+ "eval_samples_per_second": 17.905,
162
+ "eval_steps_per_second": 1.79,
163
+ "step": 66
164
+ },
165
+ {
166
+ "epoch": 7.368421052631579,
167
+ "grad_norm": 0.2275390625,
168
+ "learning_rate": 2.8607026544210114e-05,
169
+ "loss": 1.3139,
170
+ "step": 70
171
+ },
172
+ {
173
+ "epoch": 7.894736842105263,
174
+ "grad_norm": 0.2216796875,
175
+ "learning_rate": 1.6451218858706374e-05,
176
+ "loss": 1.3104,
177
+ "step": 75
178
+ },
179
+ {
180
+ "epoch": 8.0,
181
+ "eval_loss": 2.5672240257263184,
182
+ "eval_runtime": 0.5487,
183
+ "eval_samples_per_second": 18.224,
184
+ "eval_steps_per_second": 1.822,
185
+ "step": 76
186
+ },
187
+ {
188
+ "epoch": 8.421052631578947,
189
+ "grad_norm": 0.208984375,
190
+ "learning_rate": 7.427603073110967e-06,
191
+ "loss": 1.3054,
192
+ "step": 80
193
+ },
194
+ {
195
+ "epoch": 8.947368421052632,
196
+ "grad_norm": 0.2138671875,
197
+ "learning_rate": 1.874468937261531e-06,
198
+ "loss": 1.3046,
199
+ "step": 85
200
+ },
201
+ {
202
+ "epoch": 8.947368421052632,
203
+ "eval_loss": 2.567439556121826,
204
+ "eval_runtime": 0.561,
205
+ "eval_samples_per_second": 17.827,
206
+ "eval_steps_per_second": 1.783,
207
+ "step": 85
208
+ },
209
+ {
210
+ "epoch": 9.473684210526315,
211
+ "grad_norm": 0.212890625,
212
+ "learning_rate": 0.0,
213
+ "loss": 1.3032,
214
+ "step": 90
215
+ },
216
+ {
217
+ "epoch": 9.473684210526315,
218
+ "eval_loss": 2.5678367614746094,
219
+ "eval_runtime": 0.5511,
220
+ "eval_samples_per_second": 18.145,
221
+ "eval_steps_per_second": 1.814,
222
+ "step": 90
223
+ },
224
+ {
225
+ "epoch": 9.473684210526315,
226
+ "step": 90,
227
+ "total_flos": 5.286360054444851e+16,
228
+ "train_loss": 1.6763220760557387,
229
+ "train_runtime": 490.2927,
230
+ "train_samples_per_second": 8.933,
231
+ "train_steps_per_second": 0.184
232
+ }
233
+ ],
234
+ "logging_steps": 5,
235
+ "max_steps": 90,
236
+ "num_input_tokens_seen": 0,
237
+ "num_train_epochs": 10,
238
+ "save_steps": 100,
239
+ "stateful_callbacks": {
240
+ "TrainerControl": {
241
+ "args": {
242
+ "should_epoch_stop": false,
243
+ "should_evaluate": false,
244
+ "should_log": false,
245
+ "should_save": false,
246
+ "should_training_stop": false
247
+ },
248
+ "attributes": {}
249
+ }
250
+ },
251
+ "total_flos": 5.286360054444851e+16,
252
+ "train_batch_size": 8,
253
+ "trial_name": null,
254
+ "trial_params": null
255
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f16542867eb734726203d3dec0176dbd7f94c244e5f06ebef20ea52242d691c4
3
+ size 5304