Deepdesign commited on
Commit
745592b
1 Parent(s): d0d36d4

Upload 11 files

Browse files
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.1
9
+ model-index:
10
+ - name: train_2
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_2
18
+
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) on the themesjson dataset.
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 0.0002
39
+ - train_batch_size: 16
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 4
43
+ - total_train_batch_size: 64
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - num_epochs: 30.0
47
+ - mixed_precision_training: Native AMP
48
+
49
+ ### Training results
50
+
51
+
52
+
53
+ ### Framework versions
54
+
55
+ - PEFT 0.9.0
56
+ - Transformers 4.38.2
57
+ - Pytorch 2.1.0+cu121
58
+ - Datasets 2.18.0
59
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-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
+ "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
+ "v_proj",
23
+ "q_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM",
26
+ "use_dora": false,
27
+ "use_rslora": false
28
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5de54e2c502242fa8e5e0f0acd72ce5d39e3716e301006ccae8ac8fcf7a7de2
3
+ size 13648432
all_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "train_loss": 0.48743839263916017,
4
+ "train_runtime": 1116.6347,
5
+ "train_samples_per_second": 1.263,
6
+ "train_steps_per_second": 0.027
7
+ }
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,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 system_message = messages[0]['content'] %}{% endif %}{{ '<s>' + system_message }}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '[INST] ' + content + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ content + '</s>' }}{% endif %}{% endfor %}",
34
+ "clean_up_tokenization_spaces": false,
35
+ "eos_token": "</s>",
36
+ "legacy": true,
37
+ "model_max_length": 1000000000000000019884624838656,
38
+ "pad_token": "</s>",
39
+ "padding_side": "right",
40
+ "sp_model_kwargs": {},
41
+ "spaces_between_special_tokens": false,
42
+ "split_special_tokens": false,
43
+ "tokenizer_class": "LlamaTokenizer",
44
+ "unk_token": "<unk>",
45
+ "use_default_system_prompt": false
46
+ }
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 20.0,
3
+ "train_loss": 0.48743839263916017,
4
+ "train_runtime": 1116.6347,
5
+ "train_samples_per_second": 1.263,
6
+ "train_steps_per_second": 0.027
7
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 30, "loss": 0.5792, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 0.00018660254037844388, "epoch": 3.0, "percentage": 16.67, "elapsed_time": "0:02:41", "remaining_time": "0:13:26"}
2
+ {"current_steps": 10, "total_steps": 30, "loss": 0.6021, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 0.00015000000000000001, "epoch": 6.67, "percentage": 33.33, "elapsed_time": "0:06:06", "remaining_time": "0:12:12"}
3
+ {"current_steps": 15, "total_steps": 30, "loss": 0.4859, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 0.0001, "epoch": 10.0, "percentage": 50.0, "elapsed_time": "0:09:14", "remaining_time": "0:09:14"}
4
+ {"current_steps": 20, "total_steps": 30, "loss": 0.4403, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 5.000000000000002e-05, "epoch": 13.33, "percentage": 66.67, "elapsed_time": "0:12:21", "remaining_time": "0:06:10"}
5
+ {"current_steps": 25, "total_steps": 30, "loss": 0.4547, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 1.339745962155613e-05, "epoch": 17.0, "percentage": 83.33, "elapsed_time": "0:15:48", "remaining_time": "0:03:09"}
6
+ {"current_steps": 30, "total_steps": 30, "loss": 0.3624, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": 0.0, "epoch": 20.0, "percentage": 100.0, "elapsed_time": "0:18:36", "remaining_time": "0:00:00"}
7
+ {"current_steps": 30, "total_steps": 30, "loss": null, "eval_loss": null, "predict_loss": null, "reward": null, "learning_rate": null, "epoch": 20.0, "percentage": 100.0, "elapsed_time": "0:18:36", "remaining_time": "0:00:00"}
trainer_state.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 20.0,
5
+ "eval_steps": 500,
6
+ "global_step": 30,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 3.0,
13
+ "grad_norm": 0.15062181651592255,
14
+ "learning_rate": 0.00018660254037844388,
15
+ "loss": 0.5792,
16
+ "step": 5
17
+ },
18
+ {
19
+ "epoch": 6.67,
20
+ "grad_norm": 0.32858145236968994,
21
+ "learning_rate": 0.00015000000000000001,
22
+ "loss": 0.6021,
23
+ "step": 10
24
+ },
25
+ {
26
+ "epoch": 10.0,
27
+ "grad_norm": 0.3023599088191986,
28
+ "learning_rate": 0.0001,
29
+ "loss": 0.4859,
30
+ "step": 15
31
+ },
32
+ {
33
+ "epoch": 13.33,
34
+ "grad_norm": 0.20432211458683014,
35
+ "learning_rate": 5.000000000000002e-05,
36
+ "loss": 0.4403,
37
+ "step": 20
38
+ },
39
+ {
40
+ "epoch": 17.0,
41
+ "grad_norm": 0.3563392162322998,
42
+ "learning_rate": 1.339745962155613e-05,
43
+ "loss": 0.4547,
44
+ "step": 25
45
+ },
46
+ {
47
+ "epoch": 20.0,
48
+ "grad_norm": 0.35112833976745605,
49
+ "learning_rate": 0.0,
50
+ "loss": 0.3624,
51
+ "step": 30
52
+ },
53
+ {
54
+ "epoch": 20.0,
55
+ "step": 30,
56
+ "total_flos": 1.6995565288095744e+16,
57
+ "train_loss": 0.48743839263916017,
58
+ "train_runtime": 1116.6347,
59
+ "train_samples_per_second": 1.263,
60
+ "train_steps_per_second": 0.027
61
+ }
62
+ ],
63
+ "logging_steps": 5,
64
+ "max_steps": 30,
65
+ "num_input_tokens_seen": 0,
66
+ "num_train_epochs": 30,
67
+ "save_steps": 100,
68
+ "total_flos": 1.6995565288095744e+16,
69
+ "train_batch_size": 16,
70
+ "trial_name": null,
71
+ "trial_params": null
72
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e9cbafe8fa0455627780b373a009eec32b1e23af0d8772fdfad517aaa8c2829
3
+ size 5048