Model save
Browse files- README.md +112 -0
- adapter_config.json +25 -0
- adapter_model.bin +3 -0
- added_tokens.json +5 -0
- special_tokens_map.json +6 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +40 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama2
|
3 |
+
base_model: meta-llama/Llama-2-7b-hf
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
model-index:
|
9 |
+
- name: squad_qa_title_v5_full_add3_meta-llama_Llama-2-7b-hf_3e-5_lora
|
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 |
+
# squad_qa_title_v5_full_add3_meta-llama_Llama-2-7b-hf_3e-5_lora
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 2.2280
|
21 |
+
- Accuracy: 0.6805
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 3e-05
|
41 |
+
- train_batch_size: 8
|
42 |
+
- eval_batch_size: 8
|
43 |
+
- seed: 42
|
44 |
+
- gradient_accumulation_steps: 4
|
45 |
+
- total_train_batch_size: 32
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: constant
|
48 |
+
- lr_scheduler_warmup_ratio: 0.05
|
49 |
+
- num_epochs: 50.0
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
54 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
55 |
+
| 1.4938 | 1.0 | 158 | 1.2449 | 0.6971 |
|
56 |
+
| 1.1222 | 2.0 | 317 | 1.2146 | 0.6904 |
|
57 |
+
| 0.9588 | 3.0 | 476 | 1.1494 | 0.7081 |
|
58 |
+
| 0.6516 | 4.0 | 635 | 1.1579 | 0.7004 |
|
59 |
+
| 0.5382 | 5.0 | 793 | 1.1923 | 0.7003 |
|
60 |
+
| 0.3783 | 6.0 | 952 | 1.2099 | 0.7042 |
|
61 |
+
| 0.2976 | 7.0 | 1111 | 1.2805 | 0.7016 |
|
62 |
+
| 0.2588 | 8.0 | 1270 | 1.3570 | 0.6936 |
|
63 |
+
| 0.221 | 9.0 | 1428 | 1.4097 | 0.6954 |
|
64 |
+
| 0.2046 | 10.0 | 1587 | 1.4708 | 0.6884 |
|
65 |
+
| 0.1747 | 11.0 | 1746 | 1.5390 | 0.6966 |
|
66 |
+
| 0.1595 | 12.0 | 1905 | 1.6042 | 0.6928 |
|
67 |
+
| 0.1484 | 13.0 | 2063 | 1.7245 | 0.6913 |
|
68 |
+
| 0.1418 | 14.0 | 2222 | 1.7843 | 0.6914 |
|
69 |
+
| 0.1352 | 15.0 | 2381 | 1.7591 | 0.6918 |
|
70 |
+
| 0.1332 | 16.0 | 2540 | 1.7855 | 0.6915 |
|
71 |
+
| 0.124 | 17.0 | 2698 | 1.8559 | 0.6845 |
|
72 |
+
| 0.1216 | 18.0 | 2857 | 1.7711 | 0.6939 |
|
73 |
+
| 0.1212 | 19.0 | 3016 | 1.8782 | 0.6892 |
|
74 |
+
| 0.1201 | 20.0 | 3175 | 1.8749 | 0.6939 |
|
75 |
+
| 0.116 | 21.0 | 3333 | 1.9779 | 0.6873 |
|
76 |
+
| 0.1178 | 22.0 | 3492 | 1.8992 | 0.6871 |
|
77 |
+
| 0.1126 | 23.0 | 3651 | 1.9506 | 0.6910 |
|
78 |
+
| 0.1157 | 24.0 | 3810 | 1.9331 | 0.6891 |
|
79 |
+
| 0.1101 | 25.0 | 3968 | 2.0093 | 0.6890 |
|
80 |
+
| 0.1091 | 26.0 | 4127 | 1.9804 | 0.6802 |
|
81 |
+
| 0.1059 | 27.0 | 4286 | 2.0450 | 0.6907 |
|
82 |
+
| 0.1089 | 28.0 | 4445 | 1.9597 | 0.6895 |
|
83 |
+
| 0.1106 | 29.0 | 4603 | 2.0416 | 0.6848 |
|
84 |
+
| 0.1072 | 30.0 | 4762 | 2.0787 | 0.6833 |
|
85 |
+
| 0.1092 | 31.0 | 4921 | 1.9773 | 0.6868 |
|
86 |
+
| 0.1096 | 32.0 | 5080 | 2.0183 | 0.6881 |
|
87 |
+
| 0.1077 | 33.0 | 5238 | 2.1192 | 0.6885 |
|
88 |
+
| 0.1065 | 34.0 | 5397 | 2.0604 | 0.6801 |
|
89 |
+
| 0.107 | 35.0 | 5556 | 2.0040 | 0.6794 |
|
90 |
+
| 0.1063 | 36.0 | 5715 | 2.0488 | 0.6826 |
|
91 |
+
| 0.1088 | 37.0 | 5873 | 2.1437 | 0.6851 |
|
92 |
+
| 0.1041 | 38.0 | 6032 | 2.1194 | 0.6847 |
|
93 |
+
| 0.1053 | 39.0 | 6191 | 2.1010 | 0.6840 |
|
94 |
+
| 0.1062 | 40.0 | 6350 | 2.1417 | 0.6797 |
|
95 |
+
| 0.1052 | 41.0 | 6508 | 2.1034 | 0.6847 |
|
96 |
+
| 0.1061 | 42.0 | 6667 | 2.0156 | 0.6833 |
|
97 |
+
| 0.1043 | 43.0 | 6826 | 2.1744 | 0.6825 |
|
98 |
+
| 0.1039 | 44.0 | 6985 | 2.1533 | 0.6847 |
|
99 |
+
| 0.1059 | 45.0 | 7143 | 2.1866 | 0.6836 |
|
100 |
+
| 0.1062 | 46.0 | 7302 | 2.1303 | 0.6800 |
|
101 |
+
| 0.1023 | 47.0 | 7461 | 2.1316 | 0.6850 |
|
102 |
+
| 0.1056 | 48.0 | 7620 | 2.1523 | 0.6809 |
|
103 |
+
| 0.1035 | 49.0 | 7778 | 2.2397 | 0.6815 |
|
104 |
+
| 0.1029 | 49.76 | 7900 | 2.2280 | 0.6805 |
|
105 |
+
|
106 |
+
|
107 |
+
### Framework versions
|
108 |
+
|
109 |
+
- Transformers 4.34.0
|
110 |
+
- Pytorch 2.1.0+cu121
|
111 |
+
- Datasets 2.18.0
|
112 |
+
- Tokenizers 0.14.1
|
adapter_config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"auto_mapping": null,
|
3 |
+
"base_model_name_or_path": "meta-llama/Llama-2-7b-hf",
|
4 |
+
"bias": "none",
|
5 |
+
"fan_in_fan_out": false,
|
6 |
+
"inference_mode": true,
|
7 |
+
"init_lora_weights": true,
|
8 |
+
"layers_pattern": null,
|
9 |
+
"layers_to_transform": null,
|
10 |
+
"lora_alpha": 16,
|
11 |
+
"lora_dropout": 0.05,
|
12 |
+
"modules_to_save": null,
|
13 |
+
"peft_type": "LORA",
|
14 |
+
"r": 16,
|
15 |
+
"revision": null,
|
16 |
+
"target_modules": [
|
17 |
+
"q_proj",
|
18 |
+
"k_proj",
|
19 |
+
"v_proj",
|
20 |
+
"down_proj",
|
21 |
+
"gate_proj",
|
22 |
+
"up_proj"
|
23 |
+
],
|
24 |
+
"task_type": "CAUSAL_LM"
|
25 |
+
}
|
adapter_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1e25337d3b8f72ea637dee3a78cc9450f59da63d8b7401083c2fa34c02cbf3a1
|
3 |
+
size 143269386
|
added_tokens.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 2,
|
3 |
+
"<s>": 1,
|
4 |
+
"<unk>": 0
|
5 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"eos_token": "</s>",
|
4 |
+
"pad_token": "</s>",
|
5 |
+
"unk_token": "<unk>"
|
6 |
+
}
|
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,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "<unk>",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "<s>",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "</s>",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
}
|
27 |
+
},
|
28 |
+
"additional_special_tokens": [],
|
29 |
+
"bos_token": "<s>",
|
30 |
+
"clean_up_tokenization_spaces": false,
|
31 |
+
"eos_token": "</s>",
|
32 |
+
"legacy": false,
|
33 |
+
"model_max_length": 1000000000000000019884624838656,
|
34 |
+
"pad_token": "</s>",
|
35 |
+
"padding_side": "left",
|
36 |
+
"sp_model_kwargs": {},
|
37 |
+
"tokenizer_class": "LlamaTokenizer",
|
38 |
+
"unk_token": "<unk>",
|
39 |
+
"use_default_system_prompt": true
|
40 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cb1da81992b4d6b8830eec0c1fcdecd28f007b1be04d54d608a95f3ef97550be
|
3 |
+
size 4728
|