l3thanhvuvnr commited on
Commit
476e951
·
verified ·
1 Parent(s): 75acc83

Upload 11 files

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - llama-factory
6
+ - lora
7
+ - generated_from_trainer
8
+ base_model: defog/sqlcoder-7b-2
9
+ model-index:
10
+ - name: train_2024-02-27-09-48-46
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # train_2024-02-27-09-48-46
18
+
19
+ This model is a fine-tuned version of [defog/sqlcoder-7b-2](https://huggingface.co/defog/sqlcoder-7b-2) on the self_cognition dataset.
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 2.5e-05
39
+ - train_batch_size: 5
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 4
43
+ - total_train_batch_size: 20
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - lr_scheduler_warmup_steps: 1
47
+ - num_epochs: 30.0
48
+ - mixed_precision_training: Native AMP
49
+
50
+ ### Training results
51
+
52
+
53
+
54
+ ### Framework versions
55
+
56
+ - PEFT 0.8.2
57
+ - Transformers 4.37.2
58
+ - Pytorch 2.1.0+cu121
59
+ - Datasets 2.17.1
60
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "defog/sqlcoder-7b-2",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 64,
13
+ "lora_dropout": 0.1,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 32,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "v_proj",
23
+ "q_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM",
26
+ "use_rslora": false
27
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4639ef7860076ecf8d306adcd0e05fc81642fb14ba637e90093112ee0397ae4d
3
+ size 67126104
all_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 30.0,
3
+ "train_loss": 0.8538130601247151,
4
+ "train_runtime": 2104.0236,
5
+ "train_samples_per_second": 1.141,
6
+ "train_steps_per_second": 0.057
7
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "▁<PRE>",
4
+ "▁<MID>",
5
+ "▁<SUF>",
6
+ "▁<EOT>",
7
+ "▁<PRE>",
8
+ "▁<MID>",
9
+ "▁<SUF>",
10
+ "▁<EOT>"
11
+ ],
12
+ "bos_token": {
13
+ "content": "<s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false
18
+ },
19
+ "eos_token": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "pad_token": "</s>",
27
+ "unk_token": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45ccb9c8b6b561889acea59191d66986d314e7cbd6a78abc6e49b139ca91c1e6
3
+ size 500058
tokenizer_config.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "32007": {
30
+ "content": "▁<PRE>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32008": {
38
+ "content": "▁<SUF>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "32009": {
46
+ "content": "▁<MID>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "32010": {
54
+ "content": "▁<EOT>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ }
61
+ },
62
+ "additional_special_tokens": [
63
+ "▁<PRE>",
64
+ "▁<MID>",
65
+ "▁<SUF>",
66
+ "▁<EOT>",
67
+ "▁<PRE>",
68
+ "▁<MID>",
69
+ "▁<SUF>",
70
+ "▁<EOT>"
71
+ ],
72
+ "bos_token": "<s>",
73
+ "clean_up_tokenization_spaces": false,
74
+ "eos_token": "</s>",
75
+ "eot_token": "▁<EOT>",
76
+ "fill_token": "<FILL_ME>",
77
+ "legacy": null,
78
+ "middle_token": "▁<MID>",
79
+ "model_max_length": 1000000000000000019884624838656,
80
+ "pad_token": "</s>",
81
+ "padding_side": "right",
82
+ "prefix_token": "▁<PRE>",
83
+ "sp_model_kwargs": {},
84
+ "split_special_tokens": false,
85
+ "suffix_first": false,
86
+ "suffix_token": "▁<SUF>",
87
+ "tokenizer_class": "CodeLlamaTokenizer",
88
+ "unk_token": "<unk>",
89
+ "use_default_system_prompt": false
90
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 30.0,
3
+ "train_loss": 0.8538130601247151,
4
+ "train_runtime": 2104.0236,
5
+ "train_samples_per_second": 1.141,
6
+ "train_steps_per_second": 0.057
7
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 120, "loss": 1.6733, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.493036906838148e-05, "epoch": 1.25, "percentage": 4.17, "elapsed_time": "0:01:26", "remaining_time": "0:33:00"}
2
+ {"current_steps": 10, "total_steps": 120, "loss": 1.5341, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.4648822424126846e-05, "epoch": 2.5, "percentage": 8.33, "elapsed_time": "0:02:55", "remaining_time": "0:32:12"}
3
+ {"current_steps": 15, "total_steps": 120, "loss": 1.5014, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.4155902867554447e-05, "epoch": 3.75, "percentage": 12.5, "elapsed_time": "0:04:21", "remaining_time": "0:30:29"}
4
+ {"current_steps": 20, "total_steps": 120, "loss": 1.3282, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.3460186525516237e-05, "epoch": 5.0, "percentage": 16.67, "elapsed_time": "0:05:50", "remaining_time": "0:29:10"}
5
+ {"current_steps": 25, "total_steps": 120, "loss": 1.2251, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.2573777911867937e-05, "epoch": 6.25, "percentage": 20.83, "elapsed_time": "0:07:17", "remaining_time": "0:27:42"}
6
+ {"current_steps": 30, "total_steps": 120, "loss": 1.1738, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.1512099325465313e-05, "epoch": 7.5, "percentage": 25.0, "elapsed_time": "0:08:44", "remaining_time": "0:26:13"}
7
+ {"current_steps": 35, "total_steps": 120, "loss": 1.0707, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.029362252323417e-05, "epoch": 8.75, "percentage": 29.17, "elapsed_time": "0:10:14", "remaining_time": "0:24:51"}
8
+ {"current_steps": 40, "total_steps": 120, "loss": 0.9962, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.89395473368362e-05, "epoch": 10.0, "percentage": 33.33, "elapsed_time": "0:11:40", "remaining_time": "0:23:20"}
9
+ {"current_steps": 45, "total_steps": 120, "loss": 0.8998, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.747343282456151e-05, "epoch": 11.25, "percentage": 37.5, "elapsed_time": "0:13:09", "remaining_time": "0:21:55"}
10
+ {"current_steps": 50, "total_steps": 120, "loss": 0.8471, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.5920787375901038e-05, "epoch": 12.5, "percentage": 41.67, "elapsed_time": "0:14:36", "remaining_time": "0:20:26"}
11
+ {"current_steps": 55, "total_steps": 120, "loss": 0.7282, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.4308624900419257e-05, "epoch": 13.75, "percentage": 45.83, "elapsed_time": "0:16:03", "remaining_time": "0:18:58"}
12
+ {"current_steps": 60, "total_steps": 120, "loss": 0.6841, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.2664994822634489e-05, "epoch": 15.0, "percentage": 50.0, "elapsed_time": "0:17:30", "remaining_time": "0:17:30"}
13
+ {"current_steps": 65, "total_steps": 120, "loss": 0.6456, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.1018494060353718e-05, "epoch": 16.25, "percentage": 54.17, "elapsed_time": "0:18:57", "remaining_time": "0:16:02"}
14
+ {"current_steps": 70, "total_steps": 120, "loss": 0.6238, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 9.397769477372204e-06, "epoch": 17.5, "percentage": 58.33, "elapsed_time": "0:20:26", "remaining_time": "0:14:36"}
15
+ {"current_steps": 75, "total_steps": 120, "loss": 0.5803, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 7.831019467181105e-06, "epoch": 18.75, "percentage": 62.5, "elapsed_time": "0:21:52", "remaining_time": "0:13:07"}
16
+ {"current_steps": 80, "total_steps": 120, "loss": 0.5901, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 6.345503339445723e-06, "epoch": 20.0, "percentage": 66.67, "elapsed_time": "0:23:20", "remaining_time": "0:11:40"}
17
+ {"current_steps": 85, "total_steps": 120, "loss": 0.5654, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 4.967067045259296e-06, "epoch": 21.25, "percentage": 70.83, "elapsed_time": "0:24:49", "remaining_time": "0:10:13"}
18
+ {"current_steps": 90, "total_steps": 120, "loss": 0.5594, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 3.7196934929050185e-06, "epoch": 22.5, "percentage": 75.0, "elapsed_time": "0:26:17", "remaining_time": "0:08:45"}
19
+ {"current_steps": 95, "total_steps": 120, "loss": 0.5406, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.625085278017651e-06, "epoch": 23.75, "percentage": 79.17, "elapsed_time": "0:27:43", "remaining_time": "0:07:17"}
20
+ {"current_steps": 100, "total_steps": 120, "loss": 0.5569, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.7022870880697955e-06, "epoch": 25.0, "percentage": 83.33, "elapsed_time": "0:29:11", "remaining_time": "0:05:50"}
21
+ {"current_steps": 105, "total_steps": 120, "loss": 0.5415, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 9.673543508289639e-07, "epoch": 26.25, "percentage": 87.5, "elapsed_time": "0:30:40", "remaining_time": "0:04:22"}
22
+ {"current_steps": 110, "total_steps": 120, "loss": 0.5503, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 4.3307389184951696e-07, "epoch": 27.5, "percentage": 91.67, "elapsed_time": "0:32:09", "remaining_time": "0:02:55"}
23
+ {"current_steps": 115, "total_steps": 120, "loss": 0.5384, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.087414611775403e-07, "epoch": 28.75, "percentage": 95.83, "elapsed_time": "0:33:35", "remaining_time": "0:01:27"}
24
+ {"current_steps": 120, "total_steps": 120, "loss": 0.5373, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 0.0, "epoch": 30.0, "percentage": 100.0, "elapsed_time": "0:35:04", "remaining_time": "0:00:00"}
25
+ {"current_steps": 120, "total_steps": 120, "loss": null, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": null, "epoch": 30.0, "percentage": 100.0, "elapsed_time": "0:35:04", "remaining_time": "0:00:00"}
trainer_state.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 30.0,
5
+ "eval_steps": 500,
6
+ "global_step": 120,
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.25,
13
+ "learning_rate": 2.493036906838148e-05,
14
+ "loss": 1.6733,
15
+ "step": 5
16
+ },
17
+ {
18
+ "epoch": 2.5,
19
+ "learning_rate": 2.4648822424126846e-05,
20
+ "loss": 1.5341,
21
+ "step": 10
22
+ },
23
+ {
24
+ "epoch": 3.75,
25
+ "learning_rate": 2.4155902867554447e-05,
26
+ "loss": 1.5014,
27
+ "step": 15
28
+ },
29
+ {
30
+ "epoch": 5.0,
31
+ "learning_rate": 2.3460186525516237e-05,
32
+ "loss": 1.3282,
33
+ "step": 20
34
+ },
35
+ {
36
+ "epoch": 6.25,
37
+ "learning_rate": 2.2573777911867937e-05,
38
+ "loss": 1.2251,
39
+ "step": 25
40
+ },
41
+ {
42
+ "epoch": 7.5,
43
+ "learning_rate": 2.1512099325465313e-05,
44
+ "loss": 1.1738,
45
+ "step": 30
46
+ },
47
+ {
48
+ "epoch": 8.75,
49
+ "learning_rate": 2.029362252323417e-05,
50
+ "loss": 1.0707,
51
+ "step": 35
52
+ },
53
+ {
54
+ "epoch": 10.0,
55
+ "learning_rate": 1.89395473368362e-05,
56
+ "loss": 0.9962,
57
+ "step": 40
58
+ },
59
+ {
60
+ "epoch": 11.25,
61
+ "learning_rate": 1.747343282456151e-05,
62
+ "loss": 0.8998,
63
+ "step": 45
64
+ },
65
+ {
66
+ "epoch": 12.5,
67
+ "learning_rate": 1.5920787375901038e-05,
68
+ "loss": 0.8471,
69
+ "step": 50
70
+ },
71
+ {
72
+ "epoch": 13.75,
73
+ "learning_rate": 1.4308624900419257e-05,
74
+ "loss": 0.7282,
75
+ "step": 55
76
+ },
77
+ {
78
+ "epoch": 15.0,
79
+ "learning_rate": 1.2664994822634489e-05,
80
+ "loss": 0.6841,
81
+ "step": 60
82
+ },
83
+ {
84
+ "epoch": 16.25,
85
+ "learning_rate": 1.1018494060353718e-05,
86
+ "loss": 0.6456,
87
+ "step": 65
88
+ },
89
+ {
90
+ "epoch": 17.5,
91
+ "learning_rate": 9.397769477372204e-06,
92
+ "loss": 0.6238,
93
+ "step": 70
94
+ },
95
+ {
96
+ "epoch": 18.75,
97
+ "learning_rate": 7.831019467181105e-06,
98
+ "loss": 0.5803,
99
+ "step": 75
100
+ },
101
+ {
102
+ "epoch": 20.0,
103
+ "learning_rate": 6.345503339445723e-06,
104
+ "loss": 0.5901,
105
+ "step": 80
106
+ },
107
+ {
108
+ "epoch": 21.25,
109
+ "learning_rate": 4.967067045259296e-06,
110
+ "loss": 0.5654,
111
+ "step": 85
112
+ },
113
+ {
114
+ "epoch": 22.5,
115
+ "learning_rate": 3.7196934929050185e-06,
116
+ "loss": 0.5594,
117
+ "step": 90
118
+ },
119
+ {
120
+ "epoch": 23.75,
121
+ "learning_rate": 2.625085278017651e-06,
122
+ "loss": 0.5406,
123
+ "step": 95
124
+ },
125
+ {
126
+ "epoch": 25.0,
127
+ "learning_rate": 1.7022870880697955e-06,
128
+ "loss": 0.5569,
129
+ "step": 100
130
+ },
131
+ {
132
+ "epoch": 26.25,
133
+ "learning_rate": 9.673543508289639e-07,
134
+ "loss": 0.5415,
135
+ "step": 105
136
+ },
137
+ {
138
+ "epoch": 27.5,
139
+ "learning_rate": 4.3307389184951696e-07,
140
+ "loss": 0.5503,
141
+ "step": 110
142
+ },
143
+ {
144
+ "epoch": 28.75,
145
+ "learning_rate": 1.087414611775403e-07,
146
+ "loss": 0.5384,
147
+ "step": 115
148
+ },
149
+ {
150
+ "epoch": 30.0,
151
+ "learning_rate": 0.0,
152
+ "loss": 0.5373,
153
+ "step": 120
154
+ },
155
+ {
156
+ "epoch": 30.0,
157
+ "step": 120,
158
+ "total_flos": 2.36562943574016e+16,
159
+ "train_loss": 0.8538130601247151,
160
+ "train_runtime": 2104.0236,
161
+ "train_samples_per_second": 1.141,
162
+ "train_steps_per_second": 0.057
163
+ }
164
+ ],
165
+ "logging_steps": 5,
166
+ "max_steps": 120,
167
+ "num_input_tokens_seen": 0,
168
+ "num_train_epochs": 30,
169
+ "save_steps": 100,
170
+ "total_flos": 2.36562943574016e+16,
171
+ "train_batch_size": 5,
172
+ "trial_name": null,
173
+ "trial_params": null
174
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:948824c6f5a789118931893ce339016ad34f3ef01a118a23cacdc85bb0e6cb99
3
+ size 4920