Model save
Browse files- .ipynb_checkpoints/llama3_lora_sft-checkpoint.yaml +44 -0
- README.md +59 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- llama3_lora_sft.yaml +44 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +0 -0
- trainer_log.jsonl +17 -0
- training_args.bin +3 -0
.ipynb_checkpoints/llama3_lora_sft-checkpoint.yaml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### model
|
2 |
+
model_name_or_path: mistralai/Mistral-7B-Instruct-v0.3
|
3 |
+
adapter_name_or_path: chchen/Mistral-7B-Instruct-v0.3-ORPO
|
4 |
+
|
5 |
+
### method
|
6 |
+
stage: sft
|
7 |
+
do_train: true
|
8 |
+
finetuning_type: lora
|
9 |
+
lora_target: all
|
10 |
+
|
11 |
+
### dataset
|
12 |
+
dataset: bct_non_cot_sft_1000
|
13 |
+
dataset_dir: data_private
|
14 |
+
template: mistral
|
15 |
+
cutoff_len: 1024
|
16 |
+
# max_samples: 1000
|
17 |
+
overwrite_cache: true
|
18 |
+
preprocessing_num_workers: 16
|
19 |
+
|
20 |
+
### output
|
21 |
+
output_dir: saves/Mistral-7B-Instruct-v0.3/lora/orpo-sft
|
22 |
+
logging_steps: 10
|
23 |
+
save_steps: 500
|
24 |
+
plot_loss: true
|
25 |
+
overwrite_output_dir: true
|
26 |
+
save_total_limit: 3
|
27 |
+
load_best_model_at_end: true
|
28 |
+
push_to_hub: true
|
29 |
+
hub_model_id: chchen/Mistral-7B-Instruct-v0.3-ORPO-SFT
|
30 |
+
|
31 |
+
### train
|
32 |
+
per_device_train_batch_size: 2
|
33 |
+
gradient_accumulation_steps: 8
|
34 |
+
learning_rate: 0.000005
|
35 |
+
num_train_epochs: 3.0
|
36 |
+
lr_scheduler_type: cosine
|
37 |
+
warmup_steps: 0.1
|
38 |
+
fp16: true
|
39 |
+
|
40 |
+
### eval
|
41 |
+
val_size: 0.1
|
42 |
+
per_device_eval_batch_size: 2
|
43 |
+
evaluation_strategy: steps
|
44 |
+
eval_steps: 500
|
README.md
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- llama-factory
|
6 |
+
- generated_from_trainer
|
7 |
+
base_model: mistralai/Mistral-7B-Instruct-v0.3
|
8 |
+
model-index:
|
9 |
+
- name: Mistral-7B-Instruct-v0.3-ORPO-SFT
|
10 |
+
results: []
|
11 |
+
---
|
12 |
+
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
15 |
+
|
16 |
+
# Mistral-7B-Instruct-v0.3-ORPO-SFT
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) on an unknown dataset.
|
19 |
+
|
20 |
+
## Model description
|
21 |
+
|
22 |
+
More information needed
|
23 |
+
|
24 |
+
## Intended uses & limitations
|
25 |
+
|
26 |
+
More information needed
|
27 |
+
|
28 |
+
## Training and evaluation data
|
29 |
+
|
30 |
+
More information needed
|
31 |
+
|
32 |
+
## Training procedure
|
33 |
+
|
34 |
+
### Training hyperparameters
|
35 |
+
|
36 |
+
The following hyperparameters were used during training:
|
37 |
+
- learning_rate: 5e-06
|
38 |
+
- train_batch_size: 2
|
39 |
+
- eval_batch_size: 2
|
40 |
+
- seed: 42
|
41 |
+
- gradient_accumulation_steps: 8
|
42 |
+
- total_train_batch_size: 16
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: cosine
|
45 |
+
- lr_scheduler_warmup_steps: 0.1
|
46 |
+
- num_epochs: 3.0
|
47 |
+
- mixed_precision_training: Native AMP
|
48 |
+
|
49 |
+
### Training results
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- PEFT 0.10.0
|
56 |
+
- Transformers 4.40.1
|
57 |
+
- Pytorch 2.3.0
|
58 |
+
- Datasets 2.19.0
|
59 |
+
- 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": "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 |
+
"k_proj",
|
24 |
+
"q_proj",
|
25 |
+
"o_proj",
|
26 |
+
"down_proj",
|
27 |
+
"gate_proj",
|
28 |
+
"up_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:4f7f015cf23166c18732c60a171adbfb36532160fe1a7d9dfc84ef0f50c230bd
|
3 |
+
size 83945296
|
llama3_lora_sft.yaml
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### model
|
2 |
+
model_name_or_path: mistralai/Mistral-7B-Instruct-v0.3
|
3 |
+
adapter_name_or_path: chchen/Mistral-7B-Instruct-v0.3-ORPO
|
4 |
+
|
5 |
+
### method
|
6 |
+
stage: sft
|
7 |
+
do_train: true
|
8 |
+
finetuning_type: lora
|
9 |
+
lora_target: all
|
10 |
+
|
11 |
+
### dataset
|
12 |
+
dataset: bct_non_cot_sft_1000
|
13 |
+
dataset_dir: data_private
|
14 |
+
template: mistral
|
15 |
+
cutoff_len: 1024
|
16 |
+
# max_samples: 1000
|
17 |
+
overwrite_cache: true
|
18 |
+
preprocessing_num_workers: 16
|
19 |
+
|
20 |
+
### output
|
21 |
+
output_dir: saves/Mistral-7B-Instruct-v0.3/lora/orpo-sft
|
22 |
+
logging_steps: 10
|
23 |
+
save_steps: 500
|
24 |
+
plot_loss: true
|
25 |
+
overwrite_output_dir: true
|
26 |
+
save_total_limit: 3
|
27 |
+
load_best_model_at_end: true
|
28 |
+
push_to_hub: true
|
29 |
+
hub_model_id: chchen/Mistral-7B-Instruct-v0.3-ORPO-SFT
|
30 |
+
|
31 |
+
### train
|
32 |
+
per_device_train_batch_size: 2
|
33 |
+
gradient_accumulation_steps: 8
|
34 |
+
learning_rate: 0.000005
|
35 |
+
num_train_epochs: 3.0
|
36 |
+
lr_scheduler_type: cosine
|
37 |
+
warmup_steps: 0.1
|
38 |
+
fp16: true
|
39 |
+
|
40 |
+
### eval
|
41 |
+
val_size: 0.1
|
42 |
+
per_device_eval_batch_size: 2
|
43 |
+
evaluation_strategy: steps
|
44 |
+
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,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"current_steps": 10, "total_steps": 168, "loss": 0.5704, "learning_rate": 4.97273712672844e-06, "epoch": 0.17777777777777778, "percentage": 5.95, "elapsed_time": "0:00:23", "remaining_time": "0:06:09"}
|
2 |
+
{"current_steps": 20, "total_steps": 168, "loss": 0.2394, "learning_rate": 4.861084470200228e-06, "epoch": 0.35555555555555557, "percentage": 11.9, "elapsed_time": "0:00:44", "remaining_time": "0:05:27"}
|
3 |
+
{"current_steps": 30, "total_steps": 168, "loss": 0.1046, "learning_rate": 4.667009949002349e-06, "epoch": 0.5333333333333333, "percentage": 17.86, "elapsed_time": "0:01:05", "remaining_time": "0:05:00"}
|
4 |
+
{"current_steps": 40, "total_steps": 168, "loss": 0.0639, "learning_rate": 4.397288409237892e-06, "epoch": 0.7111111111111111, "percentage": 23.81, "elapsed_time": "0:01:26", "remaining_time": "0:04:36"}
|
5 |
+
{"current_steps": 50, "total_steps": 168, "loss": 0.0841, "learning_rate": 4.061335419273658e-06, "epoch": 0.8888888888888888, "percentage": 29.76, "elapsed_time": "0:01:47", "remaining_time": "0:04:13"}
|
6 |
+
{"current_steps": 60, "total_steps": 168, "loss": 0.1054, "learning_rate": 3.6708785865814186e-06, "epoch": 1.0666666666666667, "percentage": 35.71, "elapsed_time": "0:02:08", "remaining_time": "0:03:51"}
|
7 |
+
{"current_steps": 70, "total_steps": 168, "loss": 0.0709, "learning_rate": 3.239548164813544e-06, "epoch": 1.2444444444444445, "percentage": 41.67, "elapsed_time": "0:02:29", "remaining_time": "0:03:28"}
|
8 |
+
{"current_steps": 80, "total_steps": 168, "loss": 0.0684, "learning_rate": 2.782401242396799e-06, "epoch": 1.4222222222222223, "percentage": 47.62, "elapsed_time": "0:02:50", "remaining_time": "0:03:07"}
|
9 |
+
{"current_steps": 90, "total_steps": 168, "loss": 0.082, "learning_rate": 2.3153961224961665e-06, "epoch": 1.6, "percentage": 53.57, "elapsed_time": "0:03:11", "remaining_time": "0:02:46"}
|
10 |
+
{"current_steps": 100, "total_steps": 168, "loss": 0.0505, "learning_rate": 1.854835242944048e-06, "epoch": 1.7777777777777777, "percentage": 59.52, "elapsed_time": "0:03:32", "remaining_time": "0:02:24"}
|
11 |
+
{"current_steps": 110, "total_steps": 168, "loss": 0.0843, "learning_rate": 1.4167960829520933e-06, "epoch": 1.9555555555555557, "percentage": 65.48, "elapsed_time": "0:03:54", "remaining_time": "0:02:03"}
|
12 |
+
{"current_steps": 120, "total_steps": 168, "loss": 0.0642, "learning_rate": 1.0165699227860215e-06, "epoch": 2.1333333333333333, "percentage": 71.43, "elapsed_time": "0:04:14", "remaining_time": "0:01:41"}
|
13 |
+
{"current_steps": 130, "total_steps": 168, "loss": 0.0684, "learning_rate": 6.681280484488576e-07, "epoch": 2.311111111111111, "percentage": 77.38, "elapsed_time": "0:04:35", "remaining_time": "0:01:20"}
|
14 |
+
{"current_steps": 140, "total_steps": 168, "loss": 0.0837, "learning_rate": 3.8363403535449846e-07, "epoch": 2.488888888888889, "percentage": 83.33, "elapsed_time": "0:04:56", "remaining_time": "0:00:59"}
|
15 |
+
{"current_steps": 150, "total_steps": 168, "loss": 0.0603, "learning_rate": 1.7301913642614382e-07, "epoch": 2.6666666666666665, "percentage": 89.29, "elapsed_time": "0:05:17", "remaining_time": "0:00:38"}
|
16 |
+
{"current_steps": 160, "total_steps": 168, "loss": 0.06, "learning_rate": 4.3635597174694347e-08, "epoch": 2.8444444444444446, "percentage": 95.24, "elapsed_time": "0:05:38", "remaining_time": "0:00:16"}
|
17 |
+
{"current_steps": 168, "total_steps": 168, "epoch": 2.986666666666667, "percentage": 100.0, "elapsed_time": "0:05:55", "remaining_time": "0:00:00"}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a3ad68ebce35a71fc610abb04de35579931dea0b4685aab6de3fdff3ec84e0c9
|
3 |
+
size 5240
|