scottsuk0306 commited on
Commit
c84ea9d
1 Parent(s): 777b4b6

Model save

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: alignment-handbook/zephyr-7b-sft-full
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: zephyr-7b-math-case-8
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
+ # zephyr-7b-math-case-8
20
+
21
+ This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.0276
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: 1e-05
43
+ - train_batch_size: 8
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - distributed_type: multi-GPU
47
+ - num_devices: 4
48
+ - total_train_batch_size: 32
49
+ - total_eval_batch_size: 32
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: cosine
52
+ - lr_scheduler_warmup_ratio: 0.03
53
+ - num_epochs: 10
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss |
58
+ |:-------------:|:-----:|:----:|:---------------:|
59
+ | 1.0201 | 1.0 | 4 | 0.8704 |
60
+ | 0.9676 | 2.0 | 8 | 0.6483 |
61
+ | 0.7053 | 3.0 | 12 | 0.4601 |
62
+ | 0.4784 | 4.0 | 16 | 0.2716 |
63
+ | 0.2487 | 5.0 | 20 | 0.1375 |
64
+ | 0.2487 | 6.0 | 24 | 0.0688 |
65
+ | 0.1048 | 7.0 | 28 | 0.0426 |
66
+ | 0.0523 | 8.0 | 32 | 0.0332 |
67
+ | 0.0354 | 9.0 | 36 | 0.0287 |
68
+ | 0.0285 | 10.0 | 40 | 0.0276 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.44.2
74
+ - Pytorch 2.4.1+cu121
75
+ - Datasets 3.0.0
76
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "total_flos": 8375186227200.0,
4
+ "train_loss": 0.3289382763206959,
5
+ "train_runtime": 602.9677,
6
+ "train_samples": 2000,
7
+ "train_samples_per_second": 1.775,
8
+ "train_steps_per_second": 0.066
9
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.44.2"
6
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "total_flos": 8375186227200.0,
4
+ "train_loss": 0.3289382763206959,
5
+ "train_runtime": 602.9677,
6
+ "train_samples": 2000,
7
+ "train_samples_per_second": 1.775,
8
+ "train_steps_per_second": 0.066
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 40,
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.25,
13
+ "grad_norm": 36.86391077634519,
14
+ "learning_rate": 5e-06,
15
+ "loss": 1.0201,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_loss": 0.8703737258911133,
21
+ "eval_runtime": 11.8087,
22
+ "eval_samples_per_second": 9.061,
23
+ "eval_steps_per_second": 0.339,
24
+ "step": 4
25
+ },
26
+ {
27
+ "epoch": 1.25,
28
+ "grad_norm": 6.912887702306342,
29
+ "learning_rate": 9.847001329696653e-06,
30
+ "loss": 0.9676,
31
+ "step": 5
32
+ },
33
+ {
34
+ "epoch": 2.0,
35
+ "eval_loss": 0.6482987403869629,
36
+ "eval_runtime": 10.5317,
37
+ "eval_samples_per_second": 10.16,
38
+ "eval_steps_per_second": 0.38,
39
+ "step": 8
40
+ },
41
+ {
42
+ "epoch": 2.5,
43
+ "grad_norm": 3.426473054986459,
44
+ "learning_rate": 8.94570254698197e-06,
45
+ "loss": 0.7053,
46
+ "step": 10
47
+ },
48
+ {
49
+ "epoch": 3.0,
50
+ "eval_loss": 0.4600563645362854,
51
+ "eval_runtime": 10.5697,
52
+ "eval_samples_per_second": 10.123,
53
+ "eval_steps_per_second": 0.378,
54
+ "step": 12
55
+ },
56
+ {
57
+ "epoch": 3.75,
58
+ "grad_norm": 3.7980492702489292,
59
+ "learning_rate": 7.379736965185369e-06,
60
+ "loss": 0.4784,
61
+ "step": 15
62
+ },
63
+ {
64
+ "epoch": 4.0,
65
+ "eval_loss": 0.2715964913368225,
66
+ "eval_runtime": 10.622,
67
+ "eval_samples_per_second": 10.073,
68
+ "eval_steps_per_second": 0.377,
69
+ "step": 16
70
+ },
71
+ {
72
+ "epoch": 5.0,
73
+ "grad_norm": 5.426565998488602,
74
+ "learning_rate": 5.412896727361663e-06,
75
+ "loss": 0.2487,
76
+ "step": 20
77
+ },
78
+ {
79
+ "epoch": 5.0,
80
+ "eval_loss": 0.13748349249362946,
81
+ "eval_runtime": 10.5895,
82
+ "eval_samples_per_second": 10.104,
83
+ "eval_steps_per_second": 0.378,
84
+ "step": 20
85
+ },
86
+ {
87
+ "epoch": 6.0,
88
+ "eval_loss": 0.0687556117773056,
89
+ "eval_runtime": 10.6498,
90
+ "eval_samples_per_second": 10.047,
91
+ "eval_steps_per_second": 0.376,
92
+ "step": 24
93
+ },
94
+ {
95
+ "epoch": 6.25,
96
+ "grad_norm": 2.4213215467933678,
97
+ "learning_rate": 3.3765026539765832e-06,
98
+ "loss": 0.1048,
99
+ "step": 25
100
+ },
101
+ {
102
+ "epoch": 7.0,
103
+ "eval_loss": 0.04261770844459534,
104
+ "eval_runtime": 10.5949,
105
+ "eval_samples_per_second": 10.099,
106
+ "eval_steps_per_second": 0.378,
107
+ "step": 28
108
+ },
109
+ {
110
+ "epoch": 7.5,
111
+ "grad_norm": 1.4054408580810511,
112
+ "learning_rate": 1.6135921418712959e-06,
113
+ "loss": 0.0523,
114
+ "step": 30
115
+ },
116
+ {
117
+ "epoch": 8.0,
118
+ "eval_loss": 0.03317110612988472,
119
+ "eval_runtime": 10.6578,
120
+ "eval_samples_per_second": 10.04,
121
+ "eval_steps_per_second": 0.375,
122
+ "step": 32
123
+ },
124
+ {
125
+ "epoch": 8.75,
126
+ "grad_norm": 0.8161983996171017,
127
+ "learning_rate": 4.211333667247125e-07,
128
+ "loss": 0.0354,
129
+ "step": 35
130
+ },
131
+ {
132
+ "epoch": 9.0,
133
+ "eval_loss": 0.028676806017756462,
134
+ "eval_runtime": 10.5748,
135
+ "eval_samples_per_second": 10.118,
136
+ "eval_steps_per_second": 0.378,
137
+ "step": 36
138
+ },
139
+ {
140
+ "epoch": 10.0,
141
+ "grad_norm": 0.6106701044219125,
142
+ "learning_rate": 0.0,
143
+ "loss": 0.0285,
144
+ "step": 40
145
+ },
146
+ {
147
+ "epoch": 10.0,
148
+ "eval_loss": 0.027601005509495735,
149
+ "eval_runtime": 10.3944,
150
+ "eval_samples_per_second": 10.294,
151
+ "eval_steps_per_second": 0.385,
152
+ "step": 40
153
+ },
154
+ {
155
+ "epoch": 10.0,
156
+ "step": 40,
157
+ "total_flos": 8375186227200.0,
158
+ "train_loss": 0.3289382763206959,
159
+ "train_runtime": 602.9677,
160
+ "train_samples_per_second": 1.775,
161
+ "train_steps_per_second": 0.066
162
+ }
163
+ ],
164
+ "logging_steps": 5,
165
+ "max_steps": 40,
166
+ "num_input_tokens_seen": 0,
167
+ "num_train_epochs": 10,
168
+ "save_steps": 100,
169
+ "stateful_callbacks": {
170
+ "TrainerControl": {
171
+ "args": {
172
+ "should_epoch_stop": false,
173
+ "should_evaluate": false,
174
+ "should_log": false,
175
+ "should_save": true,
176
+ "should_training_stop": true
177
+ },
178
+ "attributes": {}
179
+ }
180
+ },
181
+ "total_flos": 8375186227200.0,
182
+ "train_batch_size": 8,
183
+ "trial_name": null,
184
+ "trial_params": null
185
+ }