Abe13 commited on
Commit
7385d4c
·
1 Parent(s): e2a4929

Model save

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: mistralai/Mistral-7B-v0.1
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: zephyr-7b-sft-lora-1
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # zephyr-7b-sft-lora-1
15
+
16
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 1.0254
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: 2e-05
38
+ - train_batch_size: 1
39
+ - eval_batch_size: 2
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - gradient_accumulation_steps: 128
43
+ - total_train_batch_size: 128
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - num_epochs: 1
47
+
48
+ ### Training results
49
+
50
+ | Training Loss | Epoch | Step | Validation Loss |
51
+ |:-------------:|:-----:|:----:|:---------------:|
52
+ | 1.0313 | 0.67 | 108 | 1.0254 |
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.35.0
58
+ - Pytorch 2.1.0+cu121
59
+ - Datasets 2.14.6
60
+ - Tokenizers 0.14.1
adapter_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
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
+ "lora_alpha": 16,
12
+ "lora_dropout": 0.1,
13
+ "modules_to_save": null,
14
+ "peft_type": "LORA",
15
+ "r": 64,
16
+ "rank_pattern": {},
17
+ "revision": null,
18
+ "target_modules": [
19
+ "q_proj",
20
+ "k_proj",
21
+ "v_proj",
22
+ "o_proj"
23
+ ],
24
+ "task_type": "CAUSAL_LM"
25
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:086a622d4d3d1c5dc7a1a374d72f1bb3ad55462af07416110e692e63feae2862
3
+ size 218138576
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "eval_loss": 1.025382399559021,
4
+ "eval_runtime": 12687.4465,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 1.821,
7
+ "eval_steps_per_second": 0.911,
8
+ "train_loss": 1.0669225134231426,
9
+ "train_runtime": 50855.7644,
10
+ "train_samples": 20786,
11
+ "train_samples_per_second": 0.409,
12
+ "train_steps_per_second": 0.003
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "eval_loss": 1.025382399559021,
4
+ "eval_runtime": 12687.4465,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 1.821,
7
+ "eval_steps_per_second": 0.911
8
+ }
runs/Dec04_19-08-28_ip-172-16-178-34.ec2.internal/events.out.tfevents.1701716931.ip-172-16-178-34.ec2.internal.7250.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f6f669a3b3af83f45b6689d7d43ab9507b165676579bf60e1bf333c62428872
3
+ size 4665
runs/Dec04_19-10-11_ip-172-16-178-34.ec2.internal/events.out.tfevents.1701717034.ip-172-16-178-34.ec2.internal.8616.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5432354aefa91de6acd0112628f2234f1e292e95fc3de8e70400a30eabde0cbb
3
+ size 4665
runs/Dec04_19-12-55_ip-172-16-178-34.ec2.internal/events.out.tfevents.1701717195.ip-172-16-178-34.ec2.internal.10742.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df9411a80caf8c0ee558bc759c27b6311c2d2c918028a3273e7f025f64ffcd9e
3
+ size 4665
runs/Dec04_19-14-21_ip-172-16-178-34.ec2.internal/events.out.tfevents.1701717280.ip-172-16-178-34.ec2.internal.11896.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3eae9751c1d9861bdb86cae08d60f6df50569f5d0fee216f9238d81635e5dcdf
3
+ size 4667
runs/Dec04_19-16-13_ip-172-16-178-34.ec2.internal/events.out.tfevents.1701717397.ip-172-16-178-34.ec2.internal.13747.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f89438fa4da76e9d0bc026592f97ebffa81fde88b37431623eed71b7d20ab910
3
+ size 8669
runs/Dec04_19-16-13_ip-172-16-178-34.ec2.internal/events.out.tfevents.1701780941.ip-172-16-178-34.ec2.internal.13747.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a771c757e2a192ccee17ea5c6174787c6eed5ee8ab74ee024f894ba729f52c0d
3
+ size 354
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": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<unk>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ }
27
+ },
28
+ "additional_special_tokens": [],
29
+ "bos_token": "<s>",
30
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": true,
34
+ "model_max_length": 2048,
35
+ "pad_token": "</s>",
36
+ "sp_model_kwargs": {},
37
+ "spaces_between_special_tokens": false,
38
+ "tokenizer_class": "LlamaTokenizer",
39
+ "unk_token": "<unk>",
40
+ "use_default_system_prompt": true
41
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "train_loss": 1.0669225134231426,
4
+ "train_runtime": 50855.7644,
5
+ "train_samples": 20786,
6
+ "train_samples_per_second": 0.409,
7
+ "train_steps_per_second": 0.003
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.6650630231886847,
5
+ "eval_steps": 500,
6
+ "global_step": 108,
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.01,
13
+ "learning_rate": 1.9998119704485016e-05,
14
+ "loss": 1.1733,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.03,
19
+ "learning_rate": 1.9953027957931658e-05,
20
+ "loss": 1.1282,
21
+ "step": 5
22
+ },
23
+ {
24
+ "epoch": 0.06,
25
+ "learning_rate": 1.9812553106273848e-05,
26
+ "loss": 1.1452,
27
+ "step": 10
28
+ },
29
+ {
30
+ "epoch": 0.09,
31
+ "learning_rate": 1.957989512315489e-05,
32
+ "loss": 1.1346,
33
+ "step": 15
34
+ },
35
+ {
36
+ "epoch": 0.12,
37
+ "learning_rate": 1.9257239692688907e-05,
38
+ "loss": 1.1056,
39
+ "step": 20
40
+ },
41
+ {
42
+ "epoch": 0.15,
43
+ "learning_rate": 1.8847617971766577e-05,
44
+ "loss": 1.0978,
45
+ "step": 25
46
+ },
47
+ {
48
+ "epoch": 0.18,
49
+ "learning_rate": 1.8354878114129368e-05,
50
+ "loss": 1.067,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.22,
55
+ "learning_rate": 1.7783649119241603e-05,
56
+ "loss": 1.0392,
57
+ "step": 35
58
+ },
59
+ {
60
+ "epoch": 0.25,
61
+ "learning_rate": 1.7139297345578992e-05,
62
+ "loss": 1.0536,
63
+ "step": 40
64
+ },
65
+ {
66
+ "epoch": 0.28,
67
+ "learning_rate": 1.6427876096865394e-05,
68
+ "loss": 1.0547,
69
+ "step": 45
70
+ },
71
+ {
72
+ "epoch": 0.31,
73
+ "learning_rate": 1.5656068754865388e-05,
74
+ "loss": 1.0304,
75
+ "step": 50
76
+ },
77
+ {
78
+ "epoch": 0.34,
79
+ "learning_rate": 1.4831125992966386e-05,
80
+ "loss": 1.0428,
81
+ "step": 55
82
+ },
83
+ {
84
+ "epoch": 0.37,
85
+ "learning_rate": 1.396079766039157e-05,
86
+ "loss": 1.0502,
87
+ "step": 60
88
+ },
89
+ {
90
+ "epoch": 0.4,
91
+ "learning_rate": 1.3053259976951134e-05,
92
+ "loss": 1.0294,
93
+ "step": 65
94
+ },
95
+ {
96
+ "epoch": 0.43,
97
+ "learning_rate": 1.211703872229411e-05,
98
+ "loss": 1.0313,
99
+ "step": 70
100
+ },
101
+ {
102
+ "epoch": 0.46,
103
+ "learning_rate": 1.1160929141252303e-05,
104
+ "loss": 1.0468,
105
+ "step": 75
106
+ },
107
+ {
108
+ "epoch": 0.49,
109
+ "learning_rate": 1.0193913317718245e-05,
110
+ "loss": 1.0264,
111
+ "step": 80
112
+ },
113
+ {
114
+ "epoch": 0.52,
115
+ "learning_rate": 9.225075793280693e-06,
116
+ "loss": 1.0222,
117
+ "step": 85
118
+ },
119
+ {
120
+ "epoch": 0.55,
121
+ "learning_rate": 8.263518223330698e-06,
122
+ "loss": 1.0264,
123
+ "step": 90
124
+ },
125
+ {
126
+ "epoch": 0.59,
127
+ "learning_rate": 7.3182738723936255e-06,
128
+ "loss": 1.0263,
129
+ "step": 95
130
+ },
131
+ {
132
+ "epoch": 0.62,
133
+ "learning_rate": 6.3982227519528986e-06,
134
+ "loss": 1.051,
135
+ "step": 100
136
+ },
137
+ {
138
+ "epoch": 0.65,
139
+ "learning_rate": 5.512008197995379e-06,
140
+ "loss": 1.0313,
141
+ "step": 105
142
+ },
143
+ {
144
+ "epoch": 0.67,
145
+ "eval_loss": 1.025382399559021,
146
+ "eval_runtime": 12686.0816,
147
+ "eval_samples_per_second": 1.822,
148
+ "eval_steps_per_second": 0.911,
149
+ "step": 108
150
+ },
151
+ {
152
+ "epoch": 0.67,
153
+ "step": 108,
154
+ "total_flos": 1.227710764417024e+18,
155
+ "train_loss": 1.0669225134231426,
156
+ "train_runtime": 50855.7644,
157
+ "train_samples_per_second": 0.409,
158
+ "train_steps_per_second": 0.003
159
+ }
160
+ ],
161
+ "logging_steps": 5,
162
+ "max_steps": 162,
163
+ "num_train_epochs": 1,
164
+ "save_steps": 500,
165
+ "total_flos": 1.227710764417024e+18,
166
+ "trial_name": null,
167
+ "trial_params": null
168
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c83761e8ea3e80b8e0767530aa91bc4b8884d4311b040dc2687175898479acc3
3
+ size 4664