scottsuk0306
commited on
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 +124 -0
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- sft
|
8 |
+
- generated_from_trainer
|
9 |
+
datasets:
|
10 |
+
- generator
|
11 |
+
model-index:
|
12 |
+
- name: zephyr-7b-math-case-6-ep5
|
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-math-case-6-ep5
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the generator dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 0.3117
|
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: 1e-05
|
43 |
+
- train_batch_size: 8
|
44 |
+
- eval_batch_size: 8
|
45 |
+
- seed: 42
|
46 |
+
- distributed_type: multi-GPU
|
47 |
+
- num_devices: 8
|
48 |
+
- total_train_batch_size: 64
|
49 |
+
- total_eval_batch_size: 64
|
50 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
51 |
+
- lr_scheduler_type: cosine
|
52 |
+
- lr_scheduler_warmup_ratio: 0.03
|
53 |
+
- num_epochs: 5
|
54 |
+
|
55 |
+
### Training results
|
56 |
+
|
57 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
58 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
59 |
+
| 1.0402 | 1.0 | 5 | 0.7510 |
|
60 |
+
| 0.691 | 2.0 | 10 | 0.5701 |
|
61 |
+
| 0.5239 | 3.0 | 15 | 0.4264 |
|
62 |
+
| 0.3917 | 4.0 | 20 | 0.3359 |
|
63 |
+
| 0.3221 | 5.0 | 25 | 0.3117 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.44.2
|
69 |
+
- Pytorch 2.4.1+cu121
|
70 |
+
- Datasets 3.0.0
|
71 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"total_flos": 10468982784000.0,
|
4 |
+
"train_loss": 0.5895810270309448,
|
5 |
+
"train_runtime": 388.4587,
|
6 |
+
"train_samples": 4000,
|
7 |
+
"train_samples_per_second": 3.385,
|
8 |
+
"train_steps_per_second": 0.064
|
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.44.2"
|
6 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"total_flos": 10468982784000.0,
|
4 |
+
"train_loss": 0.5895810270309448,
|
5 |
+
"train_runtime": 388.4587,
|
6 |
+
"train_samples": 4000,
|
7 |
+
"train_samples_per_second": 3.385,
|
8 |
+
"train_steps_per_second": 0.064
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 25,
|
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.2,
|
13 |
+
"grad_norm": 24.8895814604259,
|
14 |
+
"learning_rate": 1e-05,
|
15 |
+
"loss": 0.9347,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"grad_norm": 10.507921581694449,
|
21 |
+
"learning_rate": 9.330127018922195e-06,
|
22 |
+
"loss": 1.0402,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0,
|
27 |
+
"eval_loss": 0.750956118106842,
|
28 |
+
"eval_runtime": 13.4777,
|
29 |
+
"eval_samples_per_second": 19.514,
|
30 |
+
"eval_steps_per_second": 0.371,
|
31 |
+
"step": 5
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 2.0,
|
35 |
+
"grad_norm": 3.2842066334321927,
|
36 |
+
"learning_rate": 6.913417161825449e-06,
|
37 |
+
"loss": 0.691,
|
38 |
+
"step": 10
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 2.0,
|
42 |
+
"eval_loss": 0.5700622200965881,
|
43 |
+
"eval_runtime": 13.3794,
|
44 |
+
"eval_samples_per_second": 19.657,
|
45 |
+
"eval_steps_per_second": 0.374,
|
46 |
+
"step": 10
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 3.0,
|
50 |
+
"grad_norm": 3.0707933492232007,
|
51 |
+
"learning_rate": 3.705904774487396e-06,
|
52 |
+
"loss": 0.5239,
|
53 |
+
"step": 15
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 3.0,
|
57 |
+
"eval_loss": 0.426382839679718,
|
58 |
+
"eval_runtime": 13.3851,
|
59 |
+
"eval_samples_per_second": 19.649,
|
60 |
+
"eval_steps_per_second": 0.374,
|
61 |
+
"step": 15
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 4.0,
|
65 |
+
"grad_norm": 3.1454642852295103,
|
66 |
+
"learning_rate": 1.0332332985438248e-06,
|
67 |
+
"loss": 0.3917,
|
68 |
+
"step": 20
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 4.0,
|
72 |
+
"eval_loss": 0.33590540289878845,
|
73 |
+
"eval_runtime": 13.3827,
|
74 |
+
"eval_samples_per_second": 19.652,
|
75 |
+
"eval_steps_per_second": 0.374,
|
76 |
+
"step": 20
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"epoch": 5.0,
|
80 |
+
"grad_norm": 2.732790702100083,
|
81 |
+
"learning_rate": 0.0,
|
82 |
+
"loss": 0.3221,
|
83 |
+
"step": 25
|
84 |
+
},
|
85 |
+
{
|
86 |
+
"epoch": 5.0,
|
87 |
+
"eval_loss": 0.31167706847190857,
|
88 |
+
"eval_runtime": 13.3175,
|
89 |
+
"eval_samples_per_second": 19.749,
|
90 |
+
"eval_steps_per_second": 0.375,
|
91 |
+
"step": 25
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"epoch": 5.0,
|
95 |
+
"step": 25,
|
96 |
+
"total_flos": 10468982784000.0,
|
97 |
+
"train_loss": 0.5895810270309448,
|
98 |
+
"train_runtime": 388.4587,
|
99 |
+
"train_samples_per_second": 3.385,
|
100 |
+
"train_steps_per_second": 0.064
|
101 |
+
}
|
102 |
+
],
|
103 |
+
"logging_steps": 5,
|
104 |
+
"max_steps": 25,
|
105 |
+
"num_input_tokens_seen": 0,
|
106 |
+
"num_train_epochs": 5,
|
107 |
+
"save_steps": 100,
|
108 |
+
"stateful_callbacks": {
|
109 |
+
"TrainerControl": {
|
110 |
+
"args": {
|
111 |
+
"should_epoch_stop": false,
|
112 |
+
"should_evaluate": false,
|
113 |
+
"should_log": false,
|
114 |
+
"should_save": true,
|
115 |
+
"should_training_stop": true
|
116 |
+
},
|
117 |
+
"attributes": {}
|
118 |
+
}
|
119 |
+
},
|
120 |
+
"total_flos": 10468982784000.0,
|
121 |
+
"train_batch_size": 8,
|
122 |
+
"trial_name": null,
|
123 |
+
"trial_params": null
|
124 |
+
}
|