Training in progress, step 50
Browse files- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- llama3_lora_sft.yaml +46 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +45 -0
- trainer_log.jsonl +6 -0
- training_args.bin +3 -0
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 |
+
"q_proj",
|
24 |
+
"down_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"o_proj",
|
27 |
+
"k_proj",
|
28 |
+
"v_proj",
|
29 |
+
"up_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:60360cb70d347c3275fc19f22e6fe8f705b55092a5d9121ceb4e977943ac82ed
|
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-fold5
|
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/fold5
|
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-fold5
|
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": 3295, "loss": 1.6489, "lr": 3.0303030303030305e-06, "epoch": 0.015165876777251185, "percentage": 0.3, "elapsed_time": "0:01:18", "remaining_time": "7:10:47"}
|
2 |
+
{"current_steps": 20, "total_steps": 3295, "loss": 1.6363, "lr": 6.060606060606061e-06, "epoch": 0.03033175355450237, "percentage": 0.61, "elapsed_time": "0:02:36", "remaining_time": "7:05:48"}
|
3 |
+
{"current_steps": 30, "total_steps": 3295, "loss": 1.6613, "lr": 9.090909090909091e-06, "epoch": 0.04549763033175355, "percentage": 0.91, "elapsed_time": "0:03:53", "remaining_time": "7:03:02"}
|
4 |
+
{"current_steps": 40, "total_steps": 3295, "loss": 1.2702, "lr": 1.2121212121212122e-05, "epoch": 0.06066350710900474, "percentage": 1.21, "elapsed_time": "0:05:10", "remaining_time": "7:00:52"}
|
5 |
+
{"current_steps": 50, "total_steps": 3295, "loss": 0.8836, "lr": 1.5151515151515153e-05, "epoch": 0.07582938388625593, "percentage": 1.52, "elapsed_time": "0:06:27", "remaining_time": "6:59:11"}
|
6 |
+
{"current_steps": 50, "total_steps": 3295, "eval_loss": 0.6509825587272644, "epoch": 0.07582938388625593, "percentage": 1.52, "elapsed_time": "0:09:24", "remaining_time": "10:10:38"}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b8c838b28ffbbf01c78c4234e43b6c5cb8f0c5cc4530d4df96fea7ee7185503e
|
3 |
+
size 5624
|