Model save
Browse files- README.md +62 -0
- adapter_config.json +25 -0
- adapter_model.safetensors +3 -0
- all_results.json +13 -0
- eval_results.json +8 -0
- runs/Nov12_19-11-33_da8ccdf2e00f/events.out.tfevents.1699816311.da8ccdf2e00f.6983.0 +3 -0
- runs/Nov12_20-44-28_da8ccdf2e00f/events.out.tfevents.1699821891.da8ccdf2e00f.7276.0 +3 -0
- runs/Nov12_20-49-30_da8ccdf2e00f/events.out.tfevents.1699822184.da8ccdf2e00f.7735.0 +3 -0
- runs/Nov12_21-14-27_da8ccdf2e00f/events.out.tfevents.1699823693.da8ccdf2e00f.8224.0 +3 -0
- runs/Nov12_21-16-28_da8ccdf2e00f/events.out.tfevents.1699823823.da8ccdf2e00f.8714.0 +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +41 -0
- train_results.json +8 -0
- trainer_state.json +162 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
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
|
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.0542
|
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: 4
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- distributed_type: multi-GPU
|
42 |
+
- num_devices: 2
|
43 |
+
- gradient_accumulation_steps: 128
|
44 |
+
- total_train_batch_size: 1024
|
45 |
+
- total_eval_batch_size: 16
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: cosine
|
48 |
+
- num_epochs: 1
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
54 |
+
| 1.0498 | 0.66 | 40 | 1.0542 |
|
55 |
+
|
56 |
+
|
57 |
+
### Framework versions
|
58 |
+
|
59 |
+
- Transformers 4.35.0
|
60 |
+
- Pytorch 2.1.0a0+32f93b1
|
61 |
+
- Datasets 2.14.6
|
62 |
+
- 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 |
+
"o_proj",
|
20 |
+
"v_proj",
|
21 |
+
"q_proj",
|
22 |
+
"k_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:32160ca36f88d5f0a2e9826d9033bb4ffefe3fa08c7082e628f5b167dc9d4141
|
3 |
+
size 218138576
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.66,
|
3 |
+
"eval_loss": 1.0541865825653076,
|
4 |
+
"eval_runtime": 1943.4287,
|
5 |
+
"eval_samples": 23110,
|
6 |
+
"eval_samples_per_second": 11.891,
|
7 |
+
"eval_steps_per_second": 0.744,
|
8 |
+
"train_loss": 1.106418876349926,
|
9 |
+
"train_runtime": 18557.3295,
|
10 |
+
"train_samples": 62359,
|
11 |
+
"train_samples_per_second": 3.36,
|
12 |
+
"train_steps_per_second": 0.003
|
13 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.66,
|
3 |
+
"eval_loss": 1.0541865825653076,
|
4 |
+
"eval_runtime": 1943.4287,
|
5 |
+
"eval_samples": 23110,
|
6 |
+
"eval_samples_per_second": 11.891,
|
7 |
+
"eval_steps_per_second": 0.744
|
8 |
+
}
|
runs/Nov12_19-11-33_da8ccdf2e00f/events.out.tfevents.1699816311.da8ccdf2e00f.6983.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e4b632f5863ff180b092a3a0c9887b0cd1d05ed27684f284693cbe6d5a1fd97
|
3 |
+
size 4600
|
runs/Nov12_20-44-28_da8ccdf2e00f/events.out.tfevents.1699821891.da8ccdf2e00f.7276.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:640bf4414f473c88b38fec13c6278272564597a4c9deb7b2939b752f1690d3d4
|
3 |
+
size 4600
|
runs/Nov12_20-49-30_da8ccdf2e00f/events.out.tfevents.1699822184.da8ccdf2e00f.7735.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b38c38502ca169a9ccdeb0e546f9a6777b154ec07be9f25d8965d8ffebce60c8
|
3 |
+
size 4366
|
runs/Nov12_21-14-27_da8ccdf2e00f/events.out.tfevents.1699823693.da8ccdf2e00f.8224.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6da8f42597b4b1405a81e5c658a17181b3b5c8c9601d42cea586a11fc2830612
|
3 |
+
size 4600
|
runs/Nov12_21-16-28_da8ccdf2e00f/events.out.tfevents.1699823823.da8ccdf2e00f.8714.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f17dd2f5aed654bbd44783a92fc3c5951bcdf3bc8b351d47036e15d28611cb8
|
3 |
+
size 4600
|
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_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.66,
|
3 |
+
"train_loss": 1.106418876349926,
|
4 |
+
"train_runtime": 18557.3295,
|
5 |
+
"train_samples": 62359,
|
6 |
+
"train_samples_per_second": 3.36,
|
7 |
+
"train_steps_per_second": 0.003
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.6568313021167415,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 40,
|
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.02,
|
13 |
+
"learning_rate": 1.9986295347545738e-05,
|
14 |
+
"loss": 1.1468,
|
15 |
+
"step": 1
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"epoch": 0.03,
|
19 |
+
"learning_rate": 1.9945218953682736e-05,
|
20 |
+
"loss": 1.1476,
|
21 |
+
"step": 2
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"epoch": 0.07,
|
25 |
+
"learning_rate": 1.9781476007338058e-05,
|
26 |
+
"loss": 1.1366,
|
27 |
+
"step": 4
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"epoch": 0.1,
|
31 |
+
"learning_rate": 1.9510565162951538e-05,
|
32 |
+
"loss": 1.1232,
|
33 |
+
"step": 6
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"epoch": 0.13,
|
37 |
+
"learning_rate": 1.913545457642601e-05,
|
38 |
+
"loss": 1.1253,
|
39 |
+
"step": 8
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.16,
|
43 |
+
"learning_rate": 1.866025403784439e-05,
|
44 |
+
"loss": 1.0947,
|
45 |
+
"step": 10
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 0.2,
|
49 |
+
"learning_rate": 1.8090169943749477e-05,
|
50 |
+
"loss": 1.1062,
|
51 |
+
"step": 12
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.23,
|
55 |
+
"learning_rate": 1.7431448254773943e-05,
|
56 |
+
"loss": 1.1017,
|
57 |
+
"step": 14
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"epoch": 0.26,
|
61 |
+
"learning_rate": 1.6691306063588583e-05,
|
62 |
+
"loss": 1.0888,
|
63 |
+
"step": 16
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 0.3,
|
67 |
+
"learning_rate": 1.5877852522924733e-05,
|
68 |
+
"loss": 1.0726,
|
69 |
+
"step": 18
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.33,
|
73 |
+
"learning_rate": 1.5000000000000002e-05,
|
74 |
+
"loss": 1.0734,
|
75 |
+
"step": 20
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"epoch": 0.36,
|
79 |
+
"learning_rate": 1.4067366430758004e-05,
|
80 |
+
"loss": 1.0815,
|
81 |
+
"step": 22
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"epoch": 0.39,
|
85 |
+
"learning_rate": 1.3090169943749475e-05,
|
86 |
+
"loss": 1.0628,
|
87 |
+
"step": 24
|
88 |
+
},
|
89 |
+
{
|
90 |
+
"epoch": 0.43,
|
91 |
+
"learning_rate": 1.2079116908177592e-05,
|
92 |
+
"loss": 1.0674,
|
93 |
+
"step": 26
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.46,
|
97 |
+
"learning_rate": 1.1045284632676535e-05,
|
98 |
+
"loss": 1.0667,
|
99 |
+
"step": 28
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.49,
|
103 |
+
"learning_rate": 1e-05,
|
104 |
+
"loss": 1.0732,
|
105 |
+
"step": 30
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"epoch": 0.53,
|
109 |
+
"learning_rate": 8.954715367323468e-06,
|
110 |
+
"loss": 1.0647,
|
111 |
+
"step": 32
|
112 |
+
},
|
113 |
+
{
|
114 |
+
"epoch": 0.56,
|
115 |
+
"learning_rate": 7.92088309182241e-06,
|
116 |
+
"loss": 1.0574,
|
117 |
+
"step": 34
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 0.59,
|
121 |
+
"learning_rate": 6.909830056250527e-06,
|
122 |
+
"loss": 1.0483,
|
123 |
+
"step": 36
|
124 |
+
},
|
125 |
+
{
|
126 |
+
"epoch": 0.62,
|
127 |
+
"learning_rate": 5.932633569242e-06,
|
128 |
+
"loss": 1.0492,
|
129 |
+
"step": 38
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.66,
|
133 |
+
"learning_rate": 5.000000000000003e-06,
|
134 |
+
"loss": 1.0498,
|
135 |
+
"step": 40
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.66,
|
139 |
+
"eval_loss": 1.0541661977767944,
|
140 |
+
"eval_runtime": 1943.1867,
|
141 |
+
"eval_samples_per_second": 11.893,
|
142 |
+
"eval_steps_per_second": 0.744,
|
143 |
+
"step": 40
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"epoch": 0.66,
|
147 |
+
"step": 40,
|
148 |
+
"total_flos": 3.680138604408996e+18,
|
149 |
+
"train_loss": 1.106418876349926,
|
150 |
+
"train_runtime": 18557.3295,
|
151 |
+
"train_samples_per_second": 3.36,
|
152 |
+
"train_steps_per_second": 0.003
|
153 |
+
}
|
154 |
+
],
|
155 |
+
"logging_steps": 2,
|
156 |
+
"max_steps": 60,
|
157 |
+
"num_train_epochs": 1,
|
158 |
+
"save_steps": 10,
|
159 |
+
"total_flos": 3.680138604408996e+18,
|
160 |
+
"trial_name": null,
|
161 |
+
"trial_params": null
|
162 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:adff60bda7422c945eb8aec1ca5a522788ed748871e09ae4873b72da37ce62bd
|
3 |
+
size 4664
|