Model save
Browse files- README.md +69 -0
- all_results.json +9 -0
- runs/Aug08_16-38-54_938RL43/events.out.tfevents.1723128033.938RL43.6045.0 +2 -2
- train_results.json +9 -0
- trainer_state.json +143 -0
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mistralai/Mistral-7B-v0.1
|
3 |
+
datasets:
|
4 |
+
- generator
|
5 |
+
library_name: peft
|
6 |
+
license: apache-2.0
|
7 |
+
tags:
|
8 |
+
- trl
|
9 |
+
- sft
|
10 |
+
- generated_from_trainer
|
11 |
+
model-index:
|
12 |
+
- name: zephyr-7b-sft-qlora
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# zephyr-7b-sft-qlora
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 1.0512
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 0.0002
|
43 |
+
- train_batch_size: 4
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- gradient_accumulation_steps: 2
|
48 |
+
- total_train_batch_size: 8
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: cosine
|
51 |
+
- lr_scheduler_warmup_ratio: 0.1
|
52 |
+
- num_epochs: 3
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
57 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
58 |
+
| 1.0419 | 1.0 | 17 | 1.0336 |
|
59 |
+
| 0.8637 | 2.0 | 34 | 1.0328 |
|
60 |
+
| 0.8198 | 3.0 | 51 | 1.0512 |
|
61 |
+
|
62 |
+
|
63 |
+
### Framework versions
|
64 |
+
|
65 |
+
- PEFT 0.12.0
|
66 |
+
- Transformers 4.44.0
|
67 |
+
- Pytorch 2.1.2+cu121
|
68 |
+
- Datasets 2.20.0
|
69 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"total_flos": 3.5859605640708096e+16,
|
4 |
+
"train_loss": 0.9273478938084022,
|
5 |
+
"train_runtime": 35264.3392,
|
6 |
+
"train_samples": 207,
|
7 |
+
"train_samples_per_second": 0.012,
|
8 |
+
"train_steps_per_second": 0.001
|
9 |
+
}
|
runs/Aug08_16-38-54_938RL43/events.out.tfevents.1723128033.938RL43.6045.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bda1f7de2168687781351cfdf4b5dae16ff1cd3117e5f8e9cada823b0fadde49
|
3 |
+
size 9900
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.0,
|
3 |
+
"total_flos": 3.5859605640708096e+16,
|
4 |
+
"train_loss": 0.9273478938084022,
|
5 |
+
"train_runtime": 35264.3392,
|
6 |
+
"train_samples": 207,
|
7 |
+
"train_samples_per_second": 0.012,
|
8 |
+
"train_steps_per_second": 0.001
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 51,
|
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.058823529411764705,
|
13 |
+
"grad_norm": 0.41075530648231506,
|
14 |
+
"learning_rate": 3.3333333333333335e-05,
|
15 |
+
"loss": 1.0764,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.29411764705882354,
|
20 |
+
"grad_norm": 0.31586405634880066,
|
21 |
+
"learning_rate": 0.0001666666666666667,
|
22 |
+
"loss": 1.1671,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.5882352941176471,
|
27 |
+
"grad_norm": 0.2748248875141144,
|
28 |
+
"learning_rate": 0.0001961261695938319,
|
29 |
+
"loss": 1.0427,
|
30 |
+
"step": 10
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.8823529411764706,
|
34 |
+
"grad_norm": 0.26047566533088684,
|
35 |
+
"learning_rate": 0.00018090169943749476,
|
36 |
+
"loss": 1.0419,
|
37 |
+
"step": 15
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 1.0,
|
41 |
+
"eval_loss": 1.0335692167282104,
|
42 |
+
"eval_runtime": 11418.6735,
|
43 |
+
"eval_samples_per_second": 1.344,
|
44 |
+
"eval_steps_per_second": 0.168,
|
45 |
+
"step": 17
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 1.1764705882352942,
|
49 |
+
"grad_norm": 0.24954748153686523,
|
50 |
+
"learning_rate": 0.0001559192903470747,
|
51 |
+
"loss": 0.8987,
|
52 |
+
"step": 20
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"epoch": 1.4705882352941178,
|
56 |
+
"grad_norm": 0.26379314064979553,
|
57 |
+
"learning_rate": 0.00012419218955996676,
|
58 |
+
"loss": 0.91,
|
59 |
+
"step": 25
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 1.7647058823529411,
|
63 |
+
"grad_norm": 0.29261425137519836,
|
64 |
+
"learning_rate": 8.954715367323468e-05,
|
65 |
+
"loss": 0.8637,
|
66 |
+
"step": 30
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"epoch": 2.0,
|
70 |
+
"eval_loss": 1.0328121185302734,
|
71 |
+
"eval_runtime": 11368.8822,
|
72 |
+
"eval_samples_per_second": 1.35,
|
73 |
+
"eval_steps_per_second": 0.169,
|
74 |
+
"step": 34
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"epoch": 2.0588235294117645,
|
78 |
+
"grad_norm": 0.44186949729919434,
|
79 |
+
"learning_rate": 5.616288532109225e-05,
|
80 |
+
"loss": 0.9475,
|
81 |
+
"step": 35
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 2.3529411764705883,
|
85 |
+
"grad_norm": 0.3536168038845062,
|
86 |
+
"learning_rate": 2.8066019966134904e-05,
|
87 |
+
"loss": 0.816,
|
88 |
+
"step": 40
|
89 |
+
},
|
90 |
+
{
|
91 |
+
"epoch": 2.6470588235294117,
|
92 |
+
"grad_norm": 0.37321916222572327,
|
93 |
+
"learning_rate": 8.645454235739903e-06,
|
94 |
+
"loss": 0.815,
|
95 |
+
"step": 45
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"epoch": 2.9411764705882355,
|
99 |
+
"grad_norm": 0.34859296679496765,
|
100 |
+
"learning_rate": 2.4359497401758024e-07,
|
101 |
+
"loss": 0.8198,
|
102 |
+
"step": 50
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"epoch": 3.0,
|
106 |
+
"eval_loss": 1.0511847734451294,
|
107 |
+
"eval_runtime": 11370.1779,
|
108 |
+
"eval_samples_per_second": 1.35,
|
109 |
+
"eval_steps_per_second": 0.169,
|
110 |
+
"step": 51
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"epoch": 3.0,
|
114 |
+
"step": 51,
|
115 |
+
"total_flos": 3.5859605640708096e+16,
|
116 |
+
"train_loss": 0.9273478938084022,
|
117 |
+
"train_runtime": 35264.3392,
|
118 |
+
"train_samples_per_second": 0.012,
|
119 |
+
"train_steps_per_second": 0.001
|
120 |
+
}
|
121 |
+
],
|
122 |
+
"logging_steps": 5,
|
123 |
+
"max_steps": 51,
|
124 |
+
"num_input_tokens_seen": 0,
|
125 |
+
"num_train_epochs": 3,
|
126 |
+
"save_steps": 100,
|
127 |
+
"stateful_callbacks": {
|
128 |
+
"TrainerControl": {
|
129 |
+
"args": {
|
130 |
+
"should_epoch_stop": false,
|
131 |
+
"should_evaluate": false,
|
132 |
+
"should_log": false,
|
133 |
+
"should_save": true,
|
134 |
+
"should_training_stop": true
|
135 |
+
},
|
136 |
+
"attributes": {}
|
137 |
+
}
|
138 |
+
},
|
139 |
+
"total_flos": 3.5859605640708096e+16,
|
140 |
+
"train_batch_size": 4,
|
141 |
+
"trial_name": null,
|
142 |
+
"trial_params": null
|
143 |
+
}
|