juyongjiang commited on
Commit
2cdb8d5
1 Parent(s): 3fefded

upload model checkpoints

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 CHANGED
@@ -1,3 +1,76 @@
1
- ---
2
- license: gemma
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - alignment-handbook
5
+ - generated_from_trainer
6
+ datasets:
7
+ - llama-duo/synth_summarize_dataset_dedup
8
+ base_model: google/gemma-7b
9
+ model-index:
10
+ - name: gemma7b-summarize-claude3sonnet-2k
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # gemma7b-summarize-claude3sonnet-2k
18
+
19
+ This model is a fine-tuned version of [google/gemma-7b](https://huggingface.co/google/gemma-7b) on the llama-duo/synth_summarize_dataset_dedup dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 6.6985
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: 2
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 8
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 64
48
+ - total_eval_batch_size: 16
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_ratio: 0.1
52
+ - num_epochs: 10
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:-----:|:----:|:---------------:|
58
+ | 29.9207 | 1.0 | 5 | 14.4322 |
59
+ | 18.5488 | 2.0 | 10 | 10.5610 |
60
+ | 15.0605 | 3.0 | 15 | 8.2259 |
61
+ | 13.929 | 4.0 | 20 | 7.6256 |
62
+ | 13.2624 | 5.0 | 25 | 7.3464 |
63
+ | 12.6383 | 6.0 | 30 | 7.0769 |
64
+ | 11.963 | 7.0 | 35 | 6.8804 |
65
+ | 11.3592 | 8.0 | 40 | 6.7488 |
66
+ | 11.0502 | 9.0 | 45 | 6.7065 |
67
+ | 10.9441 | 10.0 | 50 | 6.6985 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - PEFT 0.10.0
73
+ - Transformers 4.40.0
74
+ - Pytorch 2.1.2+cu121
75
+ - Datasets 2.18.0
76
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "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
+ "v_proj",
24
+ "q_proj"
25
+ ],
26
+ "task_type": "CAUSAL_LM",
27
+ "use_dora": false,
28
+ "use_rslora": false
29
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50516ee4776ea07fed4dcd9472411ebe1b78194dc73de4fd1438490af368e56c
3
+ size 6437384
all_results.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_loss": 6.698519229888916,
4
+ "eval_runtime": 0.2389,
5
+ "eval_samples": 25,
6
+ "eval_samples_per_second": 41.86,
7
+ "eval_steps_per_second": 4.186,
8
+ "total_flos": 1.52458893266518e+17,
9
+ "train_loss": 14.990281143188476,
10
+ "train_runtime": 123.5377,
11
+ "train_samples": 1984,
12
+ "train_samples_per_second": 24.851,
13
+ "train_steps_per_second": 0.405
14
+ }
config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/gemma-7b",
3
+ "architectures": [
4
+ "GemmaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 2,
9
+ "eos_token_id": 1,
10
+ "head_dim": 256,
11
+ "hidden_act": "gelu",
12
+ "hidden_activation": null,
13
+ "hidden_size": 3072,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 24576,
16
+ "max_position_embeddings": 8192,
17
+ "model_type": "gemma",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 28,
20
+ "num_key_value_heads": 16,
21
+ "pad_token_id": 0,
22
+ "quantization_config": {
23
+ "_load_in_4bit": true,
24
+ "_load_in_8bit": false,
25
+ "bnb_4bit_compute_dtype": "bfloat16",
26
+ "bnb_4bit_quant_storage": "uint8",
27
+ "bnb_4bit_quant_type": "nf4",
28
+ "bnb_4bit_use_double_quant": false,
29
+ "llm_int8_enable_fp32_cpu_offload": false,
30
+ "llm_int8_has_fp16_weight": false,
31
+ "llm_int8_skip_modules": null,
32
+ "llm_int8_threshold": 6.0,
33
+ "load_in_4bit": true,
34
+ "load_in_8bit": false,
35
+ "quant_method": "bitsandbytes"
36
+ },
37
+ "rms_norm_eps": 1e-06,
38
+ "rope_scaling": null,
39
+ "rope_theta": 10000.0,
40
+ "torch_dtype": "bfloat16",
41
+ "transformers_version": "4.40.0",
42
+ "use_cache": true,
43
+ "vocab_size": 256000
44
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "eval_loss": 6.698519229888916,
4
+ "eval_runtime": 0.2389,
5
+ "eval_samples": 25,
6
+ "eval_samples_per_second": 41.86,
7
+ "eval_steps_per_second": 4.186
8
+ }
runs/Jun13_05-21-41_gpu1-1/events.out.tfevents.1718227351.gpu1-1.426890.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40cbec684ee565b4caa4dd25133e42c4b0c9bc10f1472468317cc715adbc84c5
3
+ size 10764
runs/Jun13_05-21-41_gpu1-1/events.out.tfevents.1718227475.gpu1-1.426890.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92e9d17df221fae207f9e9caea8e5560e4cd4eeb1a70ceeb87fa10404595ef87
3
+ size 354
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": 1.52458893266518e+17,
4
+ "train_loss": 14.990281143188476,
5
+ "train_runtime": 123.5377,
6
+ "train_samples": 1984,
7
+ "train_samples_per_second": 24.851,
8
+ "train_steps_per_second": 0.405
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 10.0,
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.2,
13
+ "grad_norm": 187.0,
14
+ "learning_rate": 4e-05,
15
+ "loss": 36.0545,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "grad_norm": 59.75,
21
+ "learning_rate": 0.0002,
22
+ "loss": 29.9207,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 1.0,
27
+ "eval_loss": 14.432188034057617,
28
+ "eval_runtime": 0.2474,
29
+ "eval_samples_per_second": 40.424,
30
+ "eval_steps_per_second": 4.042,
31
+ "step": 5
32
+ },
33
+ {
34
+ "epoch": 2.0,
35
+ "grad_norm": 12.75,
36
+ "learning_rate": 0.00019396926207859084,
37
+ "loss": 18.5488,
38
+ "step": 10
39
+ },
40
+ {
41
+ "epoch": 2.0,
42
+ "eval_loss": 10.560973167419434,
43
+ "eval_runtime": 0.2335,
44
+ "eval_samples_per_second": 42.825,
45
+ "eval_steps_per_second": 4.282,
46
+ "step": 10
47
+ },
48
+ {
49
+ "epoch": 3.0,
50
+ "grad_norm": 3.53125,
51
+ "learning_rate": 0.0001766044443118978,
52
+ "loss": 15.0605,
53
+ "step": 15
54
+ },
55
+ {
56
+ "epoch": 3.0,
57
+ "eval_loss": 8.22590160369873,
58
+ "eval_runtime": 0.2341,
59
+ "eval_samples_per_second": 42.711,
60
+ "eval_steps_per_second": 4.271,
61
+ "step": 15
62
+ },
63
+ {
64
+ "epoch": 4.0,
65
+ "grad_norm": 3.3125,
66
+ "learning_rate": 0.00015000000000000001,
67
+ "loss": 13.929,
68
+ "step": 20
69
+ },
70
+ {
71
+ "epoch": 4.0,
72
+ "eval_loss": 7.625598907470703,
73
+ "eval_runtime": 0.2337,
74
+ "eval_samples_per_second": 42.796,
75
+ "eval_steps_per_second": 4.28,
76
+ "step": 20
77
+ },
78
+ {
79
+ "epoch": 5.0,
80
+ "grad_norm": 4.78125,
81
+ "learning_rate": 0.00011736481776669306,
82
+ "loss": 13.2624,
83
+ "step": 25
84
+ },
85
+ {
86
+ "epoch": 5.0,
87
+ "eval_loss": 7.346440315246582,
88
+ "eval_runtime": 0.234,
89
+ "eval_samples_per_second": 42.736,
90
+ "eval_steps_per_second": 4.274,
91
+ "step": 25
92
+ },
93
+ {
94
+ "epoch": 6.0,
95
+ "grad_norm": 6.625,
96
+ "learning_rate": 8.263518223330697e-05,
97
+ "loss": 12.6383,
98
+ "step": 30
99
+ },
100
+ {
101
+ "epoch": 6.0,
102
+ "eval_loss": 7.076879024505615,
103
+ "eval_runtime": 0.2334,
104
+ "eval_samples_per_second": 42.842,
105
+ "eval_steps_per_second": 4.284,
106
+ "step": 30
107
+ },
108
+ {
109
+ "epoch": 7.0,
110
+ "grad_norm": 9.0,
111
+ "learning_rate": 5.000000000000002e-05,
112
+ "loss": 11.963,
113
+ "step": 35
114
+ },
115
+ {
116
+ "epoch": 7.0,
117
+ "eval_loss": 6.880378723144531,
118
+ "eval_runtime": 0.2349,
119
+ "eval_samples_per_second": 42.563,
120
+ "eval_steps_per_second": 4.256,
121
+ "step": 35
122
+ },
123
+ {
124
+ "epoch": 8.0,
125
+ "grad_norm": 10.125,
126
+ "learning_rate": 2.339555568810221e-05,
127
+ "loss": 11.3592,
128
+ "step": 40
129
+ },
130
+ {
131
+ "epoch": 8.0,
132
+ "eval_loss": 6.748847007751465,
133
+ "eval_runtime": 0.2339,
134
+ "eval_samples_per_second": 42.76,
135
+ "eval_steps_per_second": 4.276,
136
+ "step": 40
137
+ },
138
+ {
139
+ "epoch": 9.0,
140
+ "grad_norm": 10.5,
141
+ "learning_rate": 6.030737921409169e-06,
142
+ "loss": 11.0502,
143
+ "step": 45
144
+ },
145
+ {
146
+ "epoch": 9.0,
147
+ "eval_loss": 6.706507682800293,
148
+ "eval_runtime": 0.2365,
149
+ "eval_samples_per_second": 42.29,
150
+ "eval_steps_per_second": 4.229,
151
+ "step": 45
152
+ },
153
+ {
154
+ "epoch": 10.0,
155
+ "grad_norm": 10.625,
156
+ "learning_rate": 0.0,
157
+ "loss": 10.9441,
158
+ "step": 50
159
+ },
160
+ {
161
+ "epoch": 10.0,
162
+ "eval_loss": 6.698519229888916,
163
+ "eval_runtime": 0.2341,
164
+ "eval_samples_per_second": 42.721,
165
+ "eval_steps_per_second": 4.272,
166
+ "step": 50
167
+ },
168
+ {
169
+ "epoch": 10.0,
170
+ "step": 50,
171
+ "total_flos": 1.52458893266518e+17,
172
+ "train_loss": 14.990281143188476,
173
+ "train_runtime": 123.5377,
174
+ "train_samples_per_second": 24.851,
175
+ "train_steps_per_second": 0.405
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": 1.52458893266518e+17,
184
+ "train_batch_size": 4,
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:cf2f33ee2866b642c792ecedeacc8557a36d136273a6ad359d4ad4eddebe8599
3
+ size 5176