PEFT
Safetensors
Japanese
English
h-iida commited on
Commit
373d392
·
verified ·
1 Parent(s): 116db6a

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,3 +1,202 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-2-7b-hf
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.11.1
adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": {
4
+ "base_model_class": "LlamaBiModel",
5
+ "parent_library": "llm2vec.models.bidirectional_llama"
6
+ },
7
+ "base_model_name_or_path": "meta-llama/Llama-2-7b-hf",
8
+ "bias": "none",
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 32,
17
+ "lora_dropout": 0.05,
18
+ "megatron_config": null,
19
+ "megatron_core": "megatron.core",
20
+ "modules_to_save": null,
21
+ "peft_type": "LORA",
22
+ "r": 16,
23
+ "rank_pattern": {},
24
+ "revision": null,
25
+ "target_modules": [
26
+ "up_proj",
27
+ "v_proj",
28
+ "q_proj",
29
+ "gate_proj",
30
+ "o_proj",
31
+ "k_proj",
32
+ "down_proj"
33
+ ],
34
+ "task_type": null,
35
+ "use_dora": false,
36
+ "use_rslora": false
37
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afebb2ec548a49e0794b97082adec44b90e86b0aeed2708a4d1f968bb2b52e48
3
+ size 80011328
all_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.010905601116733554,
3
+ "eval_accuracy": 0.7869404549281535,
4
+ "eval_loss": 0.8759388327598572,
5
+ "eval_runtime": 249.4157,
6
+ "eval_samples": 5564,
7
+ "eval_samples_per_second": 22.308,
8
+ "eval_steps_per_second": 0.088,
9
+ "perplexity": 2.4011284942034856,
10
+ "total_flos": 1.3069163715939533e+18,
11
+ "train_loss": 1.3858390502929687,
12
+ "train_runtime": 13072.5982,
13
+ "train_samples": 5868487,
14
+ "train_samples_per_second": 1346.745,
15
+ "train_steps_per_second": 21.043
16
+ }
eval_results.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.010905601116733554,
3
+ "eval_accuracy": 0.7869404549281535,
4
+ "eval_loss": 0.8759388327598572,
5
+ "eval_runtime": 249.4157,
6
+ "eval_samples": 5564,
7
+ "eval_samples_per_second": 22.308,
8
+ "eval_steps_per_second": 0.088,
9
+ "perplexity": 2.4011284942034856
10
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "mask_token": "_",
17
+ "pad_token": "</s>",
18
+ "unk_token": {
19
+ "content": "<unk>",
20
+ "lstrip": false,
21
+ "normalized": false,
22
+ "rstrip": false,
23
+ "single_word": false
24
+ }
25
+ }
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
+ "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
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "mask_token": "_",
36
+ "model_max_length": 1000000000000000019884624838656,
37
+ "pad_token": "</s>",
38
+ "padding_side": "right",
39
+ "sp_model_kwargs": {},
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.010905601116733554,
3
+ "total_flos": 1.3069163715939533e+18,
4
+ "train_loss": 1.3858390502929687,
5
+ "train_runtime": 13072.5982,
6
+ "train_samples": 5868487,
7
+ "train_samples_per_second": 1346.745,
8
+ "train_steps_per_second": 21.043
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.010905601116733554,
5
+ "eval_steps": 100,
6
+ "global_step": 1000,
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.0010905601116733554,
13
+ "eval_accuracy": 0.5034676821874995,
14
+ "eval_loss": 2.249495029449463,
15
+ "eval_runtime": 250.8322,
16
+ "eval_samples_per_second": 22.182,
17
+ "eval_steps_per_second": 0.088,
18
+ "step": 100
19
+ },
20
+ {
21
+ "epoch": 0.002181120223346711,
22
+ "eval_accuracy": 0.6792460132466641,
23
+ "eval_loss": 1.3580471277236938,
24
+ "eval_runtime": 250.935,
25
+ "eval_samples_per_second": 22.173,
26
+ "eval_steps_per_second": 0.088,
27
+ "step": 200
28
+ },
29
+ {
30
+ "epoch": 0.0032716803350200663,
31
+ "eval_accuracy": 0.7194358306786471,
32
+ "eval_loss": 1.1734950542449951,
33
+ "eval_runtime": 249.8616,
34
+ "eval_samples_per_second": 22.268,
35
+ "eval_steps_per_second": 0.088,
36
+ "step": 300
37
+ },
38
+ {
39
+ "epoch": 0.004362240446693422,
40
+ "eval_accuracy": 0.7406081066868597,
41
+ "eval_loss": 1.0811182260513306,
42
+ "eval_runtime": 250.2334,
43
+ "eval_samples_per_second": 22.235,
44
+ "eval_steps_per_second": 0.088,
45
+ "step": 400
46
+ },
47
+ {
48
+ "epoch": 0.005452800558366777,
49
+ "grad_norm": 1.5124988555908203,
50
+ "learning_rate": 4.990911999069389e-05,
51
+ "loss": 1.8503,
52
+ "step": 500
53
+ },
54
+ {
55
+ "epoch": 0.005452800558366777,
56
+ "eval_accuracy": 0.7539559460484646,
57
+ "eval_loss": 1.0170289278030396,
58
+ "eval_runtime": 250.2283,
59
+ "eval_samples_per_second": 22.236,
60
+ "eval_steps_per_second": 0.088,
61
+ "step": 500
62
+ },
63
+ {
64
+ "epoch": 0.0065433606700401326,
65
+ "eval_accuracy": 0.7639956787495118,
66
+ "eval_loss": 0.9728907346725464,
67
+ "eval_runtime": 250.2409,
68
+ "eval_samples_per_second": 22.235,
69
+ "eval_steps_per_second": 0.088,
70
+ "step": 600
71
+ },
72
+ {
73
+ "epoch": 0.007633920781713488,
74
+ "eval_accuracy": 0.7704801005740811,
75
+ "eval_loss": 0.9435333013534546,
76
+ "eval_runtime": 250.3167,
77
+ "eval_samples_per_second": 22.228,
78
+ "eval_steps_per_second": 0.088,
79
+ "step": 700
80
+ },
81
+ {
82
+ "epoch": 0.008724480893386843,
83
+ "eval_accuracy": 0.7747122964825798,
84
+ "eval_loss": 0.924051821231842,
85
+ "eval_runtime": 250.2963,
86
+ "eval_samples_per_second": 22.23,
87
+ "eval_steps_per_second": 0.088,
88
+ "step": 800
89
+ },
90
+ {
91
+ "epoch": 0.009815041005060199,
92
+ "eval_accuracy": 0.7814711185942613,
93
+ "eval_loss": 0.8970186114311218,
94
+ "eval_runtime": 250.1321,
95
+ "eval_samples_per_second": 22.244,
96
+ "eval_steps_per_second": 0.088,
97
+ "step": 900
98
+ },
99
+ {
100
+ "epoch": 0.010905601116733554,
101
+ "grad_norm": 1.2721333503723145,
102
+ "learning_rate": 4.981823998138778e-05,
103
+ "loss": 0.9214,
104
+ "step": 1000
105
+ },
106
+ {
107
+ "epoch": 0.010905601116733554,
108
+ "eval_accuracy": 0.7872277846758073,
109
+ "eval_loss": 0.8725214004516602,
110
+ "eval_runtime": 249.8439,
111
+ "eval_samples_per_second": 22.27,
112
+ "eval_steps_per_second": 0.088,
113
+ "step": 1000
114
+ },
115
+ {
116
+ "epoch": 0.010905601116733554,
117
+ "step": 1000,
118
+ "total_flos": 1.3069163715939533e+18,
119
+ "train_loss": 1.3858390502929687,
120
+ "train_runtime": 13072.5982,
121
+ "train_samples_per_second": 1346.745,
122
+ "train_steps_per_second": 21.043
123
+ }
124
+ ],
125
+ "logging_steps": 500,
126
+ "max_steps": 275088,
127
+ "num_input_tokens_seen": 0,
128
+ "num_train_epochs": 3,
129
+ "save_steps": 200,
130
+ "stateful_callbacks": {
131
+ "TrainerControl": {
132
+ "args": {
133
+ "should_epoch_stop": false,
134
+ "should_evaluate": false,
135
+ "should_log": false,
136
+ "should_save": true,
137
+ "should_training_stop": true
138
+ },
139
+ "attributes": {}
140
+ }
141
+ },
142
+ "total_flos": 1.3069163715939533e+18,
143
+ "train_batch_size": 32,
144
+ "trial_name": null,
145
+ "trial_params": null
146
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:217014ea113307106ec5681b048e9d06253d54a3b152f5e1deb254e73d0562cf
3
+ size 6072