mahim commited on
Commit
cd3fefe
·
1 Parent(s): d117603

Model save

Browse files
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.0651
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: 16
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: 4096
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.0692 | 0.67 | 34 | 1.0651 |
55
+
56
+
57
+ ### Framework versions
58
+
59
+ - Transformers 4.35.0
60
+ - Pytorch 2.1.1+cu121
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
+ "k_proj",
20
+ "v_proj",
21
+ "o_proj",
22
+ "q_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:c5d7a1489a3ae3f95ca3c21036a3ea1772724cafe2f63d7cd61c5a040944d279
3
+ size 218138576
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "eval_loss": 1.0650625228881836,
4
+ "eval_runtime": 2738.8848,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 8.438,
7
+ "eval_steps_per_second": 0.528,
8
+ "train_loss": 1.0904016074012308,
9
+ "train_runtime": 80304.7961,
10
+ "train_samples": 207865,
11
+ "train_samples_per_second": 2.588,
12
+ "train_steps_per_second": 0.001
13
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.67,
3
+ "eval_loss": 1.0650625228881836,
4
+ "eval_runtime": 2738.8848,
5
+ "eval_samples": 23110,
6
+ "eval_samples_per_second": 8.438,
7
+ "eval_steps_per_second": 0.528
8
+ }
runs/Nov24_17-30-11_devmahim/events.out.tfevents.1700847033.devmahim.2036618.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0830f6bf74a52f401c6f0689d4fef649f9840b1fae4ece8a545fb5f8100604d0
3
+ size 4564
runs/Nov24_18-36-10_devmahim/events.out.tfevents.1700850999.devmahim.2078923.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f26a188d6cdaf04accc8b94c7bf05f98b2ef1b5a4e3518df37b4ea95fdbff08
3
+ size 4256
runs/Nov24_18-37-49_devmahim/events.out.tfevents.1700851096.devmahim.2080302.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41819dfce74c366176c016201dd274806bc3a02dd9628ccddce4f4504d547277
3
+ size 4256
runs/Nov24_18-39-24_devmahim/events.out.tfevents.1700851192.devmahim.2081668.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69cbd15bf20e9ac763a025b5f9413f8eeb27d6a895a849a0378087c7b1e81ab6
3
+ size 4257
runs/Nov24_18-41-38_devmahim/events.out.tfevents.1700851324.devmahim.2083450.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a1d3e0289789726ec5d4740052e4e90fbb3f72ab3aaaa963f825d15450df307
3
+ size 4257
runs/Nov24_18-43-00_devmahim/events.out.tfevents.1700851407.devmahim.2084637.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25e600da05915b5e27cd3ef83147ed64ce32798a9a2c51deb23f38de695fa2b5
3
+ size 5949
runs/Nov24_18-43-00_devmahim/events.out.tfevents.1700934446.devmahim.2084637.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5975e80f2ecb62cbec77321b91d056c9e192f7fa6147984cc47353a2bacca10
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_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.0904016074012308,
4
+ "train_runtime": 80304.7961,
5
+ "train_samples": 207865,
6
+ "train_samples_per_second": 2.588,
7
+ "train_steps_per_second": 0.001
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.6699507389162561,
5
+ "eval_steps": 500,
6
+ "global_step": 34,
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.9980267284282718e-05,
14
+ "loss": 1.1284,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.1,
19
+ "learning_rate": 1.9510565162951538e-05,
20
+ "loss": 1.1267,
21
+ "step": 5
22
+ },
23
+ {
24
+ "epoch": 0.2,
25
+ "learning_rate": 1.8090169943749477e-05,
26
+ "loss": 1.1095,
27
+ "step": 10
28
+ },
29
+ {
30
+ "epoch": 0.3,
31
+ "learning_rate": 1.5877852522924733e-05,
32
+ "loss": 1.0936,
33
+ "step": 15
34
+ },
35
+ {
36
+ "epoch": 0.39,
37
+ "learning_rate": 1.3090169943749475e-05,
38
+ "loss": 1.0798,
39
+ "step": 20
40
+ },
41
+ {
42
+ "epoch": 0.49,
43
+ "learning_rate": 1e-05,
44
+ "loss": 1.0735,
45
+ "step": 25
46
+ },
47
+ {
48
+ "epoch": 0.59,
49
+ "learning_rate": 6.909830056250527e-06,
50
+ "loss": 1.0692,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 0.67,
55
+ "eval_loss": 1.0651233196258545,
56
+ "eval_runtime": 2736.8633,
57
+ "eval_samples_per_second": 8.444,
58
+ "eval_steps_per_second": 0.528,
59
+ "step": 34
60
+ },
61
+ {
62
+ "epoch": 0.67,
63
+ "step": 34,
64
+ "total_flos": 1.227587490695191e+19,
65
+ "train_loss": 1.0904016074012308,
66
+ "train_runtime": 80304.7961,
67
+ "train_samples_per_second": 2.588,
68
+ "train_steps_per_second": 0.001
69
+ }
70
+ ],
71
+ "logging_steps": 5,
72
+ "max_steps": 50,
73
+ "num_train_epochs": 1,
74
+ "save_steps": 500,
75
+ "total_flos": 1.227587490695191e+19,
76
+ "trial_name": null,
77
+ "trial_params": null
78
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f81ff2fc58f214df9f7dd6632b92e9e9a584184f173c980ec0a53c2a4cf29c48
3
+ size 4664