Model save
Browse files- README.md +71 -0
- all_results.json +9 -0
- generation_config.json +6 -0
- train_results.json +9 -0
- trainer_state.json +178 -0
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: Qwen/Qwen2.5-7B
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: Qwen2.5-7B-spin-10k
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
12 |
+
should probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# Qwen2.5-7B-spin-10k
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [Qwen/Qwen2.5-7B](https://huggingface.co/Qwen/Qwen2.5-7B) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.1366
|
19 |
+
- Rewards/real: 7.8246
|
20 |
+
- Rewards/generated: -2.3247
|
21 |
+
- Rewards/accuracies: 1.0
|
22 |
+
- Rewards/margins: 10.1492
|
23 |
+
- Logps/generated: -263.3269
|
24 |
+
- Logps/real: -127.7119
|
25 |
+
- Logits/generated: -0.9835
|
26 |
+
- Logits/real: -0.6921
|
27 |
+
|
28 |
+
## Model description
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Intended uses & limitations
|
33 |
+
|
34 |
+
More information needed
|
35 |
+
|
36 |
+
## Training and evaluation data
|
37 |
+
|
38 |
+
More information needed
|
39 |
+
|
40 |
+
## Training procedure
|
41 |
+
|
42 |
+
### Training hyperparameters
|
43 |
+
|
44 |
+
The following hyperparameters were used during training:
|
45 |
+
- learning_rate: 5e-07
|
46 |
+
- train_batch_size: 4
|
47 |
+
- eval_batch_size: 4
|
48 |
+
- seed: 42
|
49 |
+
- distributed_type: multi-GPU
|
50 |
+
- num_devices: 4
|
51 |
+
- gradient_accumulation_steps: 2
|
52 |
+
- total_train_batch_size: 32
|
53 |
+
- total_eval_batch_size: 16
|
54 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
55 |
+
- lr_scheduler_type: linear
|
56 |
+
- lr_scheduler_warmup_ratio: 0.1
|
57 |
+
- num_epochs: 1
|
58 |
+
|
59 |
+
### Training results
|
60 |
+
|
61 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/real | Rewards/generated | Rewards/accuracies | Rewards/margins | Logps/generated | Logps/real | Logits/generated | Logits/real |
|
62 |
+
|:-------------:|:------:|:----:|:---------------:|:------------:|:-----------------:|:------------------:|:---------------:|:---------------:|:----------:|:----------------:|:-----------:|
|
63 |
+
| 0.1463 | 0.6410 | 50 | 0.1366 | 7.8246 | -2.3247 | 1.0 | 10.1492 | -263.3269 | -127.7119 | -0.9835 | -0.6921 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.43.3
|
69 |
+
- Pytorch 2.2.2+cu121
|
70 |
+
- Datasets 2.20.0
|
71 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.2174399999471811,
|
5 |
+
"train_runtime": 1268.5918,
|
6 |
+
"train_samples": 2484,
|
7 |
+
"train_samples_per_second": 1.958,
|
8 |
+
"train_steps_per_second": 0.061
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 151643,
|
3 |
+
"eos_token_id": 151643,
|
4 |
+
"max_new_tokens": 2048,
|
5 |
+
"transformers_version": "4.43.3"
|
6 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.2174399999471811,
|
5 |
+
"train_runtime": 1268.5918,
|
6 |
+
"train_samples": 2484,
|
7 |
+
"train_samples_per_second": 1.958,
|
8 |
+
"train_steps_per_second": 0.061
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 50,
|
6 |
+
"global_step": 78,
|
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.01282051282051282,
|
13 |
+
"grad_norm": 169.85406133026603,
|
14 |
+
"learning_rate": 6.25e-08,
|
15 |
+
"logits/generated": -1.1294811964035034,
|
16 |
+
"logits/real": -0.7686214447021484,
|
17 |
+
"logps/generated": -273.1225891113281,
|
18 |
+
"logps/real": -290.2070007324219,
|
19 |
+
"loss": 0.9091,
|
20 |
+
"rewards/accuracies": 0.0,
|
21 |
+
"rewards/generated": 0.0,
|
22 |
+
"rewards/margins": 0.0,
|
23 |
+
"rewards/real": 0.0,
|
24 |
+
"step": 1
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 0.1282051282051282,
|
28 |
+
"grad_norm": 63.23414694225829,
|
29 |
+
"learning_rate": 4.857142857142857e-07,
|
30 |
+
"logits/generated": -0.9032017588615417,
|
31 |
+
"logits/real": -0.9559243321418762,
|
32 |
+
"logps/generated": -279.2696838378906,
|
33 |
+
"logps/real": -224.7206268310547,
|
34 |
+
"loss": 0.6755,
|
35 |
+
"rewards/accuracies": 0.8333333134651184,
|
36 |
+
"rewards/generated": -0.39545938372612,
|
37 |
+
"rewards/margins": 0.8560593724250793,
|
38 |
+
"rewards/real": 0.4606000483036041,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.2564102564102564,
|
43 |
+
"grad_norm": 4.693240657102186,
|
44 |
+
"learning_rate": 4.142857142857143e-07,
|
45 |
+
"logits/generated": -0.951930820941925,
|
46 |
+
"logits/real": -0.8856027722358704,
|
47 |
+
"logps/generated": -284.35430908203125,
|
48 |
+
"logps/real": -156.9384002685547,
|
49 |
+
"loss": 0.1771,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/generated": -1.183829426765442,
|
52 |
+
"rewards/margins": 5.8197126388549805,
|
53 |
+
"rewards/real": 4.635883808135986,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.38461538461538464,
|
58 |
+
"grad_norm": 1.1912756226499355,
|
59 |
+
"learning_rate": 3.4285714285714286e-07,
|
60 |
+
"logits/generated": -0.5055528283119202,
|
61 |
+
"logits/real": -0.7188040018081665,
|
62 |
+
"logps/generated": -301.6423645019531,
|
63 |
+
"logps/real": -140.4794921875,
|
64 |
+
"loss": 0.1408,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/generated": -2.185486316680908,
|
67 |
+
"rewards/margins": 9.369997024536133,
|
68 |
+
"rewards/real": 7.184512138366699,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.5128205128205128,
|
73 |
+
"grad_norm": 1.2464411282623236,
|
74 |
+
"learning_rate": 2.714285714285714e-07,
|
75 |
+
"logits/generated": -0.5057858228683472,
|
76 |
+
"logits/real": -0.5780868530273438,
|
77 |
+
"logps/generated": -299.8144226074219,
|
78 |
+
"logps/real": -154.14199829101562,
|
79 |
+
"loss": 0.1457,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/generated": -2.8365063667297363,
|
82 |
+
"rewards/margins": 10.34560489654541,
|
83 |
+
"rewards/real": 7.509098052978516,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.6410256410256411,
|
88 |
+
"grad_norm": 1.0548152399288286,
|
89 |
+
"learning_rate": 2e-07,
|
90 |
+
"logits/generated": -0.38232049345970154,
|
91 |
+
"logits/real": -0.6496118307113647,
|
92 |
+
"logps/generated": -303.3151550292969,
|
93 |
+
"logps/real": -143.59616088867188,
|
94 |
+
"loss": 0.1463,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/generated": -2.8232903480529785,
|
97 |
+
"rewards/margins": 10.742189407348633,
|
98 |
+
"rewards/real": 7.9188995361328125,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.6410256410256411,
|
103 |
+
"eval_logits/generated": -0.9835317730903625,
|
104 |
+
"eval_logits/real": -0.6921402812004089,
|
105 |
+
"eval_logps/generated": -263.3268737792969,
|
106 |
+
"eval_logps/real": -127.7119369506836,
|
107 |
+
"eval_loss": 0.13658176362514496,
|
108 |
+
"eval_rewards/accuracies": 1.0,
|
109 |
+
"eval_rewards/generated": -2.3246724605560303,
|
110 |
+
"eval_rewards/margins": 10.149224281311035,
|
111 |
+
"eval_rewards/real": 7.824552059173584,
|
112 |
+
"eval_runtime": 10.8908,
|
113 |
+
"eval_samples_per_second": 4.591,
|
114 |
+
"eval_steps_per_second": 0.367,
|
115 |
+
"step": 50
|
116 |
+
},
|
117 |
+
{
|
118 |
+
"epoch": 0.7692307692307693,
|
119 |
+
"grad_norm": 1.1141881809347227,
|
120 |
+
"learning_rate": 1.2857142857142855e-07,
|
121 |
+
"logits/generated": -0.503508448600769,
|
122 |
+
"logits/real": -0.6755964159965515,
|
123 |
+
"logps/generated": -294.5934143066406,
|
124 |
+
"logps/real": -133.47311401367188,
|
125 |
+
"loss": 0.1358,
|
126 |
+
"rewards/accuracies": 1.0,
|
127 |
+
"rewards/generated": -3.0683863162994385,
|
128 |
+
"rewards/margins": 10.883561134338379,
|
129 |
+
"rewards/real": 7.815173149108887,
|
130 |
+
"step": 60
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 0.8974358974358975,
|
134 |
+
"grad_norm": 1.0596728323269835,
|
135 |
+
"learning_rate": 5.714285714285714e-08,
|
136 |
+
"logits/generated": -0.6190778017044067,
|
137 |
+
"logits/real": -0.6327217221260071,
|
138 |
+
"logps/generated": -289.4383850097656,
|
139 |
+
"logps/real": -148.02481079101562,
|
140 |
+
"loss": 0.145,
|
141 |
+
"rewards/accuracies": 1.0,
|
142 |
+
"rewards/generated": -2.6634089946746826,
|
143 |
+
"rewards/margins": 10.635811805725098,
|
144 |
+
"rewards/real": 7.972402095794678,
|
145 |
+
"step": 70
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"epoch": 1.0,
|
149 |
+
"step": 78,
|
150 |
+
"total_flos": 0.0,
|
151 |
+
"train_loss": 0.2174399999471811,
|
152 |
+
"train_runtime": 1268.5918,
|
153 |
+
"train_samples_per_second": 1.958,
|
154 |
+
"train_steps_per_second": 0.061
|
155 |
+
}
|
156 |
+
],
|
157 |
+
"logging_steps": 10,
|
158 |
+
"max_steps": 78,
|
159 |
+
"num_input_tokens_seen": 0,
|
160 |
+
"num_train_epochs": 1,
|
161 |
+
"save_steps": 50,
|
162 |
+
"stateful_callbacks": {
|
163 |
+
"TrainerControl": {
|
164 |
+
"args": {
|
165 |
+
"should_epoch_stop": false,
|
166 |
+
"should_evaluate": false,
|
167 |
+
"should_log": false,
|
168 |
+
"should_save": true,
|
169 |
+
"should_training_stop": true
|
170 |
+
},
|
171 |
+
"attributes": {}
|
172 |
+
}
|
173 |
+
},
|
174 |
+
"total_flos": 0.0,
|
175 |
+
"train_batch_size": 4,
|
176 |
+
"trial_name": null,
|
177 |
+
"trial_params": null
|
178 |
+
}
|