chansung commited on
Commit
ed79e38
1 Parent(s): a066488

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-7b
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: gemma-7b-sft-qlora-no-robots2
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
+ # gemma-7b-sft-qlora-no-robots2
20
+
21
+ This model is a fine-tuned version of [google/gemma-7b](https://huggingface.co/google/gemma-7b) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.3843
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: 2
44
+ - eval_batch_size: 2
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 4
48
+ - gradient_accumulation_steps: 2
49
+ - total_train_batch_size: 16
50
+ - total_eval_batch_size: 8
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
+ | 20.4692 | 0.91 | 5 | 7.4399 |
61
+ | 12.9912 | 2.0 | 11 | 6.6074 |
62
+ | 10.1734 | 2.91 | 16 | 6.0225 |
63
+ | 9.8269 | 4.0 | 22 | 3.5503 |
64
+ | 5.2353 | 4.91 | 27 | 1.6505 |
65
+ | 1.6367 | 6.0 | 33 | 1.4912 |
66
+ | 1.4714 | 6.91 | 38 | 1.4201 |
67
+ | 1.3916 | 8.0 | 44 | 1.3933 |
68
+ | 1.2832 | 8.91 | 49 | 1.3882 |
69
+ | 1.2863 | 9.09 | 50 | 1.3843 |
70
+
71
+
72
+ ### Framework versions
73
+
74
+ - PEFT 0.7.1
75
+ - Transformers 4.39.3
76
+ - Pytorch 2.2.2+cu121
77
+ - Datasets 2.18.0
78
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/gemma-7b",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 16,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 16,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "gate_proj",
23
+ "v_proj",
24
+ "q_proj",
25
+ "up_proj",
26
+ "o_proj",
27
+ "k_proj",
28
+ "down_proj"
29
+ ],
30
+ "task_type": "CAUSAL_LM"
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:158f6434388d74e740a403f60fbe1f0ba8fb3c2780d68868792155e72c59531c
3
+ size 100060536
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.09,
3
+ "train_loss": 6.66651237487793,
4
+ "train_runtime": 191.2414,
5
+ "train_samples": 926,
6
+ "train_samples_per_second": 4.602,
7
+ "train_steps_per_second": 0.261
8
+ }
runs/Apr11_10-57-09_deep-diver-main-stupid-firefox-1-0-0/events.out.tfevents.1712847546.deep-diver-main-stupid-firefox-1-0-0.520.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:897f667347f0fbc13396f5e91b2c12e95c64395b026720a6c147f32d425cfa57
3
+ size 10672
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:22449cb9ef4bad0db7dd93b46ddff7ab7d6a654dd4f903e130ddb6361eac3af5
3
+ size 17477473
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,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 9.09,
3
+ "train_loss": 6.66651237487793,
4
+ "train_runtime": 191.2414,
5
+ "train_samples": 926,
6
+ "train_samples_per_second": 4.602,
7
+ "train_steps_per_second": 0.261
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 9.090909090909092,
5
+ "eval_steps": 500,
6
+ "global_step": 50,
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.18,
13
+ "grad_norm": 220.0,
14
+ "learning_rate": 4e-05,
15
+ "loss": 24.9691,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.91,
20
+ "grad_norm": 21.75,
21
+ "learning_rate": 0.0002,
22
+ "loss": 20.4692,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.91,
27
+ "eval_loss": 7.439934253692627,
28
+ "eval_runtime": 0.5593,
29
+ "eval_samples_per_second": 3.576,
30
+ "eval_steps_per_second": 1.788,
31
+ "step": 5
32
+ },
33
+ {
34
+ "epoch": 1.82,
35
+ "grad_norm": 22.875,
36
+ "learning_rate": 0.00019396926207859084,
37
+ "loss": 12.9912,
38
+ "step": 10
39
+ },
40
+ {
41
+ "epoch": 2.0,
42
+ "eval_loss": 6.607400894165039,
43
+ "eval_runtime": 0.5606,
44
+ "eval_samples_per_second": 3.567,
45
+ "eval_steps_per_second": 1.784,
46
+ "step": 11
47
+ },
48
+ {
49
+ "epoch": 2.73,
50
+ "grad_norm": 3.96875,
51
+ "learning_rate": 0.0001766044443118978,
52
+ "loss": 10.1734,
53
+ "step": 15
54
+ },
55
+ {
56
+ "epoch": 2.91,
57
+ "eval_loss": 6.02254581451416,
58
+ "eval_runtime": 0.5738,
59
+ "eval_samples_per_second": 3.485,
60
+ "eval_steps_per_second": 1.743,
61
+ "step": 16
62
+ },
63
+ {
64
+ "epoch": 3.64,
65
+ "grad_norm": 13.875,
66
+ "learning_rate": 0.00015000000000000001,
67
+ "loss": 9.8269,
68
+ "step": 20
69
+ },
70
+ {
71
+ "epoch": 4.0,
72
+ "eval_loss": 3.550281047821045,
73
+ "eval_runtime": 0.5671,
74
+ "eval_samples_per_second": 3.527,
75
+ "eval_steps_per_second": 1.763,
76
+ "step": 22
77
+ },
78
+ {
79
+ "epoch": 4.55,
80
+ "grad_norm": 22.5,
81
+ "learning_rate": 0.00011736481776669306,
82
+ "loss": 5.2353,
83
+ "step": 25
84
+ },
85
+ {
86
+ "epoch": 4.91,
87
+ "eval_loss": 1.6504679918289185,
88
+ "eval_runtime": 0.5777,
89
+ "eval_samples_per_second": 3.462,
90
+ "eval_steps_per_second": 1.731,
91
+ "step": 27
92
+ },
93
+ {
94
+ "epoch": 5.45,
95
+ "grad_norm": 3.078125,
96
+ "learning_rate": 8.263518223330697e-05,
97
+ "loss": 1.6367,
98
+ "step": 30
99
+ },
100
+ {
101
+ "epoch": 6.0,
102
+ "eval_loss": 1.4912230968475342,
103
+ "eval_runtime": 0.5649,
104
+ "eval_samples_per_second": 3.54,
105
+ "eval_steps_per_second": 1.77,
106
+ "step": 33
107
+ },
108
+ {
109
+ "epoch": 6.36,
110
+ "grad_norm": 1.109375,
111
+ "learning_rate": 5.000000000000002e-05,
112
+ "loss": 1.4714,
113
+ "step": 35
114
+ },
115
+ {
116
+ "epoch": 6.91,
117
+ "eval_loss": 1.420060157775879,
118
+ "eval_runtime": 0.5812,
119
+ "eval_samples_per_second": 3.441,
120
+ "eval_steps_per_second": 1.72,
121
+ "step": 38
122
+ },
123
+ {
124
+ "epoch": 7.27,
125
+ "grad_norm": 1.1171875,
126
+ "learning_rate": 2.339555568810221e-05,
127
+ "loss": 1.3916,
128
+ "step": 40
129
+ },
130
+ {
131
+ "epoch": 8.0,
132
+ "eval_loss": 1.3933132886886597,
133
+ "eval_runtime": 0.5657,
134
+ "eval_samples_per_second": 3.536,
135
+ "eval_steps_per_second": 1.768,
136
+ "step": 44
137
+ },
138
+ {
139
+ "epoch": 8.18,
140
+ "grad_norm": 0.95703125,
141
+ "learning_rate": 6.030737921409169e-06,
142
+ "loss": 1.2832,
143
+ "step": 45
144
+ },
145
+ {
146
+ "epoch": 8.91,
147
+ "eval_loss": 1.3881534337997437,
148
+ "eval_runtime": 0.5859,
149
+ "eval_samples_per_second": 3.414,
150
+ "eval_steps_per_second": 1.707,
151
+ "step": 49
152
+ },
153
+ {
154
+ "epoch": 9.09,
155
+ "grad_norm": 0.83203125,
156
+ "learning_rate": 0.0,
157
+ "loss": 1.2863,
158
+ "step": 50
159
+ },
160
+ {
161
+ "epoch": 9.09,
162
+ "eval_loss": 1.3843274116516113,
163
+ "eval_runtime": 0.5652,
164
+ "eval_samples_per_second": 3.539,
165
+ "eval_steps_per_second": 1.769,
166
+ "step": 50
167
+ },
168
+ {
169
+ "epoch": 9.09,
170
+ "step": 50,
171
+ "total_flos": 7.66894376306606e+16,
172
+ "train_loss": 6.66651237487793,
173
+ "train_runtime": 191.2414,
174
+ "train_samples_per_second": 4.602,
175
+ "train_steps_per_second": 0.261
176
+ }
177
+ ],
178
+ "logging_steps": 5,
179
+ "max_steps": 50,
180
+ "num_input_tokens_seen": 0,
181
+ "num_train_epochs": 10,
182
+ "save_steps": 100,
183
+ "total_flos": 7.66894376306606e+16,
184
+ "train_batch_size": 2,
185
+ "trial_name": null,
186
+ "trial_params": null
187
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae6561d9a2ba6b19873852cb3e8304930591bbee7c5406b15953f10b919f4e65
3
+ size 5112