HachiML commited on
Commit
b13389e
1 Parent(s): 517e726

End of training

Browse files
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: tokyotech-llm/Swallow-MS-7b-v0.1
9
+ datasets:
10
+ - generator
11
+ model-index:
12
+ - name: Mistral-7b-sft-lora-ha-v1.0_cleaned
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
+ # Mistral-7b-sft-lora-ha-v1.0_cleaned
20
+
21
+ This model is a fine-tuned version of [tokyotech-llm/Swallow-MS-7b-v0.1](https://huggingface.co/tokyotech-llm/Swallow-MS-7b-v0.1) on the generator dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 1.2119
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 2e-05
43
+ - train_batch_size: 8
44
+ - eval_batch_size: 8
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.05
49
+ - num_epochs: 5
50
+
51
+ ### Training results
52
+
53
+ | Training Loss | Epoch | Step | Validation Loss |
54
+ |:-------------:|:-----:|:----:|:---------------:|
55
+ | 1.4836 | 1.0 | 189 | 1.2482 |
56
+ | 1.2209 | 2.0 | 378 | 1.2224 |
57
+ | 1.1941 | 3.0 | 567 | 1.2139 |
58
+ | 1.1819 | 4.0 | 756 | 1.2119 |
59
+ | 1.1787 | 5.0 | 945 | 1.2119 |
60
+
61
+
62
+ ### Framework versions
63
+
64
+ - PEFT 0.10.0
65
+ - Transformers 4.40.1
66
+ - Pytorch 2.2.1+cu121
67
+ - Datasets 2.19.0
68
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "tokyotech-llm/Swallow-MS-7b-v0.1",
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": 16,
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": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "up_proj",
24
+ "v_proj",
25
+ "lm_head",
26
+ "down_proj",
27
+ "o_proj",
28
+ "gate_proj",
29
+ "q_proj",
30
+ "k_proj"
31
+ ],
32
+ "task_type": "CAUSAL_LM",
33
+ "use_dora": false,
34
+ "use_rslora": false
35
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4caaf548e38f24fe417b8228035dcf5dadad4a7d19a88b10d078c7238b36f956
3
+ size 393371984
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 6.657716927594496e+17,
4
+ "train_loss": 1.2518653021918402,
5
+ "train_runtime": 4827.6756,
6
+ "train_samples_per_second": 1.564,
7
+ "train_steps_per_second": 0.196
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": "</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:6239e68e91d052426ceac4b17aadca42c34f5b2067caee6b67d42105742c1f16
3
+ size 903208
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
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": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "additional_special_tokens": [],
32
+ "bos_token": "<s>",
33
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% elif false == true and not '<<SYS>>' in messages[0]['content'] %}{% set loop_messages = messages %}{% set system_message = 'あなたは誠実で優秀な日本人のアシスタントです。' %}{% else %}{% set loop_messages = messages %}{% set system_message = false %}{% endif %}{{ bos_token }}{% for message in loop_messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if loop.index0 == 0 and system_message != false %}{% set content = '<<SYS>>\n' + system_message + '\n<</SYS>>\n\n' + message['content'] %}{% else %}{% set content = message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + content.strip() + ' [/INST] ' }}{% elif message['role'] == 'system' %}{{ '<<SYS>>\n' + content.strip() + '\n<</SYS>>\n\n' }}{% elif message['role'] == 'assistant' %}{{ '' + content.strip() + '' + eos_token }}{% endif %}{% endfor %}",
34
+ "clean_up_tokenization_spaces": false,
35
+ "eos_token": "</s>",
36
+ "legacy": true,
37
+ "model_max_length": 2048,
38
+ "pad_token": "</s>",
39
+ "sp_model_kwargs": {},
40
+ "spaces_between_special_tokens": false,
41
+ "tokenizer_class": "LlamaTokenizer",
42
+ "unk_token": "<unk>",
43
+ "use_default_system_prompt": false
44
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 5.0,
3
+ "total_flos": 6.657716927594496e+17,
4
+ "train_loss": 1.2518653021918402,
5
+ "train_runtime": 4827.6756,
6
+ "train_samples_per_second": 1.564,
7
+ "train_steps_per_second": 0.196
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 945,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "grad_norm": 0.84375,
14
+ "learning_rate": 1.8805243942587e-05,
15
+ "loss": 1.4836,
16
+ "step": 189
17
+ },
18
+ {
19
+ "epoch": 1.0,
20
+ "eval_loss": 1.248240351676941,
21
+ "eval_runtime": 14.7272,
22
+ "eval_samples_per_second": 5.364,
23
+ "eval_steps_per_second": 0.679,
24
+ "step": 189
25
+ },
26
+ {
27
+ "epoch": 2.0,
28
+ "grad_norm": 0.98046875,
29
+ "learning_rate": 1.4032141389483648e-05,
30
+ "loss": 1.2209,
31
+ "step": 378
32
+ },
33
+ {
34
+ "epoch": 2.0,
35
+ "eval_loss": 1.2223888635635376,
36
+ "eval_runtime": 14.6831,
37
+ "eval_samples_per_second": 5.38,
38
+ "eval_steps_per_second": 0.681,
39
+ "step": 378
40
+ },
41
+ {
42
+ "epoch": 3.0,
43
+ "grad_norm": 1.0703125,
44
+ "learning_rate": 7.555868193598188e-06,
45
+ "loss": 1.1941,
46
+ "step": 567
47
+ },
48
+ {
49
+ "epoch": 3.0,
50
+ "eval_loss": 1.2139047384262085,
51
+ "eval_runtime": 14.7087,
52
+ "eval_samples_per_second": 5.371,
53
+ "eval_steps_per_second": 0.68,
54
+ "step": 567
55
+ },
56
+ {
57
+ "epoch": 4.0,
58
+ "grad_norm": 1.0078125,
59
+ "learning_rate": 2.111992708420646e-06,
60
+ "loss": 1.1819,
61
+ "step": 756
62
+ },
63
+ {
64
+ "epoch": 4.0,
65
+ "eval_loss": 1.2119375467300415,
66
+ "eval_runtime": 14.6929,
67
+ "eval_samples_per_second": 5.377,
68
+ "eval_steps_per_second": 0.681,
69
+ "step": 756
70
+ },
71
+ {
72
+ "epoch": 5.0,
73
+ "grad_norm": 1.125,
74
+ "learning_rate": 0.0,
75
+ "loss": 1.1787,
76
+ "step": 945
77
+ },
78
+ {
79
+ "epoch": 5.0,
80
+ "eval_loss": 1.2118842601776123,
81
+ "eval_runtime": 14.7081,
82
+ "eval_samples_per_second": 5.371,
83
+ "eval_steps_per_second": 0.68,
84
+ "step": 945
85
+ },
86
+ {
87
+ "epoch": 5.0,
88
+ "step": 945,
89
+ "total_flos": 6.657716927594496e+17,
90
+ "train_loss": 1.2518653021918402,
91
+ "train_runtime": 4827.6756,
92
+ "train_samples_per_second": 1.564,
93
+ "train_steps_per_second": 0.196
94
+ }
95
+ ],
96
+ "logging_steps": 500,
97
+ "max_steps": 945,
98
+ "num_input_tokens_seen": 0,
99
+ "num_train_epochs": 5,
100
+ "save_steps": 500,
101
+ "total_flos": 6.657716927594496e+17,
102
+ "train_batch_size": 8,
103
+ "trial_name": null,
104
+ "trial_params": null
105
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4cdba8b622c8fb66feb04920c4814ed75cb101c245e97d697b740adc3c2bf3a
3
+ size 5048