scottsuk0306 commited on
Commit
7cdb520
1 Parent(s): f5d483e

Model save

Browse files
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-stem-case-2
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-stem-case-2
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.2113
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: 4
48
+ - total_train_batch_size: 32
49
+ - total_eval_batch_size: 32
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: 10
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss |
58
+ |:-------------:|:-----:|:----:|:---------------:|
59
+ | 1.0974 | 1.0 | 1 | 1.1027 |
60
+ | 1.0974 | 2.0 | 2 | 1.2132 |
61
+ | 1.0974 | 3.0 | 3 | 0.9654 |
62
+ | 1.0974 | 4.0 | 4 | 0.6956 |
63
+ | 0.9948 | 5.0 | 5 | 0.5648 |
64
+ | 0.9948 | 6.0 | 6 | 0.3997 |
65
+ | 0.9948 | 7.0 | 7 | 0.3115 |
66
+ | 0.9948 | 8.0 | 8 | 0.2529 |
67
+ | 0.9948 | 9.0 | 9 | 0.2212 |
68
+ | 0.3483 | 10.0 | 10 | 0.2113 |
69
+
70
+
71
+ ### Framework versions
72
+
73
+ - Transformers 4.44.2
74
+ - Pytorch 2.4.1+cu121
75
+ - Datasets 3.0.0
76
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 10.0,
3
+ "total_flos": 5.592050747991654e+16,
4
+ "train_loss": 0.6817932724952698,
5
+ "train_runtime": 211.7828,
6
+ "train_samples": 424,
7
+ "train_samples_per_second": 1.133,
8
+ "train_steps_per_second": 0.047
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": 10.0,
3
+ "total_flos": 5.592050747991654e+16,
4
+ "train_loss": 0.6817932724952698,
5
+ "train_runtime": 211.7828,
6
+ "train_samples": 424,
7
+ "train_samples_per_second": 1.133,
8
+ "train_steps_per_second": 0.047
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 10.0,
5
+ "eval_steps": 500,
6
+ "global_step": 10,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "grad_norm": 20.091201782226562,
14
+ "learning_rate": 1e-05,
15
+ "loss": 1.0974,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_loss": 1.1026824712753296,
21
+ "eval_runtime": 2.5398,
22
+ "eval_samples_per_second": 9.45,
23
+ "eval_steps_per_second": 0.394,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 2.0,
28
+ "eval_loss": 1.2132011651992798,
29
+ "eval_runtime": 2.5504,
30
+ "eval_samples_per_second": 9.41,
31
+ "eval_steps_per_second": 0.392,
32
+ "step": 2
33
+ },
34
+ {
35
+ "epoch": 3.0,
36
+ "eval_loss": 0.9654137492179871,
37
+ "eval_runtime": 2.5582,
38
+ "eval_samples_per_second": 9.382,
39
+ "eval_steps_per_second": 0.391,
40
+ "step": 3
41
+ },
42
+ {
43
+ "epoch": 4.0,
44
+ "eval_loss": 0.6955726742744446,
45
+ "eval_runtime": 2.5684,
46
+ "eval_samples_per_second": 9.344,
47
+ "eval_steps_per_second": 0.389,
48
+ "step": 4
49
+ },
50
+ {
51
+ "epoch": 5.0,
52
+ "grad_norm": 17.220090866088867,
53
+ "learning_rate": 5.8682408883346535e-06,
54
+ "loss": 0.9948,
55
+ "step": 5
56
+ },
57
+ {
58
+ "epoch": 5.0,
59
+ "eval_loss": 0.5648126602172852,
60
+ "eval_runtime": 2.5655,
61
+ "eval_samples_per_second": 9.355,
62
+ "eval_steps_per_second": 0.39,
63
+ "step": 5
64
+ },
65
+ {
66
+ "epoch": 6.0,
67
+ "eval_loss": 0.39974427223205566,
68
+ "eval_runtime": 2.5699,
69
+ "eval_samples_per_second": 9.339,
70
+ "eval_steps_per_second": 0.389,
71
+ "step": 6
72
+ },
73
+ {
74
+ "epoch": 7.0,
75
+ "eval_loss": 0.3115054666996002,
76
+ "eval_runtime": 2.5785,
77
+ "eval_samples_per_second": 9.308,
78
+ "eval_steps_per_second": 0.388,
79
+ "step": 7
80
+ },
81
+ {
82
+ "epoch": 8.0,
83
+ "eval_loss": 0.2529359757900238,
84
+ "eval_runtime": 2.5839,
85
+ "eval_samples_per_second": 9.288,
86
+ "eval_steps_per_second": 0.387,
87
+ "step": 8
88
+ },
89
+ {
90
+ "epoch": 9.0,
91
+ "eval_loss": 0.22118614614009857,
92
+ "eval_runtime": 2.5806,
93
+ "eval_samples_per_second": 9.3,
94
+ "eval_steps_per_second": 0.388,
95
+ "step": 9
96
+ },
97
+ {
98
+ "epoch": 10.0,
99
+ "grad_norm": 3.2548158168792725,
100
+ "learning_rate": 0.0,
101
+ "loss": 0.3483,
102
+ "step": 10
103
+ },
104
+ {
105
+ "epoch": 10.0,
106
+ "eval_loss": 0.2112644463777542,
107
+ "eval_runtime": 2.5219,
108
+ "eval_samples_per_second": 9.517,
109
+ "eval_steps_per_second": 0.397,
110
+ "step": 10
111
+ },
112
+ {
113
+ "epoch": 10.0,
114
+ "step": 10,
115
+ "total_flos": 5.592050747991654e+16,
116
+ "train_loss": 0.6817932724952698,
117
+ "train_runtime": 211.7828,
118
+ "train_samples_per_second": 1.133,
119
+ "train_steps_per_second": 0.047
120
+ }
121
+ ],
122
+ "logging_steps": 5,
123
+ "max_steps": 10,
124
+ "num_input_tokens_seen": 0,
125
+ "num_train_epochs": 10,
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": 5.592050747991654e+16,
140
+ "train_batch_size": 8,
141
+ "trial_name": null,
142
+ "trial_params": null
143
+ }