yuansui commited on
Commit
42ac947
1 Parent(s): cc87c02

Model save

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3.1
3
+ base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: llama3.1_8b_instruct_sft
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # llama3.1_8b_instruct_sft
17
+
18
+ This model is a fine-tuned version of [meta-llama/Meta-Llama-3.1-8B-Instruct](https://huggingface.co/meta-llama/Meta-Llama-3.1-8B-Instruct) on an unknown dataset.
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 5e-07
38
+ - train_batch_size: 8
39
+ - eval_batch_size: 8
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 8
43
+ - gradient_accumulation_steps: 16
44
+ - total_train_batch_size: 1024
45
+ - total_eval_batch_size: 64
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 8.0
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.44.0
58
+ - Pytorch 2.4.0+cu121
59
+ - Datasets 3.0.0
60
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.688888888888889,
3
+ "total_flos": 8467019857920.0,
4
+ "train_loss": 2.377727910876274,
5
+ "train_runtime": 2281.8745,
6
+ "train_samples": 2862,
7
+ "train_samples_per_second": 10.034,
8
+ "train_steps_per_second": 0.007
9
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 128000,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 128001,
6
+ 128008,
7
+ 128009
8
+ ],
9
+ "temperature": 0.6,
10
+ "top_p": 0.9,
11
+ "transformers_version": "4.44.0"
12
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.688888888888889,
3
+ "total_flos": 8467019857920.0,
4
+ "train_loss": 2.377727910876274,
5
+ "train_runtime": 2281.8745,
6
+ "train_samples": 2862,
7
+ "train_samples_per_second": 10.034,
8
+ "train_steps_per_second": 0.007
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.688888888888889,
5
+ "eval_steps": 100,
6
+ "global_step": 16,
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.35555555555555557,
13
+ "grad_norm": 143.33721923828125,
14
+ "learning_rate": 2.5e-07,
15
+ "loss": 2.719,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.7111111111111111,
20
+ "grad_norm": 144.41957092285156,
21
+ "learning_rate": 5e-07,
22
+ "loss": 2.738,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 1.0666666666666667,
27
+ "grad_norm": 113.99625396728516,
28
+ "learning_rate": 4.937319780454559e-07,
29
+ "loss": 2.6899,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 1.4222222222222223,
34
+ "grad_norm": 76.7990951538086,
35
+ "learning_rate": 4.752422169756047e-07,
36
+ "loss": 2.6816,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 1.7777777777777777,
41
+ "grad_norm": 67.85514831542969,
42
+ "learning_rate": 4.4545787061700746e-07,
43
+ "loss": 2.5968,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 2.1333333333333333,
48
+ "grad_norm": 67.69243621826172,
49
+ "learning_rate": 4.058724504646834e-07,
50
+ "loss": 2.5637,
51
+ "step": 6
52
+ },
53
+ {
54
+ "epoch": 2.488888888888889,
55
+ "grad_norm": 58.46062088012695,
56
+ "learning_rate": 3.584709347793895e-07,
57
+ "loss": 2.3581,
58
+ "step": 7
59
+ },
60
+ {
61
+ "epoch": 2.8444444444444446,
62
+ "grad_norm": 58.78388595581055,
63
+ "learning_rate": 3.056302334890786e-07,
64
+ "loss": 2.3439,
65
+ "step": 8
66
+ },
67
+ {
68
+ "epoch": 3.2,
69
+ "grad_norm": 59.05506896972656,
70
+ "learning_rate": 2.5e-07,
71
+ "loss": 2.2871,
72
+ "step": 9
73
+ },
74
+ {
75
+ "epoch": 3.5555555555555554,
76
+ "grad_norm": 65.5489730834961,
77
+ "learning_rate": 1.9436976651092142e-07,
78
+ "loss": 2.2914,
79
+ "step": 10
80
+ },
81
+ {
82
+ "epoch": 3.911111111111111,
83
+ "grad_norm": 74.62954711914062,
84
+ "learning_rate": 1.4152906522061047e-07,
85
+ "loss": 2.2547,
86
+ "step": 11
87
+ },
88
+ {
89
+ "epoch": 4.266666666666667,
90
+ "grad_norm": 76.41258239746094,
91
+ "learning_rate": 9.412754953531663e-08,
92
+ "loss": 2.2695,
93
+ "step": 12
94
+ },
95
+ {
96
+ "epoch": 4.622222222222222,
97
+ "grad_norm": 35.00369644165039,
98
+ "learning_rate": 5.454212938299255e-08,
99
+ "loss": 2.1083,
100
+ "step": 13
101
+ },
102
+ {
103
+ "epoch": 4.977777777777778,
104
+ "grad_norm": 66.7103271484375,
105
+ "learning_rate": 2.475778302439524e-08,
106
+ "loss": 2.0591,
107
+ "step": 14
108
+ },
109
+ {
110
+ "epoch": 5.333333333333333,
111
+ "grad_norm": 59.597145080566406,
112
+ "learning_rate": 6.268021954544095e-09,
113
+ "loss": 2.0415,
114
+ "step": 15
115
+ },
116
+ {
117
+ "epoch": 5.688888888888889,
118
+ "grad_norm": 57.84925079345703,
119
+ "learning_rate": 0.0,
120
+ "loss": 2.0409,
121
+ "step": 16
122
+ },
123
+ {
124
+ "epoch": 5.688888888888889,
125
+ "step": 16,
126
+ "total_flos": 8467019857920.0,
127
+ "train_loss": 2.377727910876274,
128
+ "train_runtime": 2281.8745,
129
+ "train_samples_per_second": 10.034,
130
+ "train_steps_per_second": 0.007
131
+ }
132
+ ],
133
+ "logging_steps": 1,
134
+ "max_steps": 16,
135
+ "num_input_tokens_seen": 0,
136
+ "num_train_epochs": 8,
137
+ "save_steps": 400,
138
+ "stateful_callbacks": {
139
+ "TrainerControl": {
140
+ "args": {
141
+ "should_epoch_stop": false,
142
+ "should_evaluate": false,
143
+ "should_log": false,
144
+ "should_save": true,
145
+ "should_training_stop": true
146
+ },
147
+ "attributes": {}
148
+ }
149
+ },
150
+ "total_flos": 8467019857920.0,
151
+ "train_batch_size": 8,
152
+ "trial_name": null,
153
+ "trial_params": null
154
+ }