weizhepei commited on
Commit
a498d81
·
verified ·
1 Parent(s): a2feea6

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-3B-Instruct
3
+ library_name: transformers
4
+ model_name: Qwen2.5-3B-WebArena-Lite-SFT-epoch-1-no-sys
5
+ tags:
6
+ - generated_from_trainer
7
+ - trl
8
+ - sft
9
+ licence: license
10
+ ---
11
+
12
+ # Model Card for Qwen2.5-3B-WebArena-Lite-SFT-epoch-1-no-sys
13
+
14
+ This model is a fine-tuned version of [Qwen/Qwen2.5-3B-Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-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/Qwen2.5-3B-WebArena-Lite-SFT-epoch-1-no-sys", 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/hhbuw1lm)
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": 109874636652544.0,
3
+ "train_loss": 0.25139871642396255,
4
+ "train_runtime": 1349.1734,
5
+ "train_samples": 9460,
6
+ "train_samples_per_second": 7.012,
7
+ "train_steps_per_second": 0.055
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": 109874636652544.0,
3
+ "train_loss": 0.25139871642396255,
4
+ "train_runtime": 1349.1734,
5
+ "train_samples": 9460,
6
+ "train_samples_per_second": 7.012,
7
+ "train_steps_per_second": 0.055
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 74,
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.06756756756756757,
13
+ "grad_norm": 3.6427194357256854,
14
+ "learning_rate": 4.9977343997179584e-05,
15
+ "loss": 0.9661,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 0.13513513513513514,
20
+ "grad_norm": 1.7552581485291558,
21
+ "learning_rate": 4.91891643656567e-05,
22
+ "loss": 0.359,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 0.20270270270270271,
27
+ "grad_norm": 1.6747978976981994,
28
+ "learning_rate": 4.731339946677661e-05,
29
+ "loss": 0.2818,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 0.2702702702702703,
34
+ "grad_norm": 1.2689258407097461,
35
+ "learning_rate": 4.444410798508125e-05,
36
+ "loss": 0.2288,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 0.33783783783783783,
41
+ "grad_norm": 1.376943391293494,
42
+ "learning_rate": 4.072516817658065e-05,
43
+ "loss": 0.1905,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 0.40540540540540543,
48
+ "grad_norm": 1.682458902725447,
49
+ "learning_rate": 3.634306321221328e-05,
50
+ "loss": 0.2185,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.47297297297297297,
55
+ "grad_norm": 44.450116180248855,
56
+ "learning_rate": 3.1517530132969326e-05,
57
+ "loss": 0.2003,
58
+ "step": 35
59
+ },
60
+ {
61
+ "epoch": 0.5405405405405406,
62
+ "grad_norm": 0.7718036212010672,
63
+ "learning_rate": 2.6490541317113427e-05,
64
+ "loss": 0.1907,
65
+ "step": 40
66
+ },
67
+ {
68
+ "epoch": 0.6081081081081081,
69
+ "grad_norm": 0.9784107778853152,
70
+ "learning_rate": 2.1514170974749814e-05,
71
+ "loss": 0.1784,
72
+ "step": 45
73
+ },
74
+ {
75
+ "epoch": 0.6756756756756757,
76
+ "grad_norm": 0.8473633960215592,
77
+ "learning_rate": 1.6837955094357533e-05,
78
+ "loss": 0.1618,
79
+ "step": 50
80
+ },
81
+ {
82
+ "epoch": 0.7432432432432432,
83
+ "grad_norm": 0.7215726163389997,
84
+ "learning_rate": 1.2696378666356468e-05,
85
+ "loss": 0.1647,
86
+ "step": 55
87
+ },
88
+ {
89
+ "epoch": 0.8108108108108109,
90
+ "grad_norm": 0.7924473498293266,
91
+ "learning_rate": 9.297117626563687e-06,
92
+ "loss": 0.1669,
93
+ "step": 60
94
+ },
95
+ {
96
+ "epoch": 0.8783783783783784,
97
+ "grad_norm": 0.8106883780712614,
98
+ "learning_rate": 6.810625117592363e-06,
99
+ "loss": 0.1644,
100
+ "step": 65
101
+ },
102
+ {
103
+ "epoch": 0.9459459459459459,
104
+ "grad_norm": 0.677254672377957,
105
+ "learning_rate": 5.361584256530833e-06,
106
+ "loss": 0.1462,
107
+ "step": 70
108
+ },
109
+ {
110
+ "epoch": 1.0,
111
+ "step": 74,
112
+ "total_flos": 109874636652544.0,
113
+ "train_loss": 0.25139871642396255,
114
+ "train_runtime": 1349.1734,
115
+ "train_samples_per_second": 7.012,
116
+ "train_steps_per_second": 0.055
117
+ }
118
+ ],
119
+ "logging_steps": 5,
120
+ "max_steps": 74,
121
+ "num_input_tokens_seen": 0,
122
+ "num_train_epochs": 1,
123
+ "save_steps": 500,
124
+ "stateful_callbacks": {
125
+ "TrainerControl": {
126
+ "args": {
127
+ "should_epoch_stop": false,
128
+ "should_evaluate": false,
129
+ "should_log": false,
130
+ "should_save": true,
131
+ "should_training_stop": true
132
+ },
133
+ "attributes": {}
134
+ }
135
+ },
136
+ "total_flos": 109874636652544.0,
137
+ "train_batch_size": 16,
138
+ "trial_name": null,
139
+ "trial_params": null
140
+ }