AmberYifan
commited on
Commit
•
91da415
1
Parent(s):
54f0b0d
Model save
Browse files- README.md +58 -0
- all_results.json +9 -0
- generation_config.json +6 -0
- train_results.json +9 -0
- trainer_state.json +147 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-2k
|
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-2k
|
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 |
+
|
18 |
+
## Model description
|
19 |
+
|
20 |
+
More information needed
|
21 |
+
|
22 |
+
## Intended uses & limitations
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Training and evaluation data
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training procedure
|
31 |
+
|
32 |
+
### Training hyperparameters
|
33 |
+
|
34 |
+
The following hyperparameters were used during training:
|
35 |
+
- learning_rate: 5e-07
|
36 |
+
- train_batch_size: 4
|
37 |
+
- eval_batch_size: 4
|
38 |
+
- seed: 42
|
39 |
+
- distributed_type: multi-GPU
|
40 |
+
- num_devices: 4
|
41 |
+
- gradient_accumulation_steps: 2
|
42 |
+
- total_train_batch_size: 32
|
43 |
+
- total_eval_batch_size: 16
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- lr_scheduler_warmup_ratio: 0.1
|
47 |
+
- num_epochs: 1
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.43.3
|
56 |
+
- Pytorch 2.2.2+cu121
|
57 |
+
- Datasets 2.20.0
|
58 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.992,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.24013032932435313,
|
5 |
+
"train_runtime": 796.2749,
|
6 |
+
"train_samples": 1992,
|
7 |
+
"train_samples_per_second": 2.502,
|
8 |
+
"train_steps_per_second": 0.078
|
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": 0.992,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.24013032932435313,
|
5 |
+
"train_runtime": 796.2749,
|
6 |
+
"train_samples": 1992,
|
7 |
+
"train_samples_per_second": 2.502,
|
8 |
+
"train_steps_per_second": 0.078
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.992,
|
5 |
+
"eval_steps": 200,
|
6 |
+
"global_step": 62,
|
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.016,
|
13 |
+
"grad_norm": 171.73661439403955,
|
14 |
+
"learning_rate": 7.142857142857142e-08,
|
15 |
+
"logits/generated": -0.7590318322181702,
|
16 |
+
"logits/real": -1.0396332740783691,
|
17 |
+
"logps/generated": -289.2199401855469,
|
18 |
+
"logps/real": -197.24859619140625,
|
19 |
+
"loss": 0.9187,
|
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.16,
|
28 |
+
"grad_norm": 34.20735933667791,
|
29 |
+
"learning_rate": 4.727272727272727e-07,
|
30 |
+
"logits/generated": -0.952869176864624,
|
31 |
+
"logits/real": -0.9400660991668701,
|
32 |
+
"logps/generated": -267.64935302734375,
|
33 |
+
"logps/real": -216.30641174316406,
|
34 |
+
"loss": 0.6785,
|
35 |
+
"rewards/accuracies": 0.8611111044883728,
|
36 |
+
"rewards/generated": -0.6007769107818604,
|
37 |
+
"rewards/margins": 0.7688150405883789,
|
38 |
+
"rewards/real": 0.16803814470767975,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.32,
|
43 |
+
"grad_norm": 1.89230891359901,
|
44 |
+
"learning_rate": 3.818181818181818e-07,
|
45 |
+
"logits/generated": -0.8387147188186646,
|
46 |
+
"logits/real": -0.6731612086296082,
|
47 |
+
"logps/generated": -285.69097900390625,
|
48 |
+
"logps/real": -183.71739196777344,
|
49 |
+
"loss": 0.1842,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/generated": -2.0443050861358643,
|
52 |
+
"rewards/margins": 6.490469455718994,
|
53 |
+
"rewards/real": 4.446164608001709,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.48,
|
58 |
+
"grad_norm": 4.462947343445185,
|
59 |
+
"learning_rate": 2.909090909090909e-07,
|
60 |
+
"logits/generated": -0.7116909027099609,
|
61 |
+
"logits/real": -0.5934397578239441,
|
62 |
+
"logps/generated": -282.5917053222656,
|
63 |
+
"logps/real": -128.06210327148438,
|
64 |
+
"loss": 0.1377,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/generated": -2.1207313537597656,
|
67 |
+
"rewards/margins": 9.267239570617676,
|
68 |
+
"rewards/real": 7.146508693695068,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.64,
|
73 |
+
"grad_norm": 1.017306581553629,
|
74 |
+
"learning_rate": 2e-07,
|
75 |
+
"logits/generated": -0.5800212621688843,
|
76 |
+
"logits/real": -0.6825695633888245,
|
77 |
+
"logps/generated": -289.5108337402344,
|
78 |
+
"logps/real": -159.77926635742188,
|
79 |
+
"loss": 0.1543,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/generated": -2.36224627494812,
|
82 |
+
"rewards/margins": 9.751206398010254,
|
83 |
+
"rewards/real": 7.3889594078063965,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.8,
|
88 |
+
"grad_norm": 0.9620294445274639,
|
89 |
+
"learning_rate": 1.0909090909090908e-07,
|
90 |
+
"logits/generated": -0.6641489267349243,
|
91 |
+
"logits/real": -0.6202989220619202,
|
92 |
+
"logps/generated": -291.93603515625,
|
93 |
+
"logps/real": -158.97694396972656,
|
94 |
+
"loss": 0.1462,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/generated": -2.7126903533935547,
|
97 |
+
"rewards/margins": 10.294529914855957,
|
98 |
+
"rewards/real": 7.581839561462402,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.96,
|
103 |
+
"grad_norm": 1.0600372275387984,
|
104 |
+
"learning_rate": 1.818181818181818e-08,
|
105 |
+
"logits/generated": -0.4919801354408264,
|
106 |
+
"logits/real": -0.810921311378479,
|
107 |
+
"logps/generated": -301.64776611328125,
|
108 |
+
"logps/real": -126.55671691894531,
|
109 |
+
"loss": 0.1347,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/generated": -3.056795835494995,
|
112 |
+
"rewards/margins": 10.84618854522705,
|
113 |
+
"rewards/real": 7.78939151763916,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.992,
|
118 |
+
"step": 62,
|
119 |
+
"total_flos": 0.0,
|
120 |
+
"train_loss": 0.24013032932435313,
|
121 |
+
"train_runtime": 796.2749,
|
122 |
+
"train_samples_per_second": 2.502,
|
123 |
+
"train_steps_per_second": 0.078
|
124 |
+
}
|
125 |
+
],
|
126 |
+
"logging_steps": 10,
|
127 |
+
"max_steps": 62,
|
128 |
+
"num_input_tokens_seen": 0,
|
129 |
+
"num_train_epochs": 1,
|
130 |
+
"save_steps": 200,
|
131 |
+
"stateful_callbacks": {
|
132 |
+
"TrainerControl": {
|
133 |
+
"args": {
|
134 |
+
"should_epoch_stop": false,
|
135 |
+
"should_evaluate": false,
|
136 |
+
"should_log": false,
|
137 |
+
"should_save": true,
|
138 |
+
"should_training_stop": true
|
139 |
+
},
|
140 |
+
"attributes": {}
|
141 |
+
}
|
142 |
+
},
|
143 |
+
"total_flos": 0.0,
|
144 |
+
"train_batch_size": 4,
|
145 |
+
"trial_name": null,
|
146 |
+
"trial_params": null
|
147 |
+
}
|