chchen commited on
Commit
6eda845
1 Parent(s): b5de2c0

Training in progress, step 500

Browse files
.ipynb_checkpoints/lora_orpo-checkpoint.yaml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### model
2
+ model_name_or_path: mistralai/Mistral-7B-Instruct-v0.3
3
+
4
+ ### method
5
+ stage: orpo
6
+ do_train: true
7
+ finetuning_type: lora
8
+ lora_target: all
9
+
10
+ ### dataset
11
+ dataset: dpo_mix_en,bct_non_cot_dpo_1000
12
+ dataset_dir: data_private
13
+ template: mistral
14
+ cutoff_len: 1024
15
+ # max_samples: 1000
16
+ overwrite_cache: true
17
+ preprocessing_num_workers: 16
18
+
19
+ ### output
20
+ output_dir: saves/Mistral-7B-Instruct-v0.3/lora/orpo-salt
21
+ logging_steps: 10
22
+ save_steps: 500
23
+ plot_loss: true
24
+ overwrite_output_dir: true
25
+ save_total_limit: 3
26
+ load_best_model_at_end: true
27
+ push_to_hub: true
28
+ hub_model_id: chchen/Mistral-7B-Instruct-v0.3-ORPO-SALT
29
+
30
+ ### train
31
+ per_device_train_batch_size: 2
32
+ gradient_accumulation_steps: 8
33
+ learning_rate: 0.000005
34
+ num_train_epochs: 3.0
35
+ lr_scheduler_type: cosine
36
+ warmup_steps: 0.1
37
+ bf16: true
38
+
39
+ ### eval
40
+ val_size: 0.1
41
+ per_device_eval_batch_size: 2
42
+ evaluation_strategy: steps
43
+ eval_steps: 500
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
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
+ "q_proj",
24
+ "o_proj",
25
+ "k_proj",
26
+ "up_proj",
27
+ "gate_proj",
28
+ "down_proj",
29
+ "v_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:ce648971f97a29fd8714d80f03599bddf13945c172979834e54cd0326983ef71
3
+ size 83945296
lora_orpo.yaml ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### model
2
+ model_name_or_path: mistralai/Mistral-7B-Instruct-v0.3
3
+
4
+ ### method
5
+ stage: orpo
6
+ do_train: true
7
+ finetuning_type: lora
8
+ lora_target: all
9
+
10
+ ### dataset
11
+ dataset: dpo_mix_en,bct_non_cot_dpo_1000
12
+ dataset_dir: data_private
13
+ template: mistral
14
+ cutoff_len: 1024
15
+ # max_samples: 1000
16
+ overwrite_cache: true
17
+ preprocessing_num_workers: 16
18
+
19
+ ### output
20
+ output_dir: saves/Mistral-7B-Instruct-v0.3/lora/orpo-salt
21
+ logging_steps: 10
22
+ save_steps: 500
23
+ plot_loss: true
24
+ overwrite_output_dir: true
25
+ save_total_limit: 3
26
+ load_best_model_at_end: true
27
+ push_to_hub: true
28
+ hub_model_id: chchen/Mistral-7B-Instruct-v0.3-ORPO-SALT
29
+
30
+ ### train
31
+ per_device_train_batch_size: 2
32
+ gradient_accumulation_steps: 8
33
+ learning_rate: 0.000005
34
+ num_train_epochs: 3.0
35
+ lr_scheduler_type: cosine
36
+ warmup_steps: 0.1
37
+ bf16: true
38
+
39
+ ### eval
40
+ val_size: 0.1
41
+ per_device_eval_batch_size: 2
42
+ evaluation_strategy: steps
43
+ eval_steps: 500
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:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
3
+ size 587404
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
trainer_log.jsonl ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 10, "total_steps": 1854, "loss": 1.1424, "accuracy": 0.6187499761581421, "learning_rate": 4.999648198770648e-06, "epoch": 0.01616488179430188, "percentage": 0.54, "elapsed_time": "0:02:50", "remaining_time": "8:45:01"}
2
+ {"current_steps": 20, "total_steps": 1854, "loss": 1.1175, "accuracy": 0.6625000238418579, "learning_rate": 4.998578646361359e-06, "epoch": 0.03232976358860376, "percentage": 1.08, "elapsed_time": "0:05:47", "remaining_time": "8:51:51"}
3
+ {"current_steps": 30, "total_steps": 1854, "loss": 1.0537, "accuracy": 0.581250011920929, "learning_rate": 4.996791614004449e-06, "epoch": 0.04849464538290564, "percentage": 1.62, "elapsed_time": "0:08:46", "remaining_time": "8:53:00"}
4
+ {"current_steps": 40, "total_steps": 1854, "loss": 1.1081, "accuracy": 0.5687500238418579, "learning_rate": 4.994287614855618e-06, "epoch": 0.06465952717720752, "percentage": 2.16, "elapsed_time": "0:11:29", "remaining_time": "8:41:08"}
5
+ {"current_steps": 50, "total_steps": 1854, "loss": 1.0767, "accuracy": 0.5687500238418579, "learning_rate": 4.991067367951343e-06, "epoch": 0.0808244089715094, "percentage": 2.7, "elapsed_time": "0:14:43", "remaining_time": "8:51:21"}
6
+ {"current_steps": 60, "total_steps": 1854, "loss": 0.9847, "accuracy": 0.5625, "learning_rate": 4.987131798002389e-06, "epoch": 0.09698929076581128, "percentage": 3.24, "elapsed_time": "0:17:32", "remaining_time": "8:44:42"}
7
+ {"current_steps": 70, "total_steps": 1854, "loss": 1.0458, "accuracy": 0.53125, "learning_rate": 4.982482035128285e-06, "epoch": 0.11315417256011315, "percentage": 3.78, "elapsed_time": "0:20:29", "remaining_time": "8:42:21"}
8
+ {"current_steps": 80, "total_steps": 1854, "loss": 0.8918, "accuracy": 0.606249988079071, "learning_rate": 4.9771194145328e-06, "epoch": 0.12931905435441504, "percentage": 4.31, "elapsed_time": "0:23:28", "remaining_time": "8:40:22"}
9
+ {"current_steps": 90, "total_steps": 1854, "loss": 0.892, "accuracy": 0.5687500238418579, "learning_rate": 4.971045476120532e-06, "epoch": 0.1454839361487169, "percentage": 4.85, "elapsed_time": "0:26:25", "remaining_time": "8:37:58"}
10
+ {"current_steps": 100, "total_steps": 1854, "loss": 0.9278, "accuracy": 0.5687500238418579, "learning_rate": 4.964261964054713e-06, "epoch": 0.1616488179430188, "percentage": 5.39, "elapsed_time": "0:29:21", "remaining_time": "8:35:01"}
11
+ {"current_steps": 110, "total_steps": 1854, "loss": 0.9485, "accuracy": 0.5874999761581421, "learning_rate": 4.956770826256372e-06, "epoch": 0.17781369973732067, "percentage": 5.93, "elapsed_time": "0:32:19", "remaining_time": "8:32:27"}
12
+ {"current_steps": 120, "total_steps": 1854, "loss": 0.9568, "accuracy": 0.5625, "learning_rate": 4.94857421384497e-06, "epoch": 0.19397858153162256, "percentage": 6.47, "elapsed_time": "0:35:17", "remaining_time": "8:30:00"}
13
+ {"current_steps": 130, "total_steps": 1854, "loss": 0.971, "accuracy": 0.581250011920929, "learning_rate": 4.939674480520701e-06, "epoch": 0.21014346332592443, "percentage": 7.01, "elapsed_time": "0:38:21", "remaining_time": "8:28:41"}
14
+ {"current_steps": 140, "total_steps": 1854, "loss": 0.9144, "accuracy": 0.574999988079071, "learning_rate": 4.930074181888613e-06, "epoch": 0.2263083451202263, "percentage": 7.55, "elapsed_time": "0:41:31", "remaining_time": "8:28:27"}
15
+ {"current_steps": 150, "total_steps": 1854, "loss": 0.9202, "accuracy": 0.574999988079071, "learning_rate": 4.91977607472475e-06, "epoch": 0.2424732269145282, "percentage": 8.09, "elapsed_time": "0:44:18", "remaining_time": "8:23:15"}
16
+ {"current_steps": 160, "total_steps": 1854, "loss": 0.8729, "accuracy": 0.612500011920929, "learning_rate": 4.908783116184534e-06, "epoch": 0.2586381087088301, "percentage": 8.63, "elapsed_time": "0:47:12", "remaining_time": "8:19:53"}
17
+ {"current_steps": 170, "total_steps": 1854, "loss": 0.8988, "accuracy": 0.606249988079071, "learning_rate": 4.897098462953598e-06, "epoch": 0.27480299050313195, "percentage": 9.17, "elapsed_time": "0:50:08", "remaining_time": "8:16:39"}
18
+ {"current_steps": 180, "total_steps": 1854, "loss": 0.894, "accuracy": 0.643750011920929, "learning_rate": 4.884725470341331e-06, "epoch": 0.2909678722974338, "percentage": 9.71, "elapsed_time": "0:53:00", "remaining_time": "8:13:00"}
19
+ {"current_steps": 190, "total_steps": 1854, "loss": 1.0229, "accuracy": 0.518750011920929, "learning_rate": 4.871667691317377e-06, "epoch": 0.3071327540917357, "percentage": 10.25, "elapsed_time": "0:55:58", "remaining_time": "8:10:10"}
20
+ {"current_steps": 200, "total_steps": 1854, "loss": 0.8476, "accuracy": 0.5874999761581421, "learning_rate": 4.857928875491392e-06, "epoch": 0.3232976358860376, "percentage": 10.79, "elapsed_time": "0:58:45", "remaining_time": "8:05:54"}
21
+ {"current_steps": 210, "total_steps": 1854, "loss": 0.8401, "accuracy": 0.6000000238418579, "learning_rate": 4.843512968036314e-06, "epoch": 0.33946251768033947, "percentage": 11.33, "elapsed_time": "1:01:31", "remaining_time": "8:01:41"}
22
+ {"current_steps": 220, "total_steps": 1854, "loss": 1.0531, "accuracy": 0.625, "learning_rate": 4.828424108555486e-06, "epoch": 0.35562739947464134, "percentage": 11.87, "elapsed_time": "1:04:27", "remaining_time": "7:58:43"}
23
+ {"current_steps": 230, "total_steps": 1854, "loss": 0.8963, "accuracy": 0.5687500238418579, "learning_rate": 4.812666629893957e-06, "epoch": 0.3717922812689432, "percentage": 12.41, "elapsed_time": "1:07:18", "remaining_time": "7:55:18"}
24
+ {"current_steps": 240, "total_steps": 1854, "loss": 0.9194, "accuracy": 0.518750011920929, "learning_rate": 4.796245056894273e-06, "epoch": 0.3879571630632451, "percentage": 12.94, "elapsed_time": "1:10:24", "remaining_time": "7:53:28"}
25
+ {"current_steps": 250, "total_steps": 1854, "loss": 0.859, "accuracy": 0.5375000238418579, "learning_rate": 4.779164105097148e-06, "epoch": 0.404122044857547, "percentage": 13.48, "elapsed_time": "1:13:25", "remaining_time": "7:51:02"}
26
+ {"current_steps": 260, "total_steps": 1854, "loss": 0.8698, "accuracy": 0.59375, "learning_rate": 4.761428679387373e-06, "epoch": 0.42028692665184886, "percentage": 14.02, "elapsed_time": "1:16:23", "remaining_time": "7:48:20"}
27
+ {"current_steps": 270, "total_steps": 1854, "loss": 0.8795, "accuracy": 0.581250011920929, "learning_rate": 4.7430438725853515e-06, "epoch": 0.4364518084461507, "percentage": 14.56, "elapsed_time": "1:19:21", "remaining_time": "7:45:36"}
28
+ {"current_steps": 280, "total_steps": 1854, "loss": 0.9006, "accuracy": 0.5687500238418579, "learning_rate": 4.724014963984669e-06, "epoch": 0.4526166902404526, "percentage": 15.1, "elapsed_time": "1:22:26", "remaining_time": "7:43:26"}
29
+ {"current_steps": 290, "total_steps": 1854, "loss": 0.8091, "accuracy": 0.612500011920929, "learning_rate": 4.704347417836116e-06, "epoch": 0.4687815720347545, "percentage": 15.64, "elapsed_time": "1:25:22", "remaining_time": "7:40:25"}
30
+ {"current_steps": 300, "total_steps": 1854, "loss": 0.8522, "accuracy": 0.5562499761581421, "learning_rate": 4.684046881778603e-06, "epoch": 0.4849464538290564, "percentage": 16.18, "elapsed_time": "1:28:13", "remaining_time": "7:37:00"}
31
+ {"current_steps": 310, "total_steps": 1854, "loss": 0.8398, "accuracy": 0.5375000238418579, "learning_rate": 4.663119185217409e-06, "epoch": 0.5011113356233583, "percentage": 16.72, "elapsed_time": "1:31:11", "remaining_time": "7:34:11"}
32
+ {"current_steps": 320, "total_steps": 1854, "loss": 0.8005, "accuracy": 0.6187499761581421, "learning_rate": 4.641570337650232e-06, "epoch": 0.5172762174176602, "percentage": 17.26, "elapsed_time": "1:34:07", "remaining_time": "7:31:12"}
33
+ {"current_steps": 330, "total_steps": 1854, "loss": 0.8954, "accuracy": 0.5375000238418579, "learning_rate": 4.61940652694154e-06, "epoch": 0.533441099211962, "percentage": 17.8, "elapsed_time": "1:37:13", "remaining_time": "7:29:01"}
34
+ {"current_steps": 340, "total_steps": 1854, "loss": 0.8675, "accuracy": 0.5625, "learning_rate": 4.596634117545689e-06, "epoch": 0.5496059810062639, "percentage": 18.34, "elapsed_time": "1:40:08", "remaining_time": "7:25:54"}
35
+ {"current_steps": 350, "total_steps": 1854, "loss": 0.8615, "accuracy": 0.574999988079071, "learning_rate": 4.573259648679335e-06, "epoch": 0.5657708628005658, "percentage": 18.88, "elapsed_time": "1:43:10", "remaining_time": "7:23:22"}
36
+ {"current_steps": 360, "total_steps": 1854, "loss": 0.8515, "accuracy": 0.543749988079071, "learning_rate": 4.549289832443663e-06, "epoch": 0.5819357445948676, "percentage": 19.42, "elapsed_time": "1:46:10", "remaining_time": "7:20:38"}
37
+ {"current_steps": 370, "total_steps": 1854, "loss": 0.801, "accuracy": 0.5562499761581421, "learning_rate": 4.524731551896978e-06, "epoch": 0.5981006263891695, "percentage": 19.96, "elapsed_time": "1:49:08", "remaining_time": "7:17:43"}
38
+ {"current_steps": 380, "total_steps": 1854, "loss": 0.8422, "accuracy": 0.543749988079071, "learning_rate": 4.4995918590781925e-06, "epoch": 0.6142655081834714, "percentage": 20.5, "elapsed_time": "1:52:04", "remaining_time": "7:14:43"}
39
+ {"current_steps": 390, "total_steps": 1854, "loss": 0.8495, "accuracy": 0.6187499761581421, "learning_rate": 4.473877972981797e-06, "epoch": 0.6304303899777733, "percentage": 21.04, "elapsed_time": "1:55:08", "remaining_time": "7:12:12"}
40
+ {"current_steps": 400, "total_steps": 1854, "loss": 0.8054, "accuracy": 0.5562499761581421, "learning_rate": 4.447597277484894e-06, "epoch": 0.6465952717720752, "percentage": 21.57, "elapsed_time": "1:57:58", "remaining_time": "7:08:48"}
41
+ {"current_steps": 410, "total_steps": 1854, "loss": 0.9327, "accuracy": 0.5375000238418579, "learning_rate": 4.42075731922687e-06, "epoch": 0.6627601535663771, "percentage": 22.11, "elapsed_time": "2:00:51", "remaining_time": "7:05:38"}
42
+ {"current_steps": 420, "total_steps": 1854, "loss": 0.8332, "accuracy": 0.6312500238418579, "learning_rate": 4.3933658054423465e-06, "epoch": 0.6789250353606789, "percentage": 22.65, "elapsed_time": "2:03:47", "remaining_time": "7:02:39"}
43
+ {"current_steps": 430, "total_steps": 1854, "loss": 0.9048, "accuracy": 0.518750011920929, "learning_rate": 4.365430601748003e-06, "epoch": 0.6950899171549808, "percentage": 23.19, "elapsed_time": "2:06:41", "remaining_time": "6:59:32"}
44
+ {"current_steps": 440, "total_steps": 1854, "loss": 0.8394, "accuracy": 0.5687500238418579, "learning_rate": 4.336959729883925e-06, "epoch": 0.7112547989492827, "percentage": 23.73, "elapsed_time": "2:09:36", "remaining_time": "6:56:32"}
45
+ {"current_steps": 450, "total_steps": 1854, "loss": 0.8479, "accuracy": 0.5874999761581421, "learning_rate": 4.307961365410118e-06, "epoch": 0.7274196807435845, "percentage": 24.27, "elapsed_time": "2:12:42", "remaining_time": "6:54:01"}
46
+ {"current_steps": 460, "total_steps": 1854, "loss": 0.831, "accuracy": 0.6000000238418579, "learning_rate": 4.278443835358854e-06, "epoch": 0.7435845625378864, "percentage": 24.81, "elapsed_time": "2:15:42", "remaining_time": "6:51:15"}
47
+ {"current_steps": 470, "total_steps": 1854, "loss": 0.8504, "accuracy": 0.5625, "learning_rate": 4.248415615843523e-06, "epoch": 0.7597494443321883, "percentage": 25.35, "elapsed_time": "2:18:30", "remaining_time": "6:47:51"}
48
+ {"current_steps": 480, "total_steps": 1854, "loss": 0.8127, "accuracy": 0.612500011920929, "learning_rate": 4.217885329624666e-06, "epoch": 0.7759143261264903, "percentage": 25.89, "elapsed_time": "2:21:29", "remaining_time": "6:45:02"}
49
+ {"current_steps": 490, "total_steps": 1854, "loss": 0.8348, "accuracy": 0.550000011920929, "learning_rate": 4.186861743633911e-06, "epoch": 0.7920792079207921, "percentage": 26.43, "elapsed_time": "2:24:24", "remaining_time": "6:42:00"}
50
+ {"current_steps": 500, "total_steps": 1854, "loss": 0.8803, "accuracy": 0.5375000238418579, "learning_rate": 4.155353766456497e-06, "epoch": 0.808244089715094, "percentage": 26.97, "elapsed_time": "2:27:31", "remaining_time": "6:39:30"}
51
+ {"current_steps": 500, "total_steps": 1854, "eval_loss": 0.8619003891944885, "epoch": 0.808244089715094, "percentage": 26.97, "elapsed_time": "2:33:41", "remaining_time": "6:56:10"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a860d29d435267e35e98b8e5caee1e1b80a9edd37f2a4f5027d5acbf19a989f8
3
+ size 5240