chansung commited on
Commit
5d48a1d
1 Parent(s): 64a4608

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-gemini1_5flash-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-gemini1_5flash-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.5520
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: 4
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 64
50
+ - total_eval_batch_size: 32
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
+ | 2.9598 | 1.0 | 7 | 3.0819 |
61
+ | 2.584 | 2.0 | 14 | 2.7799 |
62
+ | 1.8743 | 3.0 | 21 | 2.6390 |
63
+ | 1.6598 | 4.0 | 28 | 2.6231 |
64
+ | 1.4458 | 5.0 | 35 | 2.5861 |
65
+ | 1.3889 | 6.0 | 42 | 2.5646 |
66
+ | 1.3527 | 7.0 | 49 | 2.5569 |
67
+ | 1.2936 | 8.0 | 56 | 2.5532 |
68
+ | 1.2855 | 9.0 | 63 | 2.5514 |
69
+ | 1.2802 | 10.0 | 70 | 2.5520 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - PEFT 0.11.1
75
+ - Transformers 4.40.1
76
+ - Pytorch 2.2.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
+ "gate_proj",
25
+ "down_proj",
26
+ "k_proj",
27
+ "q_proj",
28
+ "o_proj",
29
+ "v_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:7a38b465d1f590a1d840b09f8e51db8f7c1ad06eb5b0fb4214b92a84a7318eee
3
+ size 19644912
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "total_flos": 5.48215128588288e+16,
4
+ "train_loss": 1.6741911002567835,
5
+ "train_runtime": 247.913,
6
+ "train_samples": 3959,
7
+ "train_samples_per_second": 17.062,
8
+ "train_steps_per_second": 0.282
9
+ }
runs/Jun05_04-35-41_7bdd13775218/events.out.tfevents.1717562165.7bdd13775218.57453.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d859fc30deca884ddf93feb8be3a3201e8fc46b3a462aa1aac51e9efedd6872
3
+ size 11560
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": 10.0,
3
+ "total_flos": 5.48215128588288e+16,
4
+ "train_loss": 1.6741911002567835,
5
+ "train_runtime": 247.913,
6
+ "train_samples": 3959,
7
+ "train_samples_per_second": 17.062,
8
+ "train_steps_per_second": 0.282
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 70,
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.14285714285714285,
13
+ "grad_norm": 2.171875,
14
+ "learning_rate": 2.857142857142857e-05,
15
+ "loss": 3.0133,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.7142857142857143,
20
+ "grad_norm": 1.96875,
21
+ "learning_rate": 0.00014285714285714287,
22
+ "loss": 2.9598,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_loss": 3.0818610191345215,
28
+ "eval_runtime": 0.5063,
29
+ "eval_samples_per_second": 19.752,
30
+ "eval_steps_per_second": 1.975,
31
+ "step": 7
32
+ },
33
+ {
34
+ "epoch": 1.4285714285714286,
35
+ "grad_norm": 1.4765625,
36
+ "learning_rate": 0.00019888308262251285,
37
+ "loss": 2.584,
38
+ "step": 10
39
+ },
40
+ {
41
+ "epoch": 2.0,
42
+ "eval_loss": 2.779895067214966,
43
+ "eval_runtime": 0.53,
44
+ "eval_samples_per_second": 18.868,
45
+ "eval_steps_per_second": 1.887,
46
+ "step": 14
47
+ },
48
+ {
49
+ "epoch": 2.142857142857143,
50
+ "grad_norm": 1.2578125,
51
+ "learning_rate": 0.00019214762118704076,
52
+ "loss": 2.1727,
53
+ "step": 15
54
+ },
55
+ {
56
+ "epoch": 2.857142857142857,
57
+ "grad_norm": 0.9609375,
58
+ "learning_rate": 0.00017971325072229226,
59
+ "loss": 1.8743,
60
+ "step": 20
61
+ },
62
+ {
63
+ "epoch": 3.0,
64
+ "eval_loss": 2.6390492916107178,
65
+ "eval_runtime": 0.5412,
66
+ "eval_samples_per_second": 18.478,
67
+ "eval_steps_per_second": 1.848,
68
+ "step": 21
69
+ },
70
+ {
71
+ "epoch": 3.571428571428571,
72
+ "grad_norm": 0.609375,
73
+ "learning_rate": 0.00016234898018587337,
74
+ "loss": 1.6598,
75
+ "step": 25
76
+ },
77
+ {
78
+ "epoch": 4.0,
79
+ "eval_loss": 2.6230721473693848,
80
+ "eval_runtime": 0.5473,
81
+ "eval_samples_per_second": 18.272,
82
+ "eval_steps_per_second": 1.827,
83
+ "step": 28
84
+ },
85
+ {
86
+ "epoch": 4.285714285714286,
87
+ "grad_norm": 0.455078125,
88
+ "learning_rate": 0.00014112871031306119,
89
+ "loss": 1.5423,
90
+ "step": 30
91
+ },
92
+ {
93
+ "epoch": 5.0,
94
+ "grad_norm": 0.5703125,
95
+ "learning_rate": 0.00011736481776669306,
96
+ "loss": 1.4458,
97
+ "step": 35
98
+ },
99
+ {
100
+ "epoch": 5.0,
101
+ "eval_loss": 2.5861191749572754,
102
+ "eval_runtime": 0.5498,
103
+ "eval_samples_per_second": 18.188,
104
+ "eval_steps_per_second": 1.819,
105
+ "step": 35
106
+ },
107
+ {
108
+ "epoch": 5.714285714285714,
109
+ "grad_norm": 0.404296875,
110
+ "learning_rate": 9.252699064135758e-05,
111
+ "loss": 1.3889,
112
+ "step": 40
113
+ },
114
+ {
115
+ "epoch": 6.0,
116
+ "eval_loss": 2.5646462440490723,
117
+ "eval_runtime": 0.5474,
118
+ "eval_samples_per_second": 18.269,
119
+ "eval_steps_per_second": 1.827,
120
+ "step": 42
121
+ },
122
+ {
123
+ "epoch": 6.428571428571429,
124
+ "grad_norm": 0.34765625,
125
+ "learning_rate": 6.815133497483157e-05,
126
+ "loss": 1.3527,
127
+ "step": 45
128
+ },
129
+ {
130
+ "epoch": 7.0,
131
+ "eval_loss": 2.556933879852295,
132
+ "eval_runtime": 0.5441,
133
+ "eval_samples_per_second": 18.378,
134
+ "eval_steps_per_second": 1.838,
135
+ "step": 49
136
+ },
137
+ {
138
+ "epoch": 7.142857142857143,
139
+ "grad_norm": 0.345703125,
140
+ "learning_rate": 4.574537361342407e-05,
141
+ "loss": 1.3118,
142
+ "step": 50
143
+ },
144
+ {
145
+ "epoch": 7.857142857142857,
146
+ "grad_norm": 0.44921875,
147
+ "learning_rate": 2.669481281701739e-05,
148
+ "loss": 1.2936,
149
+ "step": 55
150
+ },
151
+ {
152
+ "epoch": 8.0,
153
+ "eval_loss": 2.5531744956970215,
154
+ "eval_runtime": 0.5391,
155
+ "eval_samples_per_second": 18.55,
156
+ "eval_steps_per_second": 1.855,
157
+ "step": 56
158
+ },
159
+ {
160
+ "epoch": 8.571428571428571,
161
+ "grad_norm": 0.32421875,
162
+ "learning_rate": 1.2177842662977135e-05,
163
+ "loss": 1.2855,
164
+ "step": 60
165
+ },
166
+ {
167
+ "epoch": 9.0,
168
+ "eval_loss": 2.551410436630249,
169
+ "eval_runtime": 0.5405,
170
+ "eval_samples_per_second": 18.501,
171
+ "eval_steps_per_second": 1.85,
172
+ "step": 63
173
+ },
174
+ {
175
+ "epoch": 9.285714285714286,
176
+ "grad_norm": 0.244140625,
177
+ "learning_rate": 3.092271377092215e-06,
178
+ "loss": 1.2767,
179
+ "step": 65
180
+ },
181
+ {
182
+ "epoch": 10.0,
183
+ "grad_norm": 0.2431640625,
184
+ "learning_rate": 0.0,
185
+ "loss": 1.2802,
186
+ "step": 70
187
+ },
188
+ {
189
+ "epoch": 10.0,
190
+ "eval_loss": 2.5520482063293457,
191
+ "eval_runtime": 0.5385,
192
+ "eval_samples_per_second": 18.569,
193
+ "eval_steps_per_second": 1.857,
194
+ "step": 70
195
+ },
196
+ {
197
+ "epoch": 10.0,
198
+ "step": 70,
199
+ "total_flos": 5.48215128588288e+16,
200
+ "train_loss": 1.6741911002567835,
201
+ "train_runtime": 247.913,
202
+ "train_samples_per_second": 17.062,
203
+ "train_steps_per_second": 0.282
204
+ }
205
+ ],
206
+ "logging_steps": 5,
207
+ "max_steps": 70,
208
+ "num_input_tokens_seen": 0,
209
+ "num_train_epochs": 10,
210
+ "save_steps": 100,
211
+ "total_flos": 5.48215128588288e+16,
212
+ "train_batch_size": 8,
213
+ "trial_name": null,
214
+ "trial_params": null
215
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11d91c8af61fbc32d8bd78e66a477a14a1bd6371d78bee49c309c30c00443ff5
3
+ size 5176