kam414 commited on
Commit
c93f207
1 Parent(s): bf89b5a

Upload 11 files

Browse files
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - llama-factory
6
+ - lora
7
+ - generated_from_trainer
8
+ base_model: mistralai/Mistral-7B-Instruct-v0.2
9
+ model-index:
10
+ - name: train_2024-02-01-10-50-39
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # train_2024-02-01-10-50-39
18
+
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on the wiki_demo dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 2.3668
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 5e-05
41
+ - train_batch_size: 4
42
+ - eval_batch_size: 8
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 4
45
+ - total_train_batch_size: 16
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - num_epochs: 20.0
49
+ - mixed_precision_training: Native AMP
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - PEFT 0.8.1
58
+ - Transformers 4.37.2
59
+ - Pytorch 2.1.0+cu121
60
+ - Datasets 2.16.1
61
+ - Tokenizers 0.15.1
adapter_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
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
+ "loftq_config": {},
12
+ "lora_alpha": 16,
13
+ "lora_dropout": 0.1,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 8,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "q_proj",
23
+ "v_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM",
26
+ "use_rslora": false
27
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c4351ae9e640746fef40bbe9f306965f9bd1e8d15eaf1e4c29b32269c6b664d
3
+ size 13648432
all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "eval_loss": 2.3668270111083984,
4
+ "eval_runtime": 1.9011,
5
+ "eval_samples_per_second": 2.104,
6
+ "eval_steps_per_second": 0.526,
7
+ "perplexity": 10.663503370230504,
8
+ "train_loss": 2.338414525985718,
9
+ "train_runtime": 453.0464,
10
+ "train_samples_per_second": 0.662,
11
+ "train_steps_per_second": 0.044
12
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "eval_loss": 2.3668270111083984,
4
+ "eval_runtime": 1.9011,
5
+ "eval_samples_per_second": 2.104,
6
+ "eval_steps_per_second": 0.526,
7
+ "perplexity": 10.663503370230504
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.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,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "additional_special_tokens": [],
31
+ "bos_token": "<s>",
32
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": "</s>",
38
+ "padding_side": "right",
39
+ "sp_model_kwargs": {},
40
+ "spaces_between_special_tokens": false,
41
+ "split_special_tokens": false,
42
+ "tokenizer_class": "LlamaTokenizer",
43
+ "unk_token": "<unk>",
44
+ "use_default_system_prompt": false
45
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "train_loss": 2.338414525985718,
4
+ "train_runtime": 453.0464,
5
+ "train_samples_per_second": 0.662,
6
+ "train_steps_per_second": 0.044
7
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 20, "loss": 2.4236, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 4.267766952966369e-05, "epoch": 5.0, "percentage": 25.0, "elapsed_time": "0:01:53", "remaining_time": "0:05:41"}
2
+ {"current_steps": 10, "total_steps": 20, "loss": 2.3423, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 2.5e-05, "epoch": 10.0, "percentage": 50.0, "elapsed_time": "0:03:46", "remaining_time": "0:03:46"}
3
+ {"current_steps": 15, "total_steps": 20, "loss": 2.302, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 7.3223304703363135e-06, "epoch": 15.0, "percentage": 75.0, "elapsed_time": "0:05:39", "remaining_time": "0:01:53"}
4
+ {"current_steps": 20, "total_steps": 20, "loss": 2.2859, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 0.0, "epoch": 20.0, "percentage": 100.0, "elapsed_time": "0:07:33", "remaining_time": "0:00:00"}
5
+ {"current_steps": 20, "total_steps": 20, "loss": null, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": null, "epoch": 20.0, "percentage": 100.0, "elapsed_time": "0:07:33", "remaining_time": "0:00:00"}
6
+ {"current_steps": 1, "total_steps": 1, "loss": null, "eval_loss": 2.3668270111083984, "predict_loss": null, "reward": null, "learning_rate": null, "epoch": 20.0, "percentage": 100.0, "elapsed_time": "0:07:34", "remaining_time": "0:00:00"}
trainer_state.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 20.0,
5
+ "eval_steps": 100,
6
+ "global_step": 20,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 5.0,
13
+ "learning_rate": 4.267766952966369e-05,
14
+ "loss": 2.4236,
15
+ "step": 5
16
+ },
17
+ {
18
+ "epoch": 10.0,
19
+ "learning_rate": 2.5e-05,
20
+ "loss": 2.3423,
21
+ "step": 10
22
+ },
23
+ {
24
+ "epoch": 15.0,
25
+ "learning_rate": 7.3223304703363135e-06,
26
+ "loss": 2.302,
27
+ "step": 15
28
+ },
29
+ {
30
+ "epoch": 20.0,
31
+ "learning_rate": 0.0,
32
+ "loss": 2.2859,
33
+ "step": 20
34
+ },
35
+ {
36
+ "epoch": 20.0,
37
+ "step": 20,
38
+ "total_flos": 3.87232947634176e+16,
39
+ "train_loss": 2.338414525985718,
40
+ "train_runtime": 453.0464,
41
+ "train_samples_per_second": 0.662,
42
+ "train_steps_per_second": 0.044
43
+ }
44
+ ],
45
+ "logging_steps": 5,
46
+ "max_steps": 20,
47
+ "num_input_tokens_seen": 0,
48
+ "num_train_epochs": 20,
49
+ "save_steps": 100,
50
+ "total_flos": 3.87232947634176e+16,
51
+ "train_batch_size": 4,
52
+ "trial_name": null,
53
+ "trial_params": null
54
+ }