chchen commited on
Commit
6065ffb
·
verified ·
1 Parent(s): 8a12c27

Training in progress, step 50

Browse files
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "klyang/MentaLLaMA-chat-7B-hf",
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
+ "up_proj",
24
+ "down_proj",
25
+ "k_proj",
26
+ "gate_proj",
27
+ "q_proj",
28
+ "v_proj",
29
+ "o_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:868f5d32eecb82cd1865fcde28458eb6526b4c43388290ffaeebcb5ba3d6a104
3
+ size 80013120
llama3_lora_sft.yaml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### model
2
+ model_name_or_path: klyang/MentaLLaMA-chat-7B-hf
3
+ trust_remote_code: true
4
+
5
+ ### method
6
+ stage: sft
7
+ do_train: true
8
+ finetuning_type: lora
9
+ lora_target: all
10
+
11
+ ### dataset
12
+ dataset: course-train-fold3
13
+ dataset_dir: data_private
14
+ template: llama2
15
+ cutoff_len: 1024
16
+ # max_samples: 1000
17
+ overwrite_cache: true
18
+ preprocessing_num_workers: 16
19
+
20
+ ### output
21
+ output_dir: saves/psy-course/MentaLLaMA-chat-7B/train/fold3
22
+ logging_steps: 10
23
+ save_steps: 50
24
+ plot_loss: true
25
+ overwrite_output_dir: true
26
+ save_total_limit: 3
27
+ push_to_hub: true
28
+ hub_model_id: chchen/MentaLLaMA-chat-7B-PsyCourse-fold3
29
+ load_best_model_at_end: true
30
+
31
+ ### train
32
+ per_device_train_batch_size: 1
33
+ gradient_accumulation_steps: 16
34
+ learning_rate: 1.0e-4
35
+ num_train_epochs: 5.0
36
+ lr_scheduler_type: cosine
37
+ warmup_ratio: 0.1
38
+ bf16: true
39
+ ddp_timeout: 180000000
40
+ enable_liger_kernel: true
41
+
42
+ ### eval
43
+ val_size: 0.1
44
+ per_device_eval_batch_size: 1
45
+ eval_strategy: steps
46
+ eval_steps: 50
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": {
17
+ "content": "<unk>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
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:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": null,
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
+ "bos_token": "<s>",
32
+ "chat_template": "{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% set content = message['content'] %}{% if loop.index0 == 0 and system_message is defined %}{% set content = '<<SYS>>\n' + system_message + '\n<</SYS>>\n\n' + message['content'] %}{% endif %}{% if message['role'] == 'user' %}{{ '<s>' + '[INST] ' + content + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ content + '</s>' }}{% endif %}{% endfor %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": false,
36
+ "model_max_length": 2048,
37
+ "pad_token": "<unk>",
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": true
45
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {"current_steps": 10, "total_steps": 3320, "loss": 1.7049, "lr": 3.0120481927710846e-06, "epoch": 0.015053156458744943, "percentage": 0.3, "elapsed_time": "0:01:20", "remaining_time": "7:26:24"}
2
+ {"current_steps": 20, "total_steps": 3320, "loss": 1.6672, "lr": 6.024096385542169e-06, "epoch": 0.030106312917489886, "percentage": 0.6, "elapsed_time": "0:02:38", "remaining_time": "7:15:15"}
3
+ {"current_steps": 30, "total_steps": 3320, "loss": 1.615, "lr": 9.036144578313253e-06, "epoch": 0.04515946937623483, "percentage": 0.9, "elapsed_time": "0:03:55", "remaining_time": "7:10:35"}
4
+ {"current_steps": 40, "total_steps": 3320, "loss": 1.4092, "lr": 1.2048192771084338e-05, "epoch": 0.06021262583497977, "percentage": 1.2, "elapsed_time": "0:05:13", "remaining_time": "7:08:00"}
5
+ {"current_steps": 50, "total_steps": 3320, "loss": 0.8176, "lr": 1.5060240963855424e-05, "epoch": 0.07526578229372471, "percentage": 1.51, "elapsed_time": "0:06:30", "remaining_time": "7:05:28"}
6
+ {"current_steps": 50, "total_steps": 3320, "eval_loss": 0.6253208518028259, "epoch": 0.07526578229372471, "percentage": 1.51, "elapsed_time": "0:09:28", "remaining_time": "10:19:47"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dc3c72d0b29d00c1d6769aaa5e300e7e668af56cdd71e9b07ed22d8eb18190f
3
+ size 5624