AmberYifan
commited on
Commit
•
63b5f20
1
Parent(s):
4f35c63
Model save
Browse files- README.md +71 -0
- all_results.json +9 -0
- generation_config.json +6 -0
- model-00001-of-00004.safetensors +1 -1
- model-00002-of-00004.safetensors +1 -1
- model-00003-of-00004.safetensors +1 -1
- model-00004-of-00004.safetensors +1 -1
- train_results.json +9 -0
- trainer_state.json +163 -0
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: Qwen/Qwen2-7B
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: Qwen2-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-7B-spin-2k
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [Qwen/Qwen2-7B](https://huggingface.co/Qwen/Qwen2-7B) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Loss: 0.1115
|
19 |
+
- Rewards/real: 6.6307
|
20 |
+
- Rewards/generated: -5.6978
|
21 |
+
- Rewards/accuracies: 1.0
|
22 |
+
- Rewards/margins: 12.3284
|
23 |
+
- Logps/generated: -348.4622
|
24 |
+
- Logps/real: -123.6893
|
25 |
+
- Logits/generated: -0.9537
|
26 |
+
- Logits/real: -1.6166
|
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.1108 | 0.8 | 50 | 0.1115 | 6.6307 | -5.6978 | 1.0 | 12.3284 | -348.4622 | -123.6893 | -0.9537 | -1.6166 |
|
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": 0.992,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.18373099305937368,
|
5 |
+
"train_runtime": 1010.4406,
|
6 |
+
"train_samples": 1995,
|
7 |
+
"train_samples_per_second": 1.974,
|
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 |
+
}
|
model-00001-of-00004.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4877660776
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7ee0f8d11a59657fb1e37eae1ef598510245e50f07be2b71424bc21742be6ffb
|
3 |
size 4877660776
|
model-00002-of-00004.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4932751008
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d21abc8ec5edf052a21cb394065b7ce070f9890804fa7821735172339897e908
|
3 |
size 4932751008
|
model-00003-of-00004.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4330865200
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3534152c43d873496f035727648ee134eb8e107f636862fc6771e93db18e13a1
|
3 |
size 4330865200
|
model-00004-of-00004.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1089994880
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:74db9b8213276cbd4eaf70db929e32f3bff4d581f9324782b971fdbe3f9ed9c0
|
3 |
size 1089994880
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.992,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.18373099305937368,
|
5 |
+
"train_runtime": 1010.4406,
|
6 |
+
"train_samples": 1995,
|
7 |
+
"train_samples_per_second": 1.974,
|
8 |
+
"train_steps_per_second": 0.061
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.992,
|
5 |
+
"eval_steps": 50,
|
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": 98.16447669559693,
|
14 |
+
"learning_rate": 7.142857142857142e-08,
|
15 |
+
"logits/generated": -1.7165532112121582,
|
16 |
+
"logits/real": -1.9473252296447754,
|
17 |
+
"logps/generated": -275.8633728027344,
|
18 |
+
"logps/real": -119.67874145507812,
|
19 |
+
"loss": 0.8563,
|
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": 8.433954312310394,
|
29 |
+
"learning_rate": 4.727272727272727e-07,
|
30 |
+
"logits/generated": -1.7268381118774414,
|
31 |
+
"logits/real": -1.6472580432891846,
|
32 |
+
"logps/generated": -287.07708740234375,
|
33 |
+
"logps/real": -172.39788818359375,
|
34 |
+
"loss": 0.5272,
|
35 |
+
"rewards/accuracies": 0.8472222089767456,
|
36 |
+
"rewards/generated": -0.3371984362602234,
|
37 |
+
"rewards/margins": 1.6153303384780884,
|
38 |
+
"rewards/real": 1.2781319618225098,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.32,
|
43 |
+
"grad_norm": 2.0626183508441827,
|
44 |
+
"learning_rate": 3.818181818181818e-07,
|
45 |
+
"logits/generated": -1.3058226108551025,
|
46 |
+
"logits/real": -1.6506996154785156,
|
47 |
+
"logps/generated": -306.6280212402344,
|
48 |
+
"logps/real": -114.25825500488281,
|
49 |
+
"loss": 0.1169,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/generated": -2.2147715091705322,
|
52 |
+
"rewards/margins": 8.338987350463867,
|
53 |
+
"rewards/real": 6.124215602874756,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.48,
|
58 |
+
"grad_norm": 0.5086367809412861,
|
59 |
+
"learning_rate": 2.909090909090909e-07,
|
60 |
+
"logits/generated": -1.0788180828094482,
|
61 |
+
"logits/real": -1.9709659814834595,
|
62 |
+
"logps/generated": -329.04046630859375,
|
63 |
+
"logps/real": -102.8577880859375,
|
64 |
+
"loss": 0.1079,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/generated": -4.102789878845215,
|
67 |
+
"rewards/margins": 10.5944242477417,
|
68 |
+
"rewards/real": 6.491633415222168,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.64,
|
73 |
+
"grad_norm": 0.5442495957101562,
|
74 |
+
"learning_rate": 2e-07,
|
75 |
+
"logits/generated": -0.9625035524368286,
|
76 |
+
"logits/real": -1.762656807899475,
|
77 |
+
"logps/generated": -316.8744201660156,
|
78 |
+
"logps/real": -105.2821044921875,
|
79 |
+
"loss": 0.1084,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/generated": -4.126258373260498,
|
82 |
+
"rewards/margins": 10.838096618652344,
|
83 |
+
"rewards/real": 6.711838722229004,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.8,
|
88 |
+
"grad_norm": 0.466220159360493,
|
89 |
+
"learning_rate": 1.0909090909090908e-07,
|
90 |
+
"logits/generated": -1.0104159116744995,
|
91 |
+
"logits/real": -1.8771381378173828,
|
92 |
+
"logps/generated": -325.93133544921875,
|
93 |
+
"logps/real": -100.94727325439453,
|
94 |
+
"loss": 0.1108,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/generated": -4.898512840270996,
|
97 |
+
"rewards/margins": 11.485854148864746,
|
98 |
+
"rewards/real": 6.58734130859375,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.8,
|
103 |
+
"eval_logits/generated": -0.9536736011505127,
|
104 |
+
"eval_logits/real": -1.6165881156921387,
|
105 |
+
"eval_logps/generated": -348.4621887207031,
|
106 |
+
"eval_logps/real": -123.68927764892578,
|
107 |
+
"eval_loss": 0.11147800087928772,
|
108 |
+
"eval_rewards/accuracies": 1.0,
|
109 |
+
"eval_rewards/generated": -5.697763442993164,
|
110 |
+
"eval_rewards/margins": 12.328431129455566,
|
111 |
+
"eval_rewards/real": 6.630667686462402,
|
112 |
+
"eval_runtime": 31.5183,
|
113 |
+
"eval_samples_per_second": 6.346,
|
114 |
+
"eval_steps_per_second": 0.412,
|
115 |
+
"step": 50
|
116 |
+
},
|
117 |
+
{
|
118 |
+
"epoch": 0.96,
|
119 |
+
"grad_norm": 0.403885105692105,
|
120 |
+
"learning_rate": 1.818181818181818e-08,
|
121 |
+
"logits/generated": -1.0189651250839233,
|
122 |
+
"logits/real": -1.817792296409607,
|
123 |
+
"logps/generated": -332.2081298828125,
|
124 |
+
"logps/real": -104.88079833984375,
|
125 |
+
"loss": 0.1131,
|
126 |
+
"rewards/accuracies": 1.0,
|
127 |
+
"rewards/generated": -5.417947769165039,
|
128 |
+
"rewards/margins": 11.97882080078125,
|
129 |
+
"rewards/real": 6.560873985290527,
|
130 |
+
"step": 60
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"epoch": 0.992,
|
134 |
+
"step": 62,
|
135 |
+
"total_flos": 0.0,
|
136 |
+
"train_loss": 0.18373099305937368,
|
137 |
+
"train_runtime": 1010.4406,
|
138 |
+
"train_samples_per_second": 1.974,
|
139 |
+
"train_steps_per_second": 0.061
|
140 |
+
}
|
141 |
+
],
|
142 |
+
"logging_steps": 10,
|
143 |
+
"max_steps": 62,
|
144 |
+
"num_input_tokens_seen": 0,
|
145 |
+
"num_train_epochs": 1,
|
146 |
+
"save_steps": 50,
|
147 |
+
"stateful_callbacks": {
|
148 |
+
"TrainerControl": {
|
149 |
+
"args": {
|
150 |
+
"should_epoch_stop": false,
|
151 |
+
"should_evaluate": false,
|
152 |
+
"should_log": false,
|
153 |
+
"should_save": true,
|
154 |
+
"should_training_stop": true
|
155 |
+
},
|
156 |
+
"attributes": {}
|
157 |
+
}
|
158 |
+
},
|
159 |
+
"total_flos": 0.0,
|
160 |
+
"train_batch_size": 4,
|
161 |
+
"trial_name": null,
|
162 |
+
"trial_params": null
|
163 |
+
}
|