AmberYifan
commited on
Commit
•
9a20a5a
1
Parent(s):
1573405
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 +162 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: mistralai/Mistral-7B-v0.3
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
model-index:
|
7 |
+
- name: Mistral-7B-v0.3-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 |
+
# Mistral-7B-v0.3-spin-10k
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.3](https://huggingface.co/mistralai/Mistral-7B-v0.3) 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.9936305732484076,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.13574646222285736,
|
5 |
+
"train_runtime": 880.1183,
|
6 |
+
"train_samples": 2499,
|
7 |
+
"train_samples_per_second": 2.839,
|
8 |
+
"train_steps_per_second": 0.089
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.43.3"
|
6 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.9936305732484076,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.13574646222285736,
|
5 |
+
"train_runtime": 880.1183,
|
6 |
+
"train_samples": 2499,
|
7 |
+
"train_samples_per_second": 2.839,
|
8 |
+
"train_steps_per_second": 0.089
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.9936305732484076,
|
5 |
+
"eval_steps": 200,
|
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.012738853503184714,
|
13 |
+
"grad_norm": 326.24651409169326,
|
14 |
+
"learning_rate": 6.25e-08,
|
15 |
+
"logits/generated": -2.93477463722229,
|
16 |
+
"logits/real": -2.4012675285339355,
|
17 |
+
"logps/generated": -208.99496459960938,
|
18 |
+
"logps/real": -155.2028045654297,
|
19 |
+
"loss": 0.8485,
|
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.12738853503184713,
|
28 |
+
"grad_norm": 1.9033893127091575,
|
29 |
+
"learning_rate": 4.857142857142857e-07,
|
30 |
+
"logits/generated": -2.951857089996338,
|
31 |
+
"logits/real": -2.5705060958862305,
|
32 |
+
"logps/generated": -259.4918212890625,
|
33 |
+
"logps/real": -112.88738250732422,
|
34 |
+
"loss": 0.3014,
|
35 |
+
"rewards/accuracies": 0.8888888955116272,
|
36 |
+
"rewards/generated": -3.585451364517212,
|
37 |
+
"rewards/margins": 5.119141101837158,
|
38 |
+
"rewards/real": 1.533690094947815,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.25477707006369427,
|
43 |
+
"grad_norm": 1.1705308621808606,
|
44 |
+
"learning_rate": 4.142857142857143e-07,
|
45 |
+
"logits/generated": -3.0224690437316895,
|
46 |
+
"logits/real": -2.6734519004821777,
|
47 |
+
"logps/generated": -336.2292785644531,
|
48 |
+
"logps/real": -106.44221496582031,
|
49 |
+
"loss": 0.1083,
|
50 |
+
"rewards/accuracies": 1.0,
|
51 |
+
"rewards/generated": -9.065248489379883,
|
52 |
+
"rewards/margins": 12.609029769897461,
|
53 |
+
"rewards/real": 3.543780565261841,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.3821656050955414,
|
58 |
+
"grad_norm": 1.1213361280852419,
|
59 |
+
"learning_rate": 3.4285714285714286e-07,
|
60 |
+
"logits/generated": -2.9410929679870605,
|
61 |
+
"logits/real": -2.7236175537109375,
|
62 |
+
"logps/generated": -319.44488525390625,
|
63 |
+
"logps/real": -107.4495849609375,
|
64 |
+
"loss": 0.1063,
|
65 |
+
"rewards/accuracies": 1.0,
|
66 |
+
"rewards/generated": -9.140058517456055,
|
67 |
+
"rewards/margins": 12.716639518737793,
|
68 |
+
"rewards/real": 3.5765795707702637,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.5095541401273885,
|
73 |
+
"grad_norm": 1.2093625558735122,
|
74 |
+
"learning_rate": 2.714285714285714e-07,
|
75 |
+
"logits/generated": -2.910172462463379,
|
76 |
+
"logits/real": -2.6861648559570312,
|
77 |
+
"logps/generated": -336.0597229003906,
|
78 |
+
"logps/real": -129.8443145751953,
|
79 |
+
"loss": 0.1091,
|
80 |
+
"rewards/accuracies": 1.0,
|
81 |
+
"rewards/generated": -9.90638542175293,
|
82 |
+
"rewards/margins": 13.79242992401123,
|
83 |
+
"rewards/real": 3.886044979095459,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.6369426751592356,
|
88 |
+
"grad_norm": 1.1396658722584625,
|
89 |
+
"learning_rate": 2e-07,
|
90 |
+
"logits/generated": -2.932140588760376,
|
91 |
+
"logits/real": -2.6356616020202637,
|
92 |
+
"logps/generated": -332.86029052734375,
|
93 |
+
"logps/real": -102.4961929321289,
|
94 |
+
"loss": 0.1021,
|
95 |
+
"rewards/accuracies": 1.0,
|
96 |
+
"rewards/generated": -10.24595832824707,
|
97 |
+
"rewards/margins": 14.124105453491211,
|
98 |
+
"rewards/real": 3.8781490325927734,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.7643312101910829,
|
103 |
+
"grad_norm": 1.1099085601056409,
|
104 |
+
"learning_rate": 1.2857142857142855e-07,
|
105 |
+
"logits/generated": -2.9857165813446045,
|
106 |
+
"logits/real": -2.729072332382202,
|
107 |
+
"logps/generated": -337.9509582519531,
|
108 |
+
"logps/real": -105.97525787353516,
|
109 |
+
"loss": 0.0955,
|
110 |
+
"rewards/accuracies": 1.0,
|
111 |
+
"rewards/generated": -10.29601764678955,
|
112 |
+
"rewards/margins": 14.421841621398926,
|
113 |
+
"rewards/real": 4.125824928283691,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.89171974522293,
|
118 |
+
"grad_norm": 1.1918732387706044,
|
119 |
+
"learning_rate": 5.714285714285714e-08,
|
120 |
+
"logits/generated": -2.9917495250701904,
|
121 |
+
"logits/real": -2.670356035232544,
|
122 |
+
"logps/generated": -335.4694519042969,
|
123 |
+
"logps/real": -97.86441040039062,
|
124 |
+
"loss": 0.1021,
|
125 |
+
"rewards/accuracies": 1.0,
|
126 |
+
"rewards/generated": -10.20665168762207,
|
127 |
+
"rewards/margins": 13.933235168457031,
|
128 |
+
"rewards/real": 3.726583480834961,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.9936305732484076,
|
133 |
+
"step": 78,
|
134 |
+
"total_flos": 0.0,
|
135 |
+
"train_loss": 0.13574646222285736,
|
136 |
+
"train_runtime": 880.1183,
|
137 |
+
"train_samples_per_second": 2.839,
|
138 |
+
"train_steps_per_second": 0.089
|
139 |
+
}
|
140 |
+
],
|
141 |
+
"logging_steps": 10,
|
142 |
+
"max_steps": 78,
|
143 |
+
"num_input_tokens_seen": 0,
|
144 |
+
"num_train_epochs": 1,
|
145 |
+
"save_steps": 200,
|
146 |
+
"stateful_callbacks": {
|
147 |
+
"TrainerControl": {
|
148 |
+
"args": {
|
149 |
+
"should_epoch_stop": false,
|
150 |
+
"should_evaluate": false,
|
151 |
+
"should_log": false,
|
152 |
+
"should_save": true,
|
153 |
+
"should_training_stop": true
|
154 |
+
},
|
155 |
+
"attributes": {}
|
156 |
+
}
|
157 |
+
},
|
158 |
+
"total_flos": 0.0,
|
159 |
+
"train_batch_size": 4,
|
160 |
+
"trial_name": null,
|
161 |
+
"trial_params": null
|
162 |
+
}
|