hzk17 commited on
Commit
c98ee9e
·
verified ·
1 Parent(s): e3a259d

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-7B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2.5-7B-Instruct
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-7B-Instruct
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-7B-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="hzk17/Qwen2.5-7B-Instruct", 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/haozhongkai/huggingface/runs/chotrd31)
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+cu124
40
+ - Datasets: 3.3.2
41
+ - Tokenizers: 0.21.0
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": 7.380890399696486e+16,
3
+ "train_loss": 0.30586605986883475,
4
+ "train_runtime": 3675.8825,
5
+ "train_samples": 22161,
6
+ "train_samples_per_second": 0.754,
7
+ "train_steps_per_second": 0.023
8
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.49.0"
14
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_flos": 7.380890399696486e+16,
3
+ "train_loss": 0.30586605986883475,
4
+ "train_runtime": 3675.8825,
5
+ "train_samples": 22161,
6
+ "train_samples_per_second": 0.754,
7
+ "train_steps_per_second": 0.023
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.9655172413793105,
5
+ "eval_steps": 500,
6
+ "global_step": 86,
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.11494252873563218,
13
+ "grad_norm": 3.822647032868502,
14
+ "learning_rate": 5e-05,
15
+ "loss": 0.562,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.22988505747126436,
20
+ "grad_norm": 3.979017243963418,
21
+ "learning_rate": 4.957824448911616e-05,
22
+ "loss": 0.4905,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.3448275862068966,
27
+ "grad_norm": 0.8114758591310017,
28
+ "learning_rate": 4.832878930855004e-05,
29
+ "loss": 0.3903,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.45977011494252873,
34
+ "grad_norm": 0.3622560433026008,
35
+ "learning_rate": 4.629847575679107e-05,
36
+ "loss": 0.3769,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.5747126436781609,
41
+ "grad_norm": 0.3800914208265442,
42
+ "learning_rate": 4.356341902755273e-05,
43
+ "loss": 0.3531,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.6896551724137931,
48
+ "grad_norm": 0.33355586297162576,
49
+ "learning_rate": 4.0226154698447124e-05,
50
+ "loss": 0.32,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.8045977011494253,
55
+ "grad_norm": 0.2954148614958112,
56
+ "learning_rate": 3.6411794735881035e-05,
57
+ "loss": 0.3209,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.9195402298850575,
62
+ "grad_norm": 0.25530923128267685,
63
+ "learning_rate": 3.226333712516175e-05,
64
+ "loss": 0.2996,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 1.0229885057471264,
69
+ "grad_norm": 0.4098548246432745,
70
+ "learning_rate": 2.793630496486605e-05,
71
+ "loss": 0.2888,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 1.1379310344827587,
76
+ "grad_norm": 0.2635419967801862,
77
+ "learning_rate": 2.359291600249407e-05,
78
+ "loss": 0.2405,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 1.2528735632183907,
83
+ "grad_norm": 0.2401749479804668,
84
+ "learning_rate": 1.939600119189402e-05,
85
+ "loss": 0.2377,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 1.367816091954023,
90
+ "grad_norm": 0.22443674266344824,
91
+ "learning_rate": 1.5502900261961954e-05,
92
+ "loss": 0.2431,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 1.4827586206896552,
97
+ "grad_norm": 0.22116148983782039,
98
+ "learning_rate": 1.2059563147953499e-05,
99
+ "loss": 0.2271,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 1.5977011494252875,
104
+ "grad_norm": 0.20976941774737246,
105
+ "learning_rate": 9.195078419083233e-06,
106
+ "loss": 0.2208,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 1.7126436781609196,
111
+ "grad_norm": 0.20468159198600405,
112
+ "learning_rate": 7.0168338282617025e-06,
113
+ "loss": 0.2255,
114
+ "step": 75
115
+ },
116
+ {
117
+ "epoch": 1.8275862068965516,
118
+ "grad_norm": 0.18909828658237993,
119
+ "learning_rate": 5.6064904119539654e-06,
120
+ "loss": 0.2002,
121
+ "step": 80
122
+ },
123
+ {
124
+ "epoch": 1.9425287356321839,
125
+ "grad_norm": 0.19878948692799125,
126
+ "learning_rate": 5.016921068654824e-06,
127
+ "loss": 0.2228,
128
+ "step": 85
129
+ },
130
+ {
131
+ "epoch": 1.9655172413793105,
132
+ "step": 86,
133
+ "total_flos": 7.380890399696486e+16,
134
+ "train_loss": 0.30586605986883475,
135
+ "train_runtime": 3675.8825,
136
+ "train_samples_per_second": 0.754,
137
+ "train_steps_per_second": 0.023
138
+ }
139
+ ],
140
+ "logging_steps": 5,
141
+ "max_steps": 86,
142
+ "num_input_tokens_seen": 0,
143
+ "num_train_epochs": 2,
144
+ "save_steps": 100,
145
+ "stateful_callbacks": {
146
+ "TrainerControl": {
147
+ "args": {
148
+ "should_epoch_stop": false,
149
+ "should_evaluate": false,
150
+ "should_log": false,
151
+ "should_save": true,
152
+ "should_training_stop": true
153
+ },
154
+ "attributes": {}
155
+ }
156
+ },
157
+ "total_flos": 7.380890399696486e+16,
158
+ "train_batch_size": 4,
159
+ "trial_name": null,
160
+ "trial_params": null
161
+ }