WDong commited on
Commit
09a4387
1 Parent(s): a305f82

Upload 16 files

Browse files
README.md CHANGED
@@ -1,3 +1,60 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ library_name: peft
4
+ tags:
5
+ - llama-factory
6
+ - lora
7
+ - generated_from_trainer
8
+ base_model: Qwen2/Qwen2-7B-Instruct
9
+ model-index:
10
+ - name: sft_0626_after_2_dpo_9
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
+ # sft_0626_after_2_dpo_9
18
+
19
+ This model is a fine-tuned version of [/root/LLM_Data_Engineer/LLaMA-Factory/models/Qwen2-7B-Instruct-dpo-06250115-iter2-after-dpo-0.6](https://huggingface.co//root/LLM_Data_Engineer/LLaMA-Factory/models/Qwen2-7B-Instruct-dpo-06250115-iter2-after-dpo-0.6) on the sft_data_1474_0624_9_iter2 dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.7347
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: 0.0001
41
+ - train_batch_size: 6
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - gradient_accumulation_steps: 8
45
+ - total_train_batch_size: 48
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - num_epochs: 3.0
49
+
50
+ ### Training results
51
+
52
+
53
+
54
+ ### Framework versions
55
+
56
+ - PEFT 0.11.1
57
+ - Transformers 4.41.2
58
+ - Pytorch 2.1.2
59
+ - Datasets 2.19.2
60
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "/root/LLM_Data_Engineer/LLaMA-Factory/models/Qwen2-7B-Instruct-dpo-06250115-iter2-after-dpo-0.6",
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.0,
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
+ "gate_proj",
24
+ "up_proj",
25
+ "v_proj",
26
+ "k_proj",
27
+ "down_proj",
28
+ "o_proj",
29
+ "q_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45571b69e1586a4387165833a371bdb8023080bdda55b77e7cd232886bec2279
3
+ size 80792096
added_tokens.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "<|endoftext|>": 151643,
3
+ "<|im_end|>": 151645,
4
+ "<|im_start|>": 151644
5
+ }
all_results.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.8656716417910446,
3
+ "eval_loss": 0.7347341775894165,
4
+ "eval_runtime": 0.2127,
5
+ "eval_samples_per_second": 23.506,
6
+ "eval_steps_per_second": 23.506,
7
+ "total_flos": 1.2058224578297856e+16,
8
+ "train_loss": 1.0678408990303676,
9
+ "train_runtime": 102.2691,
10
+ "train_samples_per_second": 11.675,
11
+ "train_steps_per_second": 0.235
12
+ }
eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.8656716417910446,
3
+ "eval_loss": 0.7347341775894165,
4
+ "eval_runtime": 0.2127,
5
+ "eval_samples_per_second": 23.506,
6
+ "eval_steps_per_second": 23.506
7
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|im_end|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "additional_special_tokens": [
30
+ "<|im_start|>",
31
+ "<|im_end|>"
32
+ ],
33
+ "bos_token": null,
34
+ "chat_template": "{% set system_message = 'You are a helpful assistant.' %}{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ '<|im_start|>system\n' + system_message + '<|im_end|>\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '<|im_start|>user\n' + content + '<|im_end|>\n<|im_start|>assistant\n' }}{% elif message['role'] == 'assistant' %}{{ content + '<|im_end|>' + '\n' }}{% endif %}{% endfor %}",
35
+ "clean_up_tokenization_spaces": false,
36
+ "eos_token": "<|im_end|>",
37
+ "errors": "replace",
38
+ "model_max_length": 131072,
39
+ "pad_token": "<|endoftext|>",
40
+ "padding_side": "right",
41
+ "split_special_tokens": false,
42
+ "tokenizer_class": "Qwen2Tokenizer",
43
+ "unk_token": null
44
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.8656716417910446,
3
+ "total_flos": 1.2058224578297856e+16,
4
+ "train_loss": 1.0678408990303676,
5
+ "train_runtime": 102.2691,
6
+ "train_samples_per_second": 11.675,
7
+ "train_steps_per_second": 0.235
8
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 2, "total_steps": 24, "loss": 1.4111, "learning_rate": 9.829629131445342e-05, "epoch": 0.23880597014925373, "percentage": 8.33, "elapsed_time": "0:00:09", "remaining_time": "0:01:41", "throughput": "0.00", "total_tokens": 0}
2
+ {"current_steps": 4, "total_steps": 24, "loss": 1.4368, "learning_rate": 9.330127018922194e-05, "epoch": 0.47761194029850745, "percentage": 16.67, "elapsed_time": "0:00:18", "remaining_time": "0:01:30", "throughput": "0.00", "total_tokens": 0}
3
+ {"current_steps": 6, "total_steps": 24, "loss": 1.2286, "learning_rate": 8.535533905932738e-05, "epoch": 0.7164179104477612, "percentage": 25.0, "elapsed_time": "0:00:27", "remaining_time": "0:01:22", "throughput": "0.00", "total_tokens": 0}
4
+ {"current_steps": 8, "total_steps": 24, "loss": 1.1773, "learning_rate": 7.500000000000001e-05, "epoch": 0.9552238805970149, "percentage": 33.33, "elapsed_time": "0:00:34", "remaining_time": "0:01:09", "throughput": "0.00", "total_tokens": 0}
5
+ {"current_steps": 10, "total_steps": 24, "loss": 0.9521, "learning_rate": 6.294095225512603e-05, "epoch": 1.1940298507462686, "percentage": 41.67, "elapsed_time": "0:00:42", "remaining_time": "0:00:59", "throughput": "0.00", "total_tokens": 0}
6
+ {"current_steps": 12, "total_steps": 24, "loss": 0.9986, "learning_rate": 5e-05, "epoch": 1.4328358208955223, "percentage": 50.0, "elapsed_time": "0:00:50", "remaining_time": "0:00:50", "throughput": "0.00", "total_tokens": 0}
7
+ {"current_steps": 14, "total_steps": 24, "loss": 0.9659, "learning_rate": 3.705904774487396e-05, "epoch": 1.671641791044776, "percentage": 58.33, "elapsed_time": "0:00:59", "remaining_time": "0:00:42", "throughput": "0.00", "total_tokens": 0}
8
+ {"current_steps": 16, "total_steps": 24, "loss": 0.9646, "learning_rate": 2.500000000000001e-05, "epoch": 1.9104477611940298, "percentage": 66.67, "elapsed_time": "0:01:07", "remaining_time": "0:00:33", "throughput": "0.00", "total_tokens": 0}
9
+ {"current_steps": 18, "total_steps": 24, "loss": 0.9083, "learning_rate": 1.4644660940672627e-05, "epoch": 2.1492537313432836, "percentage": 75.0, "elapsed_time": "0:01:17", "remaining_time": "0:00:25", "throughput": "0.00", "total_tokens": 0}
10
+ {"current_steps": 20, "total_steps": 24, "loss": 0.9453, "learning_rate": 6.698729810778065e-06, "epoch": 2.388059701492537, "percentage": 83.33, "elapsed_time": "0:01:24", "remaining_time": "0:00:16", "throughput": "0.00", "total_tokens": 0}
11
+ {"current_steps": 22, "total_steps": 24, "loss": 0.9429, "learning_rate": 1.70370868554659e-06, "epoch": 2.626865671641791, "percentage": 91.67, "elapsed_time": "0:01:33", "remaining_time": "0:00:08", "throughput": "0.00", "total_tokens": 0}
12
+ {"current_steps": 24, "total_steps": 24, "loss": 0.8827, "learning_rate": 0.0, "epoch": 2.8656716417910446, "percentage": 100.0, "elapsed_time": "0:01:42", "remaining_time": "0:00:00", "throughput": "0.00", "total_tokens": 0}
13
+ {"current_steps": 24, "total_steps": 24, "epoch": 2.8656716417910446, "percentage": 100.0, "elapsed_time": "0:01:42", "remaining_time": "0:00:00", "throughput": "0.00", "total_tokens": 0}
trainer_state.json ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.8656716417910446,
5
+ "eval_steps": 500,
6
+ "global_step": 24,
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.23880597014925373,
13
+ "grad_norm": 0.585221529006958,
14
+ "learning_rate": 9.829629131445342e-05,
15
+ "loss": 1.4111,
16
+ "step": 2
17
+ },
18
+ {
19
+ "epoch": 0.47761194029850745,
20
+ "grad_norm": 0.6329778432846069,
21
+ "learning_rate": 9.330127018922194e-05,
22
+ "loss": 1.4368,
23
+ "step": 4
24
+ },
25
+ {
26
+ "epoch": 0.7164179104477612,
27
+ "grad_norm": 0.6056985259056091,
28
+ "learning_rate": 8.535533905932738e-05,
29
+ "loss": 1.2286,
30
+ "step": 6
31
+ },
32
+ {
33
+ "epoch": 0.9552238805970149,
34
+ "grad_norm": 0.5265995860099792,
35
+ "learning_rate": 7.500000000000001e-05,
36
+ "loss": 1.1773,
37
+ "step": 8
38
+ },
39
+ {
40
+ "epoch": 1.1940298507462686,
41
+ "grad_norm": 0.3901197910308838,
42
+ "learning_rate": 6.294095225512603e-05,
43
+ "loss": 0.9521,
44
+ "step": 10
45
+ },
46
+ {
47
+ "epoch": 1.4328358208955223,
48
+ "grad_norm": 0.342200368642807,
49
+ "learning_rate": 5e-05,
50
+ "loss": 0.9986,
51
+ "step": 12
52
+ },
53
+ {
54
+ "epoch": 1.671641791044776,
55
+ "grad_norm": 0.29529017210006714,
56
+ "learning_rate": 3.705904774487396e-05,
57
+ "loss": 0.9659,
58
+ "step": 14
59
+ },
60
+ {
61
+ "epoch": 1.9104477611940298,
62
+ "grad_norm": 0.27741575241088867,
63
+ "learning_rate": 2.500000000000001e-05,
64
+ "loss": 0.9646,
65
+ "step": 16
66
+ },
67
+ {
68
+ "epoch": 2.1492537313432836,
69
+ "grad_norm": 0.308491051197052,
70
+ "learning_rate": 1.4644660940672627e-05,
71
+ "loss": 0.9083,
72
+ "step": 18
73
+ },
74
+ {
75
+ "epoch": 2.388059701492537,
76
+ "grad_norm": 0.30398857593536377,
77
+ "learning_rate": 6.698729810778065e-06,
78
+ "loss": 0.9453,
79
+ "step": 20
80
+ },
81
+ {
82
+ "epoch": 2.626865671641791,
83
+ "grad_norm": 0.27445322275161743,
84
+ "learning_rate": 1.70370868554659e-06,
85
+ "loss": 0.9429,
86
+ "step": 22
87
+ },
88
+ {
89
+ "epoch": 2.8656716417910446,
90
+ "grad_norm": 0.2563874423503876,
91
+ "learning_rate": 0.0,
92
+ "loss": 0.8827,
93
+ "step": 24
94
+ },
95
+ {
96
+ "epoch": 2.8656716417910446,
97
+ "step": 24,
98
+ "total_flos": 1.2058224578297856e+16,
99
+ "train_loss": 1.0678408990303676,
100
+ "train_runtime": 102.2691,
101
+ "train_samples_per_second": 11.675,
102
+ "train_steps_per_second": 0.235
103
+ }
104
+ ],
105
+ "logging_steps": 2,
106
+ "max_steps": 24,
107
+ "num_input_tokens_seen": 0,
108
+ "num_train_epochs": 3,
109
+ "save_steps": 500,
110
+ "stateful_callbacks": {
111
+ "TrainerControl": {
112
+ "args": {
113
+ "should_epoch_stop": false,
114
+ "should_evaluate": false,
115
+ "should_log": false,
116
+ "should_save": false,
117
+ "should_training_stop": false
118
+ },
119
+ "attributes": {}
120
+ }
121
+ },
122
+ "total_flos": 1.2058224578297856e+16,
123
+ "train_batch_size": 6,
124
+ "trial_name": null,
125
+ "trial_params": null
126
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31e8653ac75c88fcb9b4a7d48ff70ef8402807b2237566c25a2f62867406c941
3
+ size 5304
training_loss.png ADDED
vocab.json ADDED
The diff for this file is too large to render. See raw diff