sikoraaxd commited on
Commit
506ef64
1 Parent(s): c1b4938

phi3-mini-4k-instruct-ru-lora

Browse files
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: microsoft/Phi-3-mini-4k-instruct
9
+ datasets:
10
+ - generator
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-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - eval_loss: 1.3661
24
+ - eval_runtime: 1167.2302
25
+ - eval_samples_per_second: 0.928
26
+ - eval_steps_per_second: 0.232
27
+ - epoch: 0.3783
28
+ - step: 909
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 5e-06
48
+ - train_batch_size: 4
49
+ - eval_batch_size: 4
50
+ - seed: 0
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_ratio: 0.2
54
+ - num_epochs: 1
55
+
56
+ ### Framework versions
57
+
58
+ - PEFT 0.11.1
59
+ - Transformers 4.41.1
60
+ - Pytorch 2.3.0+cu121
61
+ - Datasets 2.19.2
62
+ - 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-mini-4k-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
+ "qkv_proj",
26
+ "gate_up_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:fc0986f737cf4e0e81764ecea93a5fc1b00f73e6c6d992d67d57ad49933e5715
3
+ size 50366280
added_tokens.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "<|assistant|>": 32001,
3
+ "<|endoftext|>": 32000,
4
+ "<|end|>": 32007,
5
+ "<|placeholder1|>": 32002,
6
+ "<|placeholder2|>": 32003,
7
+ "<|placeholder3|>": 32004,
8
+ "<|placeholder4|>": 32005,
9
+ "<|placeholder5|>": 32008,
10
+ "<|placeholder6|>": 32009,
11
+ "<|system|>": 32006,
12
+ "<|user|>": 32010
13
+ }
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_loss": 1.3661268949508667,
4
+ "eval_runtime": 129.3698,
5
+ "eval_samples": 4780,
6
+ "eval_samples_per_second": 0.928,
7
+ "eval_steps_per_second": 0.232,
8
+ "total_flos": 4.955226157508198e+16,
9
+ "train_loss": 2.0918177352961997,
10
+ "train_runtime": 4098.0987,
11
+ "train_samples_per_second": 0.263,
12
+ "train_steps_per_second": 0.066
13
+ }
eval_results.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "eval_loss": 1.3661268949508667,
3
+ "eval_samples": 4780
4
+ }
runs/Jun05_10-56-35_2a47410b93d0/events.out.tfevents.1717585022.2a47410b93d0.277.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82c2630c8d7be737abd85fb6052ebde43e7f02fd5b9a18775d2c8a272b3d3ec7
3
+ size 8231
runs/Jun05_10-56-35_2a47410b93d0/events.out.tfevents.1717589249.2a47410b93d0.277.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea3ecc625d23f529635abcc3441ee03e6cdcfa47dd089a267a03007141b18e94
3
+ size 359
runs/Jun05_10-56-35_2a47410b93d0/events.out.tfevents.1717589451.2a47410b93d0.277.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0808454dbbaab3f617a97f00826d52cd5ccadb1b8c42868ecf0d0b2859fcefb
3
+ size 14900
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.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
26
+ "single_word": false,
27
+ "special": false
28
+ },
29
+ "32000": {
30
+ "content": "<|endoftext|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<|assistant|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": true,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "32002": {
46
+ "content": "<|placeholder1|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": true,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "32003": {
54
+ "content": "<|placeholder2|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": true,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "32004": {
62
+ "content": "<|placeholder3|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": true,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "32005": {
70
+ "content": "<|placeholder4|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": true,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "32006": {
78
+ "content": "<|system|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": true,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "32007": {
86
+ "content": "<|end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": true,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "32008": {
94
+ "content": "<|placeholder5|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": true,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "32009": {
102
+ "content": "<|placeholder6|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": true,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "32010": {
110
+ "content": "<|user|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": true,
114
+ "single_word": false,
115
+ "special": true
116
+ }
117
+ },
118
+ "bos_token": "<s>",
119
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') %}{{'<|user|>' + '\n' + message['content'] + '<|end|>' + '\n' + '<|assistant|>' + '\n'}}{% elif (message['role'] == 'assistant') %}{{message['content'] + '<|end|>' + '\n'}}{% endif %}{% endfor %}",
120
+ "clean_up_tokenization_spaces": false,
121
+ "eos_token": "<|endoftext|>",
122
+ "legacy": false,
123
+ "model_max_length": 2048,
124
+ "pad_token": "<unk>",
125
+ "padding_side": "left",
126
+ "sp_model_kwargs": {},
127
+ "tokenizer_class": "LlamaTokenizer",
128
+ "unk_token": "<unk>",
129
+ "use_default_system_prompt": false
130
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 4.955226157508198e+16,
4
+ "train_loss": 2.0918177352961997,
5
+ "train_runtime": 4098.0987,
6
+ "train_samples_per_second": 0.263,
7
+ "train_steps_per_second": 0.066
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 269,
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.07434944237918216,
13
+ "grad_norm": 2.5,
14
+ "learning_rate": 1.8518518518518519e-06,
15
+ "loss": 2.7059,
16
+ "step": 20
17
+ },
18
+ {
19
+ "epoch": 0.14869888475836432,
20
+ "grad_norm": 2.5,
21
+ "learning_rate": 3.7037037037037037e-06,
22
+ "loss": 2.7411,
23
+ "step": 40
24
+ },
25
+ {
26
+ "epoch": 0.22304832713754646,
27
+ "grad_norm": 3.078125,
28
+ "learning_rate": 4.990398100856367e-06,
29
+ "loss": 2.5655,
30
+ "step": 60
31
+ },
32
+ {
33
+ "epoch": 0.29739776951672864,
34
+ "grad_norm": 1.8984375,
35
+ "learning_rate": 4.821741763807186e-06,
36
+ "loss": 2.3063,
37
+ "step": 80
38
+ },
39
+ {
40
+ "epoch": 0.37174721189591076,
41
+ "grad_norm": 1.7421875,
42
+ "learning_rate": 4.456204510851957e-06,
43
+ "loss": 2.1029,
44
+ "step": 100
45
+ },
46
+ {
47
+ "epoch": 0.44609665427509293,
48
+ "grad_norm": 1.4453125,
49
+ "learning_rate": 3.924783462463541e-06,
50
+ "loss": 1.9675,
51
+ "step": 120
52
+ },
53
+ {
54
+ "epoch": 0.5204460966542751,
55
+ "grad_norm": 1.1875,
56
+ "learning_rate": 3.272542485937369e-06,
57
+ "loss": 1.9171,
58
+ "step": 140
59
+ },
60
+ {
61
+ "epoch": 0.5947955390334573,
62
+ "grad_norm": 1.25,
63
+ "learning_rate": 2.5547908335131704e-06,
64
+ "loss": 1.8781,
65
+ "step": 160
66
+ },
67
+ {
68
+ "epoch": 0.6691449814126395,
69
+ "grad_norm": 1.4453125,
70
+ "learning_rate": 1.832392984146018e-06,
71
+ "loss": 1.8382,
72
+ "step": 180
73
+ },
74
+ {
75
+ "epoch": 0.7434944237918215,
76
+ "grad_norm": 1.4296875,
77
+ "learning_rate": 1.1666074087171628e-06,
78
+ "loss": 1.8145,
79
+ "step": 200
80
+ },
81
+ {
82
+ "epoch": 0.8178438661710037,
83
+ "grad_norm": 1.2890625,
84
+ "learning_rate": 6.138919252022435e-07,
85
+ "loss": 1.8354,
86
+ "step": 220
87
+ },
88
+ {
89
+ "epoch": 0.8921933085501859,
90
+ "grad_norm": 1.3203125,
91
+ "learning_rate": 2.2111614344599686e-07,
92
+ "loss": 1.8125,
93
+ "step": 240
94
+ },
95
+ {
96
+ "epoch": 0.966542750929368,
97
+ "grad_norm": 1.453125,
98
+ "learning_rate": 2.1586978482366072e-08,
99
+ "loss": 1.8379,
100
+ "step": 260
101
+ },
102
+ {
103
+ "epoch": 1.0,
104
+ "step": 269,
105
+ "total_flos": 4.955226157508198e+16,
106
+ "train_loss": 2.0918177352961997,
107
+ "train_runtime": 4098.0987,
108
+ "train_samples_per_second": 0.263,
109
+ "train_steps_per_second": 0.066
110
+ }
111
+ ],
112
+ "logging_steps": 20,
113
+ "max_steps": 269,
114
+ "num_input_tokens_seen": 0,
115
+ "num_train_epochs": 1,
116
+ "save_steps": 100,
117
+ "stateful_callbacks": {
118
+ "TrainerControl": {
119
+ "args": {
120
+ "should_epoch_stop": false,
121
+ "should_evaluate": false,
122
+ "should_log": false,
123
+ "should_save": true,
124
+ "should_training_stop": false
125
+ },
126
+ "attributes": {}
127
+ }
128
+ },
129
+ "total_flos": 4.955226157508198e+16,
130
+ "train_batch_size": 4,
131
+ "trial_name": null,
132
+ "trial_params": null
133
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e63a01a0c53e96f07542cafc7e307916f45fc633c8246fa9711cb70d25bf0a46
3
+ size 5112