ZhangShenao commited on
Commit
8c7ed89
1 Parent(s): 06f61bd

Model save

Browse files
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: gemma
4
+ base_model: google/gemma-2-9b-it
5
+ tags:
6
+ - trl
7
+ - sft
8
+ - generated_from_trainer
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: gemma9b-sft-m
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
+ # gemma9b-sft-m
20
+
21
+ This model is a fine-tuned version of [google/gemma-2-9b-it](https://huggingface.co/google/gemma-2-9b-it) on the generator dataset.
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: 2e-05
41
+ - train_batch_size: 2
42
+ - eval_batch_size: 2
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 8
46
+ - gradient_accumulation_steps: 8
47
+ - total_train_batch_size: 128
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: 5
53
+
54
+ ### Training results
55
+
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.45.2
61
+ - Pytorch 2.1.2+cu121
62
+ - Datasets 3.0.1
63
+ - Tokenizers 0.20.0
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.324324324324325,
3
+ "total_flos": 2.618567468158812e+17,
4
+ "train_loss": 0.8209461569786072,
5
+ "train_runtime": 1075.8042,
6
+ "train_samples": 7473,
7
+ "train_samples_per_second": 2.751,
8
+ "train_steps_per_second": 0.019
9
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "cache_implementation": "hybrid",
5
+ "eos_token_id": 1,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "4.45.2"
8
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.324324324324325,
3
+ "total_flos": 2.618567468158812e+17,
4
+ "train_loss": 0.8209461569786072,
5
+ "train_runtime": 1075.8042,
6
+ "train_samples": 7473,
7
+ "train_samples_per_second": 2.751,
8
+ "train_steps_per_second": 0.019
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 4.324324324324325,
5
+ "eval_steps": 500,
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.21621621621621623,
13
+ "grad_norm": 16.411664962768555,
14
+ "learning_rate": 1e-05,
15
+ "loss": 1.2709,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.43243243243243246,
20
+ "grad_norm": 15.362375259399414,
21
+ "learning_rate": 2e-05,
22
+ "loss": 1.2592,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6486486486486487,
27
+ "grad_norm": 9.707308769226074,
28
+ "learning_rate": 1.9848077530122083e-05,
29
+ "loss": 1.0992,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 0.8648648648648649,
34
+ "grad_norm": 21.78615951538086,
35
+ "learning_rate": 1.9396926207859085e-05,
36
+ "loss": 1.1438,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 1.0810810810810811,
41
+ "grad_norm": 7.769772529602051,
42
+ "learning_rate": 1.866025403784439e-05,
43
+ "loss": 0.9555,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 1.2972972972972974,
48
+ "grad_norm": 3.812919855117798,
49
+ "learning_rate": 1.766044443118978e-05,
50
+ "loss": 0.8601,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 1.5135135135135136,
55
+ "grad_norm": 10.630844116210938,
56
+ "learning_rate": 1.6427876096865394e-05,
57
+ "loss": 0.9599,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 1.7297297297297298,
62
+ "grad_norm": 3.042130708694458,
63
+ "learning_rate": 1.5000000000000002e-05,
64
+ "loss": 0.8358,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 1.945945945945946,
69
+ "grad_norm": 5.21888542175293,
70
+ "learning_rate": 1.342020143325669e-05,
71
+ "loss": 0.8226,
72
+ "step": 9
73
+ },
74
+ {
75
+ "epoch": 2.1621621621621623,
76
+ "grad_norm": 1.5614551305770874,
77
+ "learning_rate": 1.1736481776669307e-05,
78
+ "loss": 0.7464,
79
+ "step": 10
80
+ },
81
+ {
82
+ "epoch": 2.3783783783783785,
83
+ "grad_norm": 1.4593987464904785,
84
+ "learning_rate": 1e-05,
85
+ "loss": 0.7227,
86
+ "step": 11
87
+ },
88
+ {
89
+ "epoch": 2.5945945945945947,
90
+ "grad_norm": 1.3283805847167969,
91
+ "learning_rate": 8.263518223330698e-06,
92
+ "loss": 0.7012,
93
+ "step": 12
94
+ },
95
+ {
96
+ "epoch": 2.810810810810811,
97
+ "grad_norm": 1.1728136539459229,
98
+ "learning_rate": 6.579798566743314e-06,
99
+ "loss": 0.6956,
100
+ "step": 13
101
+ },
102
+ {
103
+ "epoch": 3.027027027027027,
104
+ "grad_norm": 0.7944673299789429,
105
+ "learning_rate": 5.000000000000003e-06,
106
+ "loss": 0.6836,
107
+ "step": 14
108
+ },
109
+ {
110
+ "epoch": 3.2432432432432434,
111
+ "grad_norm": 0.8301619291305542,
112
+ "learning_rate": 3.5721239031346067e-06,
113
+ "loss": 0.6346,
114
+ "step": 15
115
+ },
116
+ {
117
+ "epoch": 3.4594594594594597,
118
+ "grad_norm": 0.7796211242675781,
119
+ "learning_rate": 2.339555568810221e-06,
120
+ "loss": 0.6218,
121
+ "step": 16
122
+ },
123
+ {
124
+ "epoch": 3.6756756756756754,
125
+ "grad_norm": 0.6915468573570251,
126
+ "learning_rate": 1.339745962155613e-06,
127
+ "loss": 0.6058,
128
+ "step": 17
129
+ },
130
+ {
131
+ "epoch": 3.891891891891892,
132
+ "grad_norm": 0.6428016424179077,
133
+ "learning_rate": 6.030737921409169e-07,
134
+ "loss": 0.6106,
135
+ "step": 18
136
+ },
137
+ {
138
+ "epoch": 4.108108108108108,
139
+ "grad_norm": 0.6951332688331604,
140
+ "learning_rate": 1.519224698779198e-07,
141
+ "loss": 0.5922,
142
+ "step": 19
143
+ },
144
+ {
145
+ "epoch": 4.324324324324325,
146
+ "grad_norm": 0.6421741247177124,
147
+ "learning_rate": 0.0,
148
+ "loss": 0.5973,
149
+ "step": 20
150
+ },
151
+ {
152
+ "epoch": 4.324324324324325,
153
+ "step": 20,
154
+ "total_flos": 2.618567468158812e+17,
155
+ "train_loss": 0.8209461569786072,
156
+ "train_runtime": 1075.8042,
157
+ "train_samples_per_second": 2.751,
158
+ "train_steps_per_second": 0.019
159
+ }
160
+ ],
161
+ "logging_steps": 1,
162
+ "max_steps": 20,
163
+ "num_input_tokens_seen": 0,
164
+ "num_train_epochs": 5,
165
+ "save_steps": 999999,
166
+ "stateful_callbacks": {
167
+ "TrainerControl": {
168
+ "args": {
169
+ "should_epoch_stop": false,
170
+ "should_evaluate": false,
171
+ "should_log": false,
172
+ "should_save": true,
173
+ "should_training_stop": true
174
+ },
175
+ "attributes": {}
176
+ }
177
+ },
178
+ "total_flos": 2.618567468158812e+17,
179
+ "train_batch_size": 2,
180
+ "trial_name": null,
181
+ "trial_params": null
182
+ }