CharlesLi commited on
Commit
aa1f916
·
verified ·
1 Parent(s): 789e200

Model save

Browse files
Files changed (4) hide show
  1. README.md +12 -7
  2. all_results.json +6 -11
  3. train_results.json +6 -6
  4. trainer_state.json +132 -42
README.md CHANGED
@@ -3,7 +3,6 @@ base_model: meta-llama/Llama-2-7b-chat-hf
3
  library_name: peft
4
  license: llama2
5
  tags:
6
- - alignment-handbook
7
  - trl
8
  - sft
9
  - generated_from_trainer
@@ -19,7 +18,7 @@ should probably proofread and complete it, then remove this comment. -->
19
 
20
  This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on the None dataset.
21
  It achieves the following results on the evaluation set:
22
- - Loss: 1.0173
23
 
24
  ## Model description
25
 
@@ -50,16 +49,22 @@ The following hyperparameters were used during training:
50
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
  - lr_scheduler_type: cosine
52
  - lr_scheduler_warmup_ratio: 0.1
53
- - training_steps: 20
54
 
55
  ### Training results
56
 
57
  | Training Loss | Epoch | Step | Validation Loss |
58
  |:-------------:|:------:|:----:|:---------------:|
59
- | 2.2067 | 0.7692 | 5 | 1.5763 |
60
- | 1.4801 | 1.5385 | 10 | 1.2011 |
61
- | 1.1763 | 2.3077 | 15 | 1.0442 |
62
- | 1.0574 | 3.0769 | 20 | 1.0173 |
 
 
 
 
 
 
63
 
64
 
65
  ### Framework versions
 
3
  library_name: peft
4
  license: llama2
5
  tags:
 
6
  - trl
7
  - sft
8
  - generated_from_trainer
 
18
 
19
  This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on the None dataset.
20
  It achieves the following results on the evaluation set:
21
+ - Loss: 0.8179
22
 
23
  ## Model description
24
 
 
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
+ - training_steps: 50
53
 
54
  ### Training results
55
 
56
  | Training Loss | Epoch | Step | Validation Loss |
57
  |:-------------:|:------:|:----:|:---------------:|
58
+ | 2.3764 | 0.7692 | 5 | 1.8176 |
59
+ | 1.6306 | 1.5385 | 10 | 1.2812 |
60
+ | 1.2054 | 2.3077 | 15 | 0.9901 |
61
+ | 0.9679 | 3.0769 | 20 | 0.8995 |
62
+ | 0.8649 | 3.8462 | 25 | 0.8679 |
63
+ | 0.8062 | 4.6154 | 30 | 0.8346 |
64
+ | 0.8035 | 5.3846 | 35 | 0.8252 |
65
+ | 0.7083 | 6.1538 | 40 | 0.8200 |
66
+ | 0.703 | 6.9231 | 45 | 0.8188 |
67
+ | 0.6968 | 7.6923 | 50 | 0.8179 |
68
 
69
 
70
  ### Framework versions
all_results.json CHANGED
@@ -1,14 +1,9 @@
1
  {
2
- "epoch": 3.076923076923077,
3
- "eval_loss": 1.0172860622406006,
4
- "eval_runtime": 1.399,
5
- "eval_samples": 20,
6
- "eval_samples_per_second": 14.296,
7
- "eval_steps_per_second": 2.144,
8
- "total_flos": 333037928448.0,
9
- "train_loss": 1.4928621768951416,
10
- "train_runtime": 83.7022,
11
  "train_samples": 100,
12
- "train_samples_per_second": 3.823,
13
- "train_steps_per_second": 0.239
14
  }
 
1
  {
2
+ "epoch": 7.6923076923076925,
3
+ "total_flos": 828551528448.0,
4
+ "train_loss": 1.0779932928085327,
5
+ "train_runtime": 175.8451,
 
 
 
 
 
6
  "train_samples": 100,
7
+ "train_samples_per_second": 4.549,
8
+ "train_steps_per_second": 0.284
9
  }
train_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
- "epoch": 3.076923076923077,
3
- "total_flos": 333037928448.0,
4
- "train_loss": 1.4928621768951416,
5
- "train_runtime": 83.7022,
6
  "train_samples": 100,
7
- "train_samples_per_second": 3.823,
8
- "train_steps_per_second": 0.239
9
  }
 
1
  {
2
+ "epoch": 7.6923076923076925,
3
+ "total_flos": 828551528448.0,
4
+ "train_loss": 1.0779932928085327,
5
+ "train_runtime": 175.8451,
6
  "train_samples": 100,
7
+ "train_samples_per_second": 4.549,
8
+ "train_steps_per_second": 0.284
9
  }
trainer_state.json CHANGED
@@ -1,94 +1,184 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": 3.076923076923077,
5
  "eval_steps": 5,
6
- "global_step": 20,
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.15384615384615385,
13
- "grad_norm": 1.2541205815476613,
14
- "learning_rate": 0.0001,
15
  "loss": 2.461,
16
  "step": 1
17
  },
18
  {
19
  "epoch": 0.7692307692307693,
20
- "grad_norm": 0.7466091165855181,
21
- "learning_rate": 0.00018660254037844388,
22
- "loss": 2.2067,
23
  "step": 5
24
  },
25
  {
26
  "epoch": 0.7692307692307693,
27
- "eval_loss": 1.5763294696807861,
28
- "eval_runtime": 2.6269,
29
- "eval_samples_per_second": 7.613,
30
- "eval_steps_per_second": 1.142,
31
  "step": 5
32
  },
33
  {
34
  "epoch": 1.5384615384615383,
35
- "grad_norm": 0.45251286926633655,
36
- "learning_rate": 0.00011736481776669306,
37
- "loss": 1.4801,
38
  "step": 10
39
  },
40
  {
41
  "epoch": 1.5384615384615383,
42
- "eval_loss": 1.2010847330093384,
43
- "eval_runtime": 1.3699,
44
- "eval_samples_per_second": 14.6,
45
- "eval_steps_per_second": 2.19,
46
  "step": 10
47
  },
48
  {
49
  "epoch": 2.3076923076923075,
50
- "grad_norm": 0.36540034292515755,
51
- "learning_rate": 3.5721239031346066e-05,
52
- "loss": 1.1763,
53
  "step": 15
54
  },
55
  {
56
  "epoch": 2.3076923076923075,
57
- "eval_loss": 1.0442019701004028,
58
- "eval_runtime": 1.3681,
59
- "eval_samples_per_second": 14.619,
60
- "eval_steps_per_second": 2.193,
61
  "step": 15
62
  },
63
  {
64
  "epoch": 3.076923076923077,
65
- "grad_norm": 0.39310475116940774,
66
- "learning_rate": 0.0,
67
- "loss": 1.0574,
68
  "step": 20
69
  },
70
  {
71
  "epoch": 3.076923076923077,
72
- "eval_loss": 1.0172860622406006,
73
- "eval_runtime": 1.3674,
74
- "eval_samples_per_second": 14.626,
75
- "eval_steps_per_second": 2.194,
76
  "step": 20
77
  },
78
  {
79
- "epoch": 3.076923076923077,
80
- "step": 20,
81
- "total_flos": 333037928448.0,
82
- "train_loss": 1.4928621768951416,
83
- "train_runtime": 83.7022,
84
- "train_samples_per_second": 3.823,
85
- "train_steps_per_second": 0.239
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  }
87
  ],
88
  "logging_steps": 5,
89
- "max_steps": 20,
90
  "num_input_tokens_seen": 0,
91
- "num_train_epochs": 4,
92
  "save_steps": 1000,
93
  "stateful_callbacks": {
94
  "TrainerControl": {
@@ -102,7 +192,7 @@
102
  "attributes": {}
103
  }
104
  },
105
- "total_flos": 333037928448.0,
106
  "train_batch_size": 4,
107
  "trial_name": null,
108
  "trial_params": null
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 7.6923076923076925,
5
  "eval_steps": 5,
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.15384615384615385,
13
+ "grad_norm": 1.2540255213989835,
14
+ "learning_rate": 4e-05,
15
  "loss": 2.461,
16
  "step": 1
17
  },
18
  {
19
  "epoch": 0.7692307692307693,
20
+ "grad_norm": 1.2283767946925122,
21
+ "learning_rate": 0.0002,
22
+ "loss": 2.3764,
23
  "step": 5
24
  },
25
  {
26
  "epoch": 0.7692307692307693,
27
+ "eval_loss": 1.8175537586212158,
28
+ "eval_runtime": 2.6465,
29
+ "eval_samples_per_second": 7.557,
30
+ "eval_steps_per_second": 1.134,
31
  "step": 5
32
  },
33
  {
34
  "epoch": 1.5384615384615383,
35
+ "grad_norm": 0.5222933366890941,
36
+ "learning_rate": 0.00019396926207859084,
37
+ "loss": 1.6306,
38
  "step": 10
39
  },
40
  {
41
  "epoch": 1.5384615384615383,
42
+ "eval_loss": 1.2812074422836304,
43
+ "eval_runtime": 1.3813,
44
+ "eval_samples_per_second": 14.48,
45
+ "eval_steps_per_second": 2.172,
46
  "step": 10
47
  },
48
  {
49
  "epoch": 2.3076923076923075,
50
+ "grad_norm": 0.40273382098746935,
51
+ "learning_rate": 0.0001766044443118978,
52
+ "loss": 1.2054,
53
  "step": 15
54
  },
55
  {
56
  "epoch": 2.3076923076923075,
57
+ "eval_loss": 0.9901388883590698,
58
+ "eval_runtime": 1.3581,
59
+ "eval_samples_per_second": 14.726,
60
+ "eval_steps_per_second": 2.209,
61
  "step": 15
62
  },
63
  {
64
  "epoch": 3.076923076923077,
65
+ "grad_norm": 0.5929366580267508,
66
+ "learning_rate": 0.00015000000000000001,
67
+ "loss": 0.9679,
68
  "step": 20
69
  },
70
  {
71
  "epoch": 3.076923076923077,
72
+ "eval_loss": 0.8994835019111633,
73
+ "eval_runtime": 1.3574,
74
+ "eval_samples_per_second": 14.734,
75
+ "eval_steps_per_second": 2.21,
76
  "step": 20
77
  },
78
  {
79
+ "epoch": 3.8461538461538463,
80
+ "grad_norm": 0.34496621838110464,
81
+ "learning_rate": 0.00011736481776669306,
82
+ "loss": 0.8649,
83
+ "step": 25
84
+ },
85
+ {
86
+ "epoch": 3.8461538461538463,
87
+ "eval_loss": 0.867924690246582,
88
+ "eval_runtime": 1.355,
89
+ "eval_samples_per_second": 14.76,
90
+ "eval_steps_per_second": 2.214,
91
+ "step": 25
92
+ },
93
+ {
94
+ "epoch": 4.615384615384615,
95
+ "grad_norm": 0.2439958306613565,
96
+ "learning_rate": 8.263518223330697e-05,
97
+ "loss": 0.8062,
98
+ "step": 30
99
+ },
100
+ {
101
+ "epoch": 4.615384615384615,
102
+ "eval_loss": 0.8346365690231323,
103
+ "eval_runtime": 1.3475,
104
+ "eval_samples_per_second": 14.843,
105
+ "eval_steps_per_second": 2.226,
106
+ "step": 30
107
+ },
108
+ {
109
+ "epoch": 5.384615384615385,
110
+ "grad_norm": 0.4208553153399377,
111
+ "learning_rate": 5.000000000000002e-05,
112
+ "loss": 0.8035,
113
+ "step": 35
114
+ },
115
+ {
116
+ "epoch": 5.384615384615385,
117
+ "eval_loss": 0.8252410888671875,
118
+ "eval_runtime": 1.3524,
119
+ "eval_samples_per_second": 14.789,
120
+ "eval_steps_per_second": 2.218,
121
+ "step": 35
122
+ },
123
+ {
124
+ "epoch": 6.153846153846154,
125
+ "grad_norm": 0.21047147413474968,
126
+ "learning_rate": 2.339555568810221e-05,
127
+ "loss": 0.7083,
128
+ "step": 40
129
+ },
130
+ {
131
+ "epoch": 6.153846153846154,
132
+ "eval_loss": 0.8200315237045288,
133
+ "eval_runtime": 1.3534,
134
+ "eval_samples_per_second": 14.778,
135
+ "eval_steps_per_second": 2.217,
136
+ "step": 40
137
+ },
138
+ {
139
+ "epoch": 6.923076923076923,
140
+ "grad_norm": 0.25331336485020006,
141
+ "learning_rate": 6.030737921409169e-06,
142
+ "loss": 0.703,
143
+ "step": 45
144
+ },
145
+ {
146
+ "epoch": 6.923076923076923,
147
+ "eval_loss": 0.8187538981437683,
148
+ "eval_runtime": 1.348,
149
+ "eval_samples_per_second": 14.837,
150
+ "eval_steps_per_second": 2.226,
151
+ "step": 45
152
+ },
153
+ {
154
+ "epoch": 7.6923076923076925,
155
+ "grad_norm": 0.2588396412267122,
156
+ "learning_rate": 0.0,
157
+ "loss": 0.6968,
158
+ "step": 50
159
+ },
160
+ {
161
+ "epoch": 7.6923076923076925,
162
+ "eval_loss": 0.8178739547729492,
163
+ "eval_runtime": 1.3503,
164
+ "eval_samples_per_second": 14.811,
165
+ "eval_steps_per_second": 2.222,
166
+ "step": 50
167
+ },
168
+ {
169
+ "epoch": 7.6923076923076925,
170
+ "step": 50,
171
+ "total_flos": 828551528448.0,
172
+ "train_loss": 1.0779932928085327,
173
+ "train_runtime": 175.8451,
174
+ "train_samples_per_second": 4.549,
175
+ "train_steps_per_second": 0.284
176
  }
177
  ],
178
  "logging_steps": 5,
179
+ "max_steps": 50,
180
  "num_input_tokens_seen": 0,
181
+ "num_train_epochs": 9,
182
  "save_steps": 1000,
183
  "stateful_callbacks": {
184
  "TrainerControl": {
 
192
  "attributes": {}
193
  }
194
  },
195
+ "total_flos": 828551528448.0,
196
  "train_batch_size": 4,
197
  "trial_name": null,
198
  "trial_params": null