weizhepei commited on
Commit
6c92056
·
verified ·
1 Parent(s): 65ee246

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.1-8B-Instruct
3
+ library_name: transformers
4
+ model_name: Llama3.1-8B-WebArena-Lite-SFT-epoch-1
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Llama3.1-8B-WebArena-Lite-SFT-epoch-1
13
+
14
+ This model is a fine-tuned version of [meta-llama/Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct).
15
+ It has been trained using [TRL](https://github.com/huggingface/trl).
16
+
17
+ ## Quick start
18
+
19
+ ```python
20
+ from transformers import pipeline
21
+
22
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
23
+ generator = pipeline("text-generation", model="weizhepei/Llama3.1-8B-WebArena-Lite-SFT-epoch-1", device="cuda")
24
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
25
+ print(output["generated_text"])
26
+ ```
27
+
28
+ ## Training procedure
29
+
30
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/uva-llm/huggingface/runs/whb5eldg)
31
+
32
+
33
+ This model was trained with SFT.
34
+
35
+ ### Framework versions
36
+
37
+ - TRL: 0.16.0.dev0
38
+ - Transformers: 4.49.0
39
+ - Pytorch: 2.5.1
40
+ - Datasets: 3.4.1
41
+ - Tokenizers: 0.21.1
42
+
43
+ ## Citations
44
+
45
+
46
+
47
+ Cite TRL as:
48
+
49
+ ```bibtex
50
+ @misc{vonwerra2022trl,
51
+ title = {{TRL: Transformer Reinforcement Learning}},
52
+ author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouédec},
53
+ year = 2020,
54
+ journal = {GitHub repository},
55
+ publisher = {GitHub},
56
+ howpublished = {\url{https://github.com/huggingface/trl}}
57
+ }
58
+ ```
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 103919835938816.0,
3
+ "train_loss": 0.2840795581405227,
4
+ "train_runtime": 2784.6561,
5
+ "train_samples": 9460,
6
+ "train_samples_per_second": 3.397,
7
+ "train_steps_per_second": 0.053
8
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 128000,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 128001,
6
+ 128008,
7
+ 128009
8
+ ],
9
+ "temperature": 0.6,
10
+ "top_p": 0.9,
11
+ "transformers_version": "4.49.0"
12
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 103919835938816.0,
3
+ "train_loss": 0.2840795581405227,
4
+ "train_runtime": 2784.6561,
5
+ "train_samples": 9460,
6
+ "train_samples_per_second": 3.397,
7
+ "train_steps_per_second": 0.053
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,245 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 148,
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.033783783783783786,
13
+ "grad_norm": 31.901745124039785,
14
+ "learning_rate": 3.125e-05,
15
+ "loss": 0.541,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.06756756756756757,
20
+ "grad_norm": 13.653650682209102,
21
+ "learning_rate": 4.9977343997179584e-05,
22
+ "loss": 0.685,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.10135135135135136,
27
+ "grad_norm": 6.695814046910074,
28
+ "learning_rate": 4.97229876633906e-05,
29
+ "loss": 0.5517,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.13513513513513514,
34
+ "grad_norm": 9.019348686103742,
35
+ "learning_rate": 4.91891643656567e-05,
36
+ "loss": 0.6,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.16891891891891891,
41
+ "grad_norm": 11.605485375911108,
42
+ "learning_rate": 4.838258724167838e-05,
43
+ "loss": 0.4496,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.20270270270270271,
48
+ "grad_norm": 3.265623806400331,
49
+ "learning_rate": 4.731339946677661e-05,
50
+ "loss": 0.3498,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.23648648648648649,
55
+ "grad_norm": 2.514181485694024,
56
+ "learning_rate": 4.599504669757798e-05,
57
+ "loss": 0.3176,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.2702702702702703,
62
+ "grad_norm": 2.2314102994695153,
63
+ "learning_rate": 4.444410798508125e-05,
64
+ "loss": 0.316,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.30405405405405406,
69
+ "grad_norm": 2.088879099787047,
70
+ "learning_rate": 4.268008728347168e-05,
71
+ "loss": 0.2625,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.33783783783783783,
76
+ "grad_norm": 2.5533655840080756,
77
+ "learning_rate": 4.072516817658065e-05,
78
+ "loss": 0.2568,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.3716216216216216,
83
+ "grad_norm": 1.8818068371173975,
84
+ "learning_rate": 3.860393490644781e-05,
85
+ "loss": 0.2943,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.40540540540540543,
90
+ "grad_norm": 2.10021137079353,
91
+ "learning_rate": 3.634306321221328e-05,
92
+ "loss": 0.2302,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.4391891891891892,
97
+ "grad_norm": 6.7894017770969874,
98
+ "learning_rate": 3.397098486722039e-05,
99
+ "loss": 0.2528,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.47297297297297297,
104
+ "grad_norm": 1.4680458694671086,
105
+ "learning_rate": 3.1517530132969326e-05,
106
+ "loss": 0.2323,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 0.5067567567567568,
111
+ "grad_norm": 2.2597597263228684,
112
+ "learning_rate": 2.9013552626270894e-05,
113
+ "loss": 0.268,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 0.5405405405405406,
118
+ "grad_norm": 1.3029591699374143,
119
+ "learning_rate": 2.6490541317113427e-05,
120
+ "loss": 0.2204,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 0.5743243243243243,
125
+ "grad_norm": 1.3879622094005373,
126
+ "learning_rate": 2.3980224536594803e-05,
127
+ "loss": 0.2324,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 0.6081081081081081,
132
+ "grad_norm": 1.9616136554142993,
133
+ "learning_rate": 2.1514170974749814e-05,
134
+ "loss": 0.2108,
135
+ "step": 90
136
+ },
137
+ {
138
+ "epoch": 0.6418918918918919,
139
+ "grad_norm": 1.28503053544791,
140
+ "learning_rate": 1.9123392685956238e-05,
141
+ "loss": 0.2226,
142
+ "step": 95
143
+ },
144
+ {
145
+ "epoch": 0.6756756756756757,
146
+ "grad_norm": 1.7365058283607635,
147
+ "learning_rate": 1.6837955094357533e-05,
148
+ "loss": 0.1812,
149
+ "step": 100
150
+ },
151
+ {
152
+ "epoch": 0.7094594594594594,
153
+ "grad_norm": 1.4024460655941753,
154
+ "learning_rate": 1.468659890370983e-05,
155
+ "loss": 0.2198,
156
+ "step": 105
157
+ },
158
+ {
159
+ "epoch": 0.7432432432432432,
160
+ "grad_norm": 1.6696419317520363,
161
+ "learning_rate": 1.2696378666356468e-05,
162
+ "loss": 0.1888,
163
+ "step": 110
164
+ },
165
+ {
166
+ "epoch": 0.777027027027027,
167
+ "grad_norm": 1.1872751873854868,
168
+ "learning_rate": 1.0892322556534839e-05,
169
+ "loss": 0.162,
170
+ "step": 115
171
+ },
172
+ {
173
+ "epoch": 0.8108108108108109,
174
+ "grad_norm": 1.4926247781952757,
175
+ "learning_rate": 9.297117626563687e-06,
176
+ "loss": 0.2288,
177
+ "step": 120
178
+ },
179
+ {
180
+ "epoch": 0.8445945945945946,
181
+ "grad_norm": 1.2415630273207803,
182
+ "learning_rate": 7.930824503996856e-06,
183
+ "loss": 0.1909,
184
+ "step": 125
185
+ },
186
+ {
187
+ "epoch": 0.8783783783783784,
188
+ "grad_norm": 1.2023085445773478,
189
+ "learning_rate": 6.810625117592363e-06,
190
+ "loss": 0.1806,
191
+ "step": 130
192
+ },
193
+ {
194
+ "epoch": 0.9121621621621622,
195
+ "grad_norm": 1.4243483275853943,
196
+ "learning_rate": 5.950606624589065e-06,
197
+ "loss": 0.1621,
198
+ "step": 135
199
+ },
200
+ {
201
+ "epoch": 0.9459459459459459,
202
+ "grad_norm": 0.9742887910332816,
203
+ "learning_rate": 5.361584256530833e-06,
204
+ "loss": 0.1855,
205
+ "step": 140
206
+ },
207
+ {
208
+ "epoch": 0.9797297297297297,
209
+ "grad_norm": 0.8769764256105443,
210
+ "learning_rate": 5.050965311454739e-06,
211
+ "loss": 0.1646,
212
+ "step": 145
213
+ },
214
+ {
215
+ "epoch": 1.0,
216
+ "step": 148,
217
+ "total_flos": 103919835938816.0,
218
+ "train_loss": 0.2840795581405227,
219
+ "train_runtime": 2784.6561,
220
+ "train_samples_per_second": 3.397,
221
+ "train_steps_per_second": 0.053
222
+ }
223
+ ],
224
+ "logging_steps": 5,
225
+ "max_steps": 148,
226
+ "num_input_tokens_seen": 0,
227
+ "num_train_epochs": 1,
228
+ "save_steps": 500,
229
+ "stateful_callbacks": {
230
+ "TrainerControl": {
231
+ "args": {
232
+ "should_epoch_stop": false,
233
+ "should_evaluate": false,
234
+ "should_log": false,
235
+ "should_save": true,
236
+ "should_training_stop": true
237
+ },
238
+ "attributes": {}
239
+ }
240
+ },
241
+ "total_flos": 103919835938816.0,
242
+ "train_batch_size": 8,
243
+ "trial_name": null,
244
+ "trial_params": null
245
+ }