justinwangx
commited on
Commit
•
6377e4d
1
Parent(s):
0903e05
Model save
Browse files- README.md +74 -0
- adapter_config.json +25 -0
- adapter_model.safetensors +3 -0
- all_results.json +13 -0
- eval_results.json +8 -0
- runs/Jan02_01-53-59_f63ae9056bcd/events.out.tfevents.1704160464.f63ae9056bcd.1017858.0 +3 -0
- runs/Jan02_01-53-59_f63ae9056bcd/events.out.tfevents.1704161608.f63ae9056bcd.1017858.1 +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +43 -0
- train_results.json +8 -0
- trainer_state.json +160 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
model-index:
|
5 |
+
- name: vicuna-adv-robust-u15-sft-lora
|
6 |
+
results: []
|
7 |
+
---
|
8 |
+
|
9 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
10 |
+
should probably proofread and complete it, then remove this comment. -->
|
11 |
+
|
12 |
+
# vicuna-adv-robust-u15-sft-lora
|
13 |
+
|
14 |
+
This model was trained from scratch on an unknown dataset.
|
15 |
+
It achieves the following results on the evaluation set:
|
16 |
+
- Loss: 1.7553
|
17 |
+
|
18 |
+
## Model description
|
19 |
+
|
20 |
+
More information needed
|
21 |
+
|
22 |
+
## Intended uses & limitations
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Training and evaluation data
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training procedure
|
31 |
+
|
32 |
+
### Training hyperparameters
|
33 |
+
|
34 |
+
The following hyperparameters were used during training:
|
35 |
+
- learning_rate: 0.0003
|
36 |
+
- train_batch_size: 8
|
37 |
+
- eval_batch_size: 8
|
38 |
+
- seed: 42
|
39 |
+
- distributed_type: multi-GPU
|
40 |
+
- num_devices: 4
|
41 |
+
- gradient_accumulation_steps: 16
|
42 |
+
- total_train_batch_size: 512
|
43 |
+
- total_eval_batch_size: 32
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: cosine
|
46 |
+
- num_epochs: 15
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
51 |
+
|:-------------:|:-----:|:----:|:---------------:|
|
52 |
+
| No log | 0 | 0 | 2.4952 |
|
53 |
+
| 2.5615 | 1.09 | 1 | 2.5270 |
|
54 |
+
| 2.5615 | 1.09 | 1 | 2.5362 |
|
55 |
+
| 2.5615 | 3.03 | 2 | 2.5338 |
|
56 |
+
| 2.5615 | 4.12 | 3 | 2.2734 |
|
57 |
+
| 2.5615 | 4.12 | 3 | 2.3209 |
|
58 |
+
| 2.5615 | 6.06 | 4 | 2.1026 |
|
59 |
+
| 2.3634 | 7.15 | 5 | 2.0141 |
|
60 |
+
| 2.3634 | 7.15 | 5 | 2.0772 |
|
61 |
+
| 2.3634 | 9.09 | 6 | 1.9678 |
|
62 |
+
| 2.3634 | 9.09 | 6 | 1.8940 |
|
63 |
+
| 2.3634 | 11.03 | 7 | 1.8120 |
|
64 |
+
| 2.3634 | 12.12 | 8 | 1.8152 |
|
65 |
+
| 2.3634 | 12.12 | 8 | 1.7991 |
|
66 |
+
| 2.3634 | 14.06 | 9 | 1.7646 |
|
67 |
+
|
68 |
+
|
69 |
+
### Framework versions
|
70 |
+
|
71 |
+
- Transformers 4.35.0
|
72 |
+
- Pytorch 2.1.0a0+32f93b1
|
73 |
+
- Datasets 2.14.6
|
74 |
+
- Tokenizers 0.14.1
|
adapter_config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "/data/models/vicuna-7b-v1.3",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"lora_alpha": 16,
|
12 |
+
"lora_dropout": 0.1,
|
13 |
+
"modules_to_save": null,
|
14 |
+
"peft_type": "LORA",
|
15 |
+
"r": 64,
|
16 |
+
"rank_pattern": {},
|
17 |
+
"revision": null,
|
18 |
+
"target_modules": [
|
19 |
+
"q_proj",
|
20 |
+
"v_proj",
|
21 |
+
"k_proj",
|
22 |
+
"o_proj"
|
23 |
+
],
|
24 |
+
"task_type": "CAUSAL_LM"
|
25 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1a6df79d0682c371165a1f500b8c24f0d7e822003e3c3c24a16dad4568d5fb0
|
3 |
+
size 134252592
|
all_results.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 14.06,
|
3 |
+
"eval_loss": 1.755342721939087,
|
4 |
+
"eval_runtime": 2.6455,
|
5 |
+
"eval_samples": 234,
|
6 |
+
"eval_samples_per_second": 88.453,
|
7 |
+
"eval_steps_per_second": 3.024,
|
8 |
+
"train_loss": 2.256301376554701,
|
9 |
+
"train_runtime": 1141.7556,
|
10 |
+
"train_samples": 2097,
|
11 |
+
"train_samples_per_second": 27.55,
|
12 |
+
"train_steps_per_second": 0.053
|
13 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 14.06,
|
3 |
+
"eval_loss": 1.755342721939087,
|
4 |
+
"eval_runtime": 2.6455,
|
5 |
+
"eval_samples": 234,
|
6 |
+
"eval_samples_per_second": 88.453,
|
7 |
+
"eval_steps_per_second": 3.024
|
8 |
+
}
|
runs/Jan02_01-53-59_f63ae9056bcd/events.out.tfevents.1704160464.f63ae9056bcd.1017858.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9a6285fe3d128396882d5373f16e467e1b35dfc5436db970c9b2238d0264291
|
3 |
+
size 8963
|
runs/Jan02_01-53-59_f63ae9056bcd/events.out.tfevents.1704161608.f63ae9056bcd.1017858.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3efe6bb4069ef76a6f66f93ff2c1e29ffd981f946ce14e9748efb5042586949e
|
3 |
+
size 306
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "</s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
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": true,
|
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,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": true,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": true,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": true,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
}
|
29 |
+
},
|
30 |
+
"bos_token": "<s>",
|
31 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
32 |
+
"clean_up_tokenization_spaces": false,
|
33 |
+
"eos_token": "</s>",
|
34 |
+
"legacy": true,
|
35 |
+
"model_max_length": 2048,
|
36 |
+
"pad_token": "<unk>",
|
37 |
+
"padding_side": "right",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": false
|
43 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 14.06,
|
3 |
+
"train_loss": 2.256301376554701,
|
4 |
+
"train_runtime": 1141.7556,
|
5 |
+
"train_samples": 2097,
|
6 |
+
"train_samples_per_second": 27.55,
|
7 |
+
"train_steps_per_second": 0.053
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 14.06060606060606,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 9,
|
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,
|
13 |
+
"eval_loss": 2.495208501815796,
|
14 |
+
"eval_runtime": 2.6893,
|
15 |
+
"eval_samples_per_second": 87.012,
|
16 |
+
"eval_steps_per_second": 2.975,
|
17 |
+
"step": 0
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"epoch": 1.09,
|
21 |
+
"learning_rate": 0.000299794430213186,
|
22 |
+
"loss": 2.5615,
|
23 |
+
"step": 1
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.09,
|
27 |
+
"eval_loss": 2.527021646499634,
|
28 |
+
"eval_runtime": 2.6142,
|
29 |
+
"eval_samples_per_second": 89.512,
|
30 |
+
"eval_steps_per_second": 3.06,
|
31 |
+
"step": 1
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 1.09,
|
35 |
+
"eval_loss": 2.5362284183502197,
|
36 |
+
"eval_runtime": 2.7127,
|
37 |
+
"eval_samples_per_second": 86.26,
|
38 |
+
"eval_steps_per_second": 2.949,
|
39 |
+
"step": 1
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 3.03,
|
43 |
+
"eval_loss": 2.5337562561035156,
|
44 |
+
"eval_runtime": 2.65,
|
45 |
+
"eval_samples_per_second": 88.303,
|
46 |
+
"eval_steps_per_second": 3.019,
|
47 |
+
"step": 2
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 4.12,
|
51 |
+
"eval_loss": 2.273432493209839,
|
52 |
+
"eval_runtime": 2.6565,
|
53 |
+
"eval_samples_per_second": 88.087,
|
54 |
+
"eval_steps_per_second": 3.012,
|
55 |
+
"step": 3
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"epoch": 4.12,
|
59 |
+
"eval_loss": 2.3209340572357178,
|
60 |
+
"eval_runtime": 2.6548,
|
61 |
+
"eval_samples_per_second": 88.143,
|
62 |
+
"eval_steps_per_second": 3.013,
|
63 |
+
"step": 3
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"epoch": 6.06,
|
67 |
+
"eval_loss": 2.102634906768799,
|
68 |
+
"eval_runtime": 2.6553,
|
69 |
+
"eval_samples_per_second": 88.127,
|
70 |
+
"eval_steps_per_second": 3.013,
|
71 |
+
"step": 4
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 7.15,
|
75 |
+
"learning_rate": 0.0002948888739433602,
|
76 |
+
"loss": 2.3634,
|
77 |
+
"step": 5
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"epoch": 7.15,
|
81 |
+
"eval_loss": 2.0141050815582275,
|
82 |
+
"eval_runtime": 2.6618,
|
83 |
+
"eval_samples_per_second": 87.911,
|
84 |
+
"eval_steps_per_second": 3.005,
|
85 |
+
"step": 5
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"epoch": 7.15,
|
89 |
+
"eval_loss": 2.0772061347961426,
|
90 |
+
"eval_runtime": 2.6548,
|
91 |
+
"eval_samples_per_second": 88.141,
|
92 |
+
"eval_steps_per_second": 3.013,
|
93 |
+
"step": 5
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 9.09,
|
97 |
+
"eval_loss": 1.9678362607955933,
|
98 |
+
"eval_runtime": 2.6714,
|
99 |
+
"eval_samples_per_second": 87.596,
|
100 |
+
"eval_steps_per_second": 2.995,
|
101 |
+
"step": 6
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"epoch": 9.09,
|
105 |
+
"eval_loss": 1.8939728736877441,
|
106 |
+
"eval_runtime": 2.6704,
|
107 |
+
"eval_samples_per_second": 87.627,
|
108 |
+
"eval_steps_per_second": 2.996,
|
109 |
+
"step": 6
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"epoch": 11.03,
|
113 |
+
"eval_loss": 1.812046766281128,
|
114 |
+
"eval_runtime": 2.6479,
|
115 |
+
"eval_samples_per_second": 88.374,
|
116 |
+
"eval_steps_per_second": 3.021,
|
117 |
+
"step": 7
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"epoch": 12.12,
|
121 |
+
"eval_loss": 1.8151631355285645,
|
122 |
+
"eval_runtime": 2.6396,
|
123 |
+
"eval_samples_per_second": 88.651,
|
124 |
+
"eval_steps_per_second": 3.031,
|
125 |
+
"step": 8
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"epoch": 12.12,
|
129 |
+
"eval_loss": 1.7991279363632202,
|
130 |
+
"eval_runtime": 2.6349,
|
131 |
+
"eval_samples_per_second": 88.807,
|
132 |
+
"eval_steps_per_second": 3.036,
|
133 |
+
"step": 8
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"epoch": 14.06,
|
137 |
+
"eval_loss": 1.7646088600158691,
|
138 |
+
"eval_runtime": 2.6455,
|
139 |
+
"eval_samples_per_second": 88.453,
|
140 |
+
"eval_steps_per_second": 3.024,
|
141 |
+
"step": 9
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"epoch": 14.06,
|
145 |
+
"step": 9,
|
146 |
+
"total_flos": 2602157207453696.0,
|
147 |
+
"train_loss": 2.256301376554701,
|
148 |
+
"train_runtime": 1141.7556,
|
149 |
+
"train_samples_per_second": 27.55,
|
150 |
+
"train_steps_per_second": 0.053
|
151 |
+
}
|
152 |
+
],
|
153 |
+
"logging_steps": 5,
|
154 |
+
"max_steps": 60,
|
155 |
+
"num_train_epochs": 15,
|
156 |
+
"save_steps": 500,
|
157 |
+
"total_flos": 2602157207453696.0,
|
158 |
+
"trial_name": null,
|
159 |
+
"trial_params": null
|
160 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:500cfc6e90b12a61bb4db463f2d55648c99238886dfbe6d483796b178fe00c17
|
3 |
+
size 5688
|