dwivedi-rishabh commited on
Commit
5483b98
·
verified ·
1 Parent(s): 406b934

End of training

Browse files
.ipynb_checkpoints/train_results-checkpoint.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 1.6486718999887872e+16,
4
+ "train_loss": 1.3161976137640756,
5
+ "train_runtime": 493.8113,
6
+ "train_samples_per_second": 1.45,
7
+ "train_steps_per_second": 0.362
8
+ }
.ipynb_checkpoints/trainer_state-checkpoint.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 179,
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.11173184357541899,
13
+ "grad_norm": 2.0458016395568848,
14
+ "learning_rate": 2.7777777777777783e-06,
15
+ "loss": 2.0107,
16
+ "step": 20
17
+ },
18
+ {
19
+ "epoch": 0.22346368715083798,
20
+ "grad_norm": 2.3176522254943848,
21
+ "learning_rate": 4.9903533134293035e-06,
22
+ "loss": 1.9625,
23
+ "step": 40
24
+ },
25
+ {
26
+ "epoch": 0.33519553072625696,
27
+ "grad_norm": 2.3477518558502197,
28
+ "learning_rate": 4.660472094042121e-06,
29
+ "loss": 1.7282,
30
+ "step": 60
31
+ },
32
+ {
33
+ "epoch": 0.44692737430167595,
34
+ "grad_norm": 2.8214402198791504,
35
+ "learning_rate": 3.92016186682789e-06,
36
+ "loss": 1.4047,
37
+ "step": 80
38
+ },
39
+ {
40
+ "epoch": 0.5586592178770949,
41
+ "grad_norm": 1.2627031803131104,
42
+ "learning_rate": 2.9100607788275547e-06,
43
+ "loss": 1.1131,
44
+ "step": 100
45
+ },
46
+ {
47
+ "epoch": 0.6703910614525139,
48
+ "grad_norm": 1.03634512424469,
49
+ "learning_rate": 1.8220596619089576e-06,
50
+ "loss": 0.9726,
51
+ "step": 120
52
+ },
53
+ {
54
+ "epoch": 0.7821229050279329,
55
+ "grad_norm": 0.9175835847854614,
56
+ "learning_rate": 8.628481651367876e-07,
57
+ "loss": 0.8899,
58
+ "step": 140
59
+ },
60
+ {
61
+ "epoch": 0.8938547486033519,
62
+ "grad_norm": 0.9105198979377747,
63
+ "learning_rate": 2.1464952759020857e-07,
64
+ "loss": 0.8588,
65
+ "step": 160
66
+ },
67
+ {
68
+ "epoch": 1.0,
69
+ "step": 179,
70
+ "total_flos": 1.6486718999887872e+16,
71
+ "train_loss": 1.3161976137640756,
72
+ "train_runtime": 493.8113,
73
+ "train_samples_per_second": 1.45,
74
+ "train_steps_per_second": 0.362
75
+ }
76
+ ],
77
+ "logging_steps": 20,
78
+ "max_steps": 179,
79
+ "num_input_tokens_seen": 0,
80
+ "num_train_epochs": 1,
81
+ "save_steps": 100,
82
+ "stateful_callbacks": {
83
+ "TrainerControl": {
84
+ "args": {
85
+ "should_epoch_stop": false,
86
+ "should_evaluate": false,
87
+ "should_log": false,
88
+ "should_save": true,
89
+ "should_training_stop": true
90
+ },
91
+ "attributes": {}
92
+ }
93
+ },
94
+ "total_flos": 1.6486718999887872e+16,
95
+ "train_batch_size": 4,
96
+ "trial_name": null,
97
+ "trial_params": null
98
+ }
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/Phi-3.5-mini-instruct
3
+ datasets:
4
+ - generator
5
+ library_name: peft
6
+ license: mit
7
+ tags:
8
+ - trl
9
+ - sft
10
+ - generated_from_trainer
11
+ model-index:
12
+ - name: checkpoint_dir
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
+ # checkpoint_dir
20
+
21
+ This model is a fine-tuned version of [microsoft/Phi-3.5-mini-instruct](https://huggingface.co/microsoft/Phi-3.5-mini-instruct) on the generator dataset.
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-06
41
+ - train_batch_size: 4
42
+ - eval_batch_size: 4
43
+ - seed: 0
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - lr_scheduler_warmup_ratio: 0.2
47
+ - num_epochs: 1
48
+
49
+ ### Training results
50
+
51
+
52
+
53
+ ### Framework versions
54
+
55
+ - PEFT 0.12.0
56
+ - Transformers 4.43.0
57
+ - Pytorch 2.4.0+cu121
58
+ - Datasets 2.21.0
59
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "microsoft/Phi-3.5-mini-instruct",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "down_proj",
24
+ "o_proj",
25
+ "gate_up_proj",
26
+ "qkv_proj"
27
+ ],
28
+ "task_type": "CAUSAL_LM",
29
+ "use_dora": false,
30
+ "use_rslora": false
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:060b0bcb07a7a61833c3c0d4d6fa80e3b4b8f0ce65d446af7d89ebdb9243056b
3
+ size 100697728
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 1.6486718999887872e+16,
4
+ "train_loss": 1.3161976137640756,
5
+ "train_runtime": 493.8113,
6
+ "train_samples_per_second": 1.45,
7
+ "train_steps_per_second": 0.362
8
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<unk>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": true,
27
+ "single_word": false,
28
+ "special": false
29
+ },
30
+ "32000": {
31
+ "content": "<|endoftext|>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "32001": {
39
+ "content": "<|assistant|>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": true,
43
+ "single_word": false,
44
+ "special": true
45
+ },
46
+ "32002": {
47
+ "content": "<|placeholder1|>",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": true,
51
+ "single_word": false,
52
+ "special": true
53
+ },
54
+ "32003": {
55
+ "content": "<|placeholder2|>",
56
+ "lstrip": false,
57
+ "normalized": false,
58
+ "rstrip": true,
59
+ "single_word": false,
60
+ "special": true
61
+ },
62
+ "32004": {
63
+ "content": "<|placeholder3|>",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": true,
67
+ "single_word": false,
68
+ "special": true
69
+ },
70
+ "32005": {
71
+ "content": "<|placeholder4|>",
72
+ "lstrip": false,
73
+ "normalized": false,
74
+ "rstrip": true,
75
+ "single_word": false,
76
+ "special": true
77
+ },
78
+ "32006": {
79
+ "content": "<|system|>",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": true,
83
+ "single_word": false,
84
+ "special": true
85
+ },
86
+ "32007": {
87
+ "content": "<|end|>",
88
+ "lstrip": false,
89
+ "normalized": false,
90
+ "rstrip": true,
91
+ "single_word": false,
92
+ "special": true
93
+ },
94
+ "32008": {
95
+ "content": "<|placeholder5|>",
96
+ "lstrip": false,
97
+ "normalized": false,
98
+ "rstrip": true,
99
+ "single_word": false,
100
+ "special": true
101
+ },
102
+ "32009": {
103
+ "content": "<|placeholder6|>",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": true,
107
+ "single_word": false,
108
+ "special": true
109
+ },
110
+ "32010": {
111
+ "content": "<|user|>",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": true,
115
+ "single_word": false,
116
+ "special": true
117
+ }
118
+ },
119
+ "bos_token": "<s>",
120
+ "chat_template": "{% for message in messages %}{% if message['role'] == 'system' and message['content'] %}{{'<|system|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'user' %}{{'<|user|>\n' + message['content'] + '<|end|>\n'}}{% elif message['role'] == 'assistant' %}{{'<|assistant|>\n' + message['content'] + '<|end|>\n'}}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>\n' }}{% else %}{{ eos_token }}{% endif %}",
121
+ "clean_up_tokenization_spaces": false,
122
+ "eos_token": "<|endoftext|>",
123
+ "legacy": false,
124
+ "model_max_length": 2048,
125
+ "pad_token": "<unk>",
126
+ "padding_side": "right",
127
+ "sp_model_kwargs": {},
128
+ "tokenizer_class": "LlamaTokenizer",
129
+ "unk_token": "<unk>",
130
+ "use_default_system_prompt": false
131
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 1.6486718999887872e+16,
4
+ "train_loss": 1.3161976137640756,
5
+ "train_runtime": 493.8113,
6
+ "train_samples_per_second": 1.45,
7
+ "train_steps_per_second": 0.362
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 179,
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.11173184357541899,
13
+ "grad_norm": 2.0458016395568848,
14
+ "learning_rate": 2.7777777777777783e-06,
15
+ "loss": 2.0107,
16
+ "step": 20
17
+ },
18
+ {
19
+ "epoch": 0.22346368715083798,
20
+ "grad_norm": 2.3176522254943848,
21
+ "learning_rate": 4.9903533134293035e-06,
22
+ "loss": 1.9625,
23
+ "step": 40
24
+ },
25
+ {
26
+ "epoch": 0.33519553072625696,
27
+ "grad_norm": 2.3477518558502197,
28
+ "learning_rate": 4.660472094042121e-06,
29
+ "loss": 1.7282,
30
+ "step": 60
31
+ },
32
+ {
33
+ "epoch": 0.44692737430167595,
34
+ "grad_norm": 2.8214402198791504,
35
+ "learning_rate": 3.92016186682789e-06,
36
+ "loss": 1.4047,
37
+ "step": 80
38
+ },
39
+ {
40
+ "epoch": 0.5586592178770949,
41
+ "grad_norm": 1.2627031803131104,
42
+ "learning_rate": 2.9100607788275547e-06,
43
+ "loss": 1.1131,
44
+ "step": 100
45
+ },
46
+ {
47
+ "epoch": 0.6703910614525139,
48
+ "grad_norm": 1.03634512424469,
49
+ "learning_rate": 1.8220596619089576e-06,
50
+ "loss": 0.9726,
51
+ "step": 120
52
+ },
53
+ {
54
+ "epoch": 0.7821229050279329,
55
+ "grad_norm": 0.9175835847854614,
56
+ "learning_rate": 8.628481651367876e-07,
57
+ "loss": 0.8899,
58
+ "step": 140
59
+ },
60
+ {
61
+ "epoch": 0.8938547486033519,
62
+ "grad_norm": 0.9105198979377747,
63
+ "learning_rate": 2.1464952759020857e-07,
64
+ "loss": 0.8588,
65
+ "step": 160
66
+ },
67
+ {
68
+ "epoch": 1.0,
69
+ "step": 179,
70
+ "total_flos": 1.6486718999887872e+16,
71
+ "train_loss": 1.3161976137640756,
72
+ "train_runtime": 493.8113,
73
+ "train_samples_per_second": 1.45,
74
+ "train_steps_per_second": 0.362
75
+ }
76
+ ],
77
+ "logging_steps": 20,
78
+ "max_steps": 179,
79
+ "num_input_tokens_seen": 0,
80
+ "num_train_epochs": 1,
81
+ "save_steps": 100,
82
+ "stateful_callbacks": {
83
+ "TrainerControl": {
84
+ "args": {
85
+ "should_epoch_stop": false,
86
+ "should_evaluate": false,
87
+ "should_log": false,
88
+ "should_save": true,
89
+ "should_training_stop": true
90
+ },
91
+ "attributes": {}
92
+ }
93
+ },
94
+ "total_flos": 1.6486718999887872e+16,
95
+ "train_batch_size": 4,
96
+ "trial_name": null,
97
+ "trial_params": null
98
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a57cfce748bb2eb9c2b2a3a14a0289c4c8bd2938434ffa7a8e254bf2758e133
3
+ size 5432