finalform commited on
Commit
76b9408
·
verified ·
1 Parent(s): fa75d70

Upload folder using huggingface_hub

Browse files
Files changed (8) hide show
  1. README.md +187 -40
  2. adapter_model.safetensors +1 -1
  3. optimizer.pt +1 -1
  4. rng_state_0.pth +1 -1
  5. rng_state_1.pth +1 -1
  6. scaler.pt +1 -1
  7. scheduler.pt +1 -1
  8. trainer_state.json +176 -3
README.md CHANGED
@@ -1,62 +1,209 @@
1
  ---
2
  base_model: Qwen/Qwen2.5-7B-Instruct
3
  library_name: peft
4
- model_name: foamqwen
5
  tags:
6
  - base_model:adapter:Qwen/Qwen2.5-7B-Instruct
7
  - lora
8
  - sft
9
  - transformers
10
  - trl
11
- licence: license
12
- pipeline_tag: text-generation
13
  ---
14
 
15
- # Model Card for foamqwen
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
- This model is a fine-tuned version of [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct).
18
- It has been trained using [TRL](https://github.com/huggingface/trl).
19
 
20
- ## Quick start
21
 
22
- ```python
23
- from transformers import pipeline
24
 
25
- 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?"
26
- generator = pipeline("text-generation", model="None", device="cuda")
27
- output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
28
- print(output["generated_text"])
29
- ```
30
 
31
- ## Training procedure
32
 
33
-
34
 
 
35
 
36
- This model was trained with SFT.
37
 
 
38
  ### Framework versions
39
 
40
- - PEFT 0.17.0
41
- - TRL: 0.19.0
42
- - Transformers: 4.52.3
43
- - Pytorch: 2.7.0
44
- - Datasets: 4.4.1
45
- - Tokenizers: 0.21.4
46
-
47
- ## Citations
48
-
49
-
50
-
51
- Cite TRL as:
52
-
53
- ```bibtex
54
- @misc{vonwerra2022trl,
55
- title = {{TRL: Transformer Reinforcement Learning}},
56
- 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{\'e}dec},
57
- year = 2020,
58
- journal = {GitHub repository},
59
- publisher = {GitHub},
60
- howpublished = {\url{https://github.com/huggingface/trl}}
61
- }
62
- ```
 
1
  ---
2
  base_model: Qwen/Qwen2.5-7B-Instruct
3
  library_name: peft
4
+ pipeline_tag: text-generation
5
  tags:
6
  - base_model:adapter:Qwen/Qwen2.5-7B-Instruct
7
  - lora
8
  - sft
9
  - transformers
10
  - trl
 
 
11
  ---
12
 
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
 
190
+ ## Glossary [optional]
 
191
 
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
 
194
+ [More Information Needed]
 
195
 
196
+ ## More Information [optional]
 
 
 
 
197
 
198
+ [More Information Needed]
199
 
200
+ ## Model Card Authors [optional]
201
 
202
+ [More Information Needed]
203
 
204
+ ## Model Card Contact
205
 
206
+ [More Information Needed]
207
  ### Framework versions
208
 
209
+ - PEFT 0.17.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5b94987d8426aeb00a412e4085918f2279de9f2c02430c44b8b06c4f032df1a6
3
  size 645975704
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af95b1c5a220d6a55dfa035d107d9e91bfabf1b2db706471abe4481fe57a2c18
3
  size 645975704
optimizer.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c99e8926d4c596b7e29f88b3e7af9802b8452379b4a272adec05c9e868858bd
3
  size 1292087499
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a94642b6cbfd74bb89c873dfb0f163ca25cacf3de48ebe5602d93d089f703814
3
  size 1292087499
rng_state_0.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ba38bdecc343a6514c6f5ba7ea1cc651e5dadf81e9b371b1ca715c7bad2e3dc6
3
  size 14917
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1076c60313859db66ff0de37f0791c974b8c08d8b63ddb5f7cbe475f61adaae8
3
  size 14917
rng_state_1.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4e1050514bdfa0ed27320f41e9c255c0e138bd459c14db299a56274532d69dd2
3
  size 14917
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b18641396ff6afcf33050e5d126e243d87afe83252f83da2f3ac56c52a96e88
3
  size 14917
scaler.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:25c7f0c11a632f64b9e7e8aaa231e0f7ca0acbc577fe4fef5c0b323f9b2e5a60
3
  size 1383
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5aa1cb0b33cdae18d9d01e7f84345dc8aa89b0d8db4af3c1d3869e0251d9ef27
3
  size 1383
scheduler.pt CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:54093d653e19af28f1975f14611ada654488878917f02e00680cafe281c9818a
3
  size 1465
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b679dc767877b4670dc9f5034576dafc9e3e774d98ec6626b0317647bc6c0dbb
3
  size 1465
trainer_state.json CHANGED
@@ -2,9 +2,9 @@
2
  "best_global_step": null,
3
  "best_metric": null,
4
  "best_model_checkpoint": null,
5
- "epoch": 3.0,
6
  "eval_steps": 500,
7
- "global_step": 624,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
@@ -254,6 +254,179 @@
254
  "eval_samples_per_second": 25.623,
255
  "eval_steps_per_second": 6.458,
256
  "step": 624
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
257
  }
258
  ],
259
  "logging_steps": 25,
@@ -273,7 +446,7 @@
273
  "attributes": {}
274
  }
275
  },
276
- "total_flos": 3.073091636570358e+17,
277
  "train_batch_size": 2,
278
  "trial_name": null,
279
  "trial_params": null
 
2
  "best_global_step": null,
3
  "best_metric": null,
4
  "best_model_checkpoint": null,
5
+ "epoch": 5.0,
6
  "eval_steps": 500,
7
+ "global_step": 1040,
8
  "is_hyper_param_search": false,
9
  "is_local_process_zero": true,
10
  "is_world_process_zero": true,
 
254
  "eval_samples_per_second": 25.623,
255
  "eval_steps_per_second": 6.458,
256
  "step": 624
257
+ },
258
+ {
259
+ "epoch": 3.004825090470446,
260
+ "grad_norm": 0.07378800958395004,
261
+ "learning_rate": 0.0003261924543602117,
262
+ "loss": 0.0346,
263
+ "mean_token_accuracy": 0.990131803394593,
264
+ "num_tokens": 7081259.0,
265
+ "step": 625
266
+ },
267
+ {
268
+ "epoch": 3.1254523522316044,
269
+ "grad_norm": 0.06171029433608055,
270
+ "learning_rate": 0.00031243326938037763,
271
+ "loss": 0.0295,
272
+ "mean_token_accuracy": 0.9908573353290557,
273
+ "num_tokens": 7365656.0,
274
+ "step": 650
275
+ },
276
+ {
277
+ "epoch": 3.2460796139927623,
278
+ "grad_norm": 0.058736372739076614,
279
+ "learning_rate": 0.00029849798230773775,
280
+ "loss": 0.0282,
281
+ "mean_token_accuracy": 0.9913074177503586,
282
+ "num_tokens": 7649008.0,
283
+ "step": 675
284
+ },
285
+ {
286
+ "epoch": 3.3667068757539202,
287
+ "grad_norm": 0.05701276659965515,
288
+ "learning_rate": 0.0002844296968186495,
289
+ "loss": 0.0281,
290
+ "mean_token_accuracy": 0.9912878751754761,
291
+ "num_tokens": 7933268.0,
292
+ "step": 700
293
+ },
294
+ {
295
+ "epoch": 3.4873341375150786,
296
+ "grad_norm": 0.05498967319726944,
297
+ "learning_rate": 0.00027027192797107074,
298
+ "loss": 0.0294,
299
+ "mean_token_accuracy": 0.9906794387102127,
300
+ "num_tokens": 8215897.0,
301
+ "step": 725
302
+ },
303
+ {
304
+ "epoch": 3.6079613992762365,
305
+ "grad_norm": 0.06823839247226715,
306
+ "learning_rate": 0.00025606846760676025,
307
+ "loss": 0.0277,
308
+ "mean_token_accuracy": 0.9914608508348465,
309
+ "num_tokens": 8501329.0,
310
+ "step": 750
311
+ },
312
+ {
313
+ "epoch": 3.7285886610373944,
314
+ "grad_norm": 0.0680052787065506,
315
+ "learning_rate": 0.00024186324889734987,
316
+ "loss": 0.0274,
317
+ "mean_token_accuracy": 0.9915587675571441,
318
+ "num_tokens": 8785631.0,
319
+ "step": 775
320
+ },
321
+ {
322
+ "epoch": 3.8492159227985523,
323
+ "grad_norm": 0.05490550398826599,
324
+ "learning_rate": 0.00022770021045326374,
325
+ "loss": 0.0258,
326
+ "mean_token_accuracy": 0.9919438254833222,
327
+ "num_tokens": 9069077.0,
328
+ "step": 800
329
+ },
330
+ {
331
+ "epoch": 3.9698431845597106,
332
+ "grad_norm": 0.03772555664181709,
333
+ "learning_rate": 0.00021362316041581623,
334
+ "loss": 0.0265,
335
+ "mean_token_accuracy": 0.9916725689172745,
336
+ "num_tokens": 9353723.0,
337
+ "step": 825
338
+ },
339
+ {
340
+ "epoch": 4.0,
341
+ "eval_loss": 0.04437188059091568,
342
+ "eval_mean_token_accuracy": 0.9882329240922005,
343
+ "eval_num_tokens": 9420685.0,
344
+ "eval_runtime": 14.4213,
345
+ "eval_samples_per_second": 25.587,
346
+ "eval_steps_per_second": 6.449,
347
+ "step": 832
348
+ },
349
+ {
350
+ "epoch": 4.086851628468033,
351
+ "grad_norm": 0.02592896670103073,
352
+ "learning_rate": 0.00019967564095286626,
353
+ "loss": 0.0234,
354
+ "mean_token_accuracy": 0.9925551224000675,
355
+ "num_tokens": 9636965.0,
356
+ "step": 850
357
+ },
358
+ {
359
+ "epoch": 4.207478890229192,
360
+ "grad_norm": 0.023598628118634224,
361
+ "learning_rate": 0.00018590079357716402,
362
+ "loss": 0.0238,
363
+ "mean_token_accuracy": 0.9923965859413147,
364
+ "num_tokens": 9921224.0,
365
+ "step": 875
366
+ },
367
+ {
368
+ "epoch": 4.32810615199035,
369
+ "grad_norm": 0.021419132128357887,
370
+ "learning_rate": 0.00017234122570397543,
371
+ "loss": 0.0224,
372
+ "mean_token_accuracy": 0.99283282995224,
373
+ "num_tokens": 10206105.0,
374
+ "step": 900
375
+ },
376
+ {
377
+ "epoch": 4.4487334137515075,
378
+ "grad_norm": 0.029326746240258217,
379
+ "learning_rate": 0.00015903887886074125,
380
+ "loss": 0.0227,
381
+ "mean_token_accuracy": 0.9927335000038147,
382
+ "num_tokens": 10489494.0,
383
+ "step": 925
384
+ },
385
+ {
386
+ "epoch": 4.569360675512666,
387
+ "grad_norm": 0.029370704665780067,
388
+ "learning_rate": 0.00014603489895641456,
389
+ "loss": 0.0225,
390
+ "mean_token_accuracy": 0.9927709919214248,
391
+ "num_tokens": 10774122.0,
392
+ "step": 950
393
+ },
394
+ {
395
+ "epoch": 4.689987937273824,
396
+ "grad_norm": 0.024111004546284676,
397
+ "learning_rate": 0.00013336950901175073,
398
+ "loss": 0.0205,
399
+ "mean_token_accuracy": 0.9931790089607239,
400
+ "num_tokens": 11058651.0,
401
+ "step": 975
402
+ },
403
+ {
404
+ "epoch": 4.810615199034982,
405
+ "grad_norm": 0.022787606343626976,
406
+ "learning_rate": 0.00012108188474421214,
407
+ "loss": 0.0206,
408
+ "mean_token_accuracy": 0.9933073389530181,
409
+ "num_tokens": 11342586.0,
410
+ "step": 1000
411
+ },
412
+ {
413
+ "epoch": 4.93124246079614,
414
+ "grad_norm": 0.04723374545574188,
415
+ "learning_rate": 0.00010921003339231984,
416
+ "loss": 0.0213,
417
+ "mean_token_accuracy": 0.9930336177349091,
418
+ "num_tokens": 11627305.0,
419
+ "step": 1025
420
+ },
421
+ {
422
+ "epoch": 5.0,
423
+ "eval_loss": 0.03776097670197487,
424
+ "eval_mean_token_accuracy": 0.9898016606607745,
425
+ "eval_num_tokens": 11775709.0,
426
+ "eval_runtime": 14.4053,
427
+ "eval_samples_per_second": 25.616,
428
+ "eval_steps_per_second": 6.456,
429
+ "step": 1040
430
  }
431
  ],
432
  "logging_steps": 25,
 
446
  "attributes": {}
447
  }
448
  },
449
+ "total_flos": 5.12159461381505e+17,
450
  "train_batch_size": 2,
451
  "trial_name": null,
452
  "trial_params": null