pbaoo2705 commited on
Commit
743c12a
1 Parent(s): 2e96703

QLoRA applied #2

Browse files
README.md CHANGED
@@ -33,7 +33,7 @@ More information needed
33
  The following hyperparameters were used during training:
34
  - learning_rate: 0.0002
35
  - train_batch_size: 4
36
- - eval_batch_size: 2
37
  - seed: 42
38
  - gradient_accumulation_steps: 4
39
  - total_train_batch_size: 16
@@ -48,7 +48,7 @@ The following hyperparameters were used during training:
48
 
49
  ### Framework versions
50
 
51
- - Transformers 4.33.2
52
  - Pytorch 2.0.1+cu118
53
  - Datasets 2.14.5
54
- - Tokenizers 0.13.3
 
33
  The following hyperparameters were used during training:
34
  - learning_rate: 0.0002
35
  - train_batch_size: 4
36
+ - eval_batch_size: 1
37
  - seed: 42
38
  - gradient_accumulation_steps: 4
39
  - total_train_batch_size: 16
 
48
 
49
  ### Framework versions
50
 
51
+ - Transformers 4.34.0
52
  - Pytorch 2.0.1+cu118
53
  - Datasets 2.14.5
54
+ - Tokenizers 0.14.0
adapter_config.json CHANGED
@@ -2,23 +2,18 @@
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
  "base_model_name_or_path": "ybelkada/falcon-7b-sharded-bf16",
5
- "beta1": 0.85,
6
- "beta2": 0.85,
7
  "bias": "none",
8
- "deltaT": 10,
9
  "fan_in_fan_out": false,
10
  "inference_mode": true,
11
  "init_lora_weights": true,
12
- "init_r": 12,
13
  "layers_pattern": null,
14
  "layers_to_transform": null,
15
- "lora_alpha": 32,
16
  "lora_dropout": 0.1,
17
  "modules_to_save": null,
18
- "orth_reg_weight": 0.5,
19
- "peft_type": "ADALORA",
20
- "r": 8,
21
- "rank_pattern": null,
22
  "revision": null,
23
  "target_modules": [
24
  "query_key_value",
@@ -26,9 +21,5 @@
26
  "dense_h_to_4h",
27
  "dense_4h_to_h"
28
  ],
29
- "target_r": 8,
30
- "task_type": "CAUSAL_LM",
31
- "tfinal": 1000,
32
- "tinit": 200,
33
- "total_step": null
34
  }
 
2
  "alpha_pattern": {},
3
  "auto_mapping": null,
4
  "base_model_name_or_path": "ybelkada/falcon-7b-sharded-bf16",
 
 
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
  "query_key_value",
 
21
  "dense_h_to_4h",
22
  "dense_4h_to_h"
23
  ],
24
+ "task_type": "CAUSAL_LM"
 
 
 
 
25
  }
adapter_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c76e12333a01e95fa24b0e2238c3df1dfb613fd6e8706fa89bee9fd3a7941fed
3
- size 98048461
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc7e2e15a4a1a9cb9d39e55c002d6709070611ab628daf0701720ec1d24279b5
3
+ size 522284877
special_tokens_map.json CHANGED
@@ -10,7 +10,8 @@
10
  ">>DOMAIN<<",
11
  ">>PREFIX<<",
12
  ">>SUFFIX<<",
13
- ">>MIDDLE<<"
 
14
  ],
15
  "eos_token": "<|endoftext|>",
16
  "pad_token": "<|endoftext|>"
 
10
  ">>DOMAIN<<",
11
  ">>PREFIX<<",
12
  ">>SUFFIX<<",
13
+ ">>MIDDLE<<",
14
+ "<|endoftext|>"
15
  ],
16
  "eos_token": "<|endoftext|>",
17
  "pad_token": "<|endoftext|>"
tokenizer.json CHANGED
@@ -1,11 +1,6 @@
1
  {
2
  "version": "1.0",
3
- "truncation": {
4
- "direction": "Right",
5
- "max_length": 2048,
6
- "strategy": "LongestFirst",
7
- "stride": 0
8
- },
9
  "padding": null,
10
  "added_tokens": [
11
  {
 
1
  {
2
  "version": "1.0",
3
+ "truncation": null,
 
 
 
 
 
4
  "padding": null,
5
  "added_tokens": [
6
  {
tokenizer_config.json CHANGED
@@ -1,9 +1,122 @@
1
  {
2
  "add_prefix_space": false,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "clean_up_tokenization_spaces": true,
4
  "eos_token": "<|endoftext|>",
5
  "max_length": 512,
6
  "model_max_length": 2048,
 
7
  "stride": 0,
8
  "tokenizer_class": "PreTrainedTokenizerFast",
9
  "truncation_side": "right",
 
1
  {
2
  "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": ">>TITLE<<",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": ">>ABSTRACT<<",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": ">>INTRODUCTION<<",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": ">>SUMMARY<<",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": ">>COMMENT<<",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "5": {
45
+ "content": ">>ANSWER<<",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "6": {
53
+ "content": ">>QUESTION<<",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "7": {
61
+ "content": ">>DOMAIN<<",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "8": {
69
+ "content": ">>PREFIX<<",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "9": {
77
+ "content": ">>SUFFIX<<",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "10": {
85
+ "content": ">>MIDDLE<<",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "11": {
93
+ "content": "<|endoftext|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ }
100
+ },
101
+ "additional_special_tokens": [
102
+ ">>TITLE<<",
103
+ ">>ABSTRACT<<",
104
+ ">>INTRODUCTION<<",
105
+ ">>SUMMARY<<",
106
+ ">>COMMENT<<",
107
+ ">>ANSWER<<",
108
+ ">>QUESTION<<",
109
+ ">>DOMAIN<<",
110
+ ">>PREFIX<<",
111
+ ">>SUFFIX<<",
112
+ ">>MIDDLE<<",
113
+ "<|endoftext|>"
114
+ ],
115
  "clean_up_tokenization_spaces": true,
116
  "eos_token": "<|endoftext|>",
117
  "max_length": 512,
118
  "model_max_length": 2048,
119
+ "pad_token": "<|endoftext|>",
120
  "stride": 0,
121
  "tokenizer_class": "PreTrainedTokenizerFast",
122
  "truncation_side": "right",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:05affc715a4251a28ca850ed23b9a4573187399e32a14d3e9a534cef01cd79e8
3
  size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78c45554dd5cc708c869af76cdf8b4b7d989e20dd8c4a0a94962904e60091e28
3
  size 4091