JiunYi commited on
Commit
a63e2e1
1 Parent(s): d8b13e4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +219 -2
README.md CHANGED
@@ -5,11 +5,228 @@ datasets:
5
  language:
6
  - zh
7
  library_name: transformers
8
- pipeline_tag: text-generation
9
  tags:
10
  - LoRA
11
  - LLaMA
12
  - Alpaca
13
  - PEFT
14
  - int8
15
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  language:
6
  - zh
7
  library_name: transformers
 
8
  tags:
9
  - LoRA
10
  - LLaMA
11
  - Alpaca
12
  - PEFT
13
  - int8
14
+ ---
15
+
16
+ # Model Card for Model ID
17
+
18
+ <!-- Provide a quick summary of what the model is/does. -->
19
+
20
+ This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
21
+
22
+ ## Model Details
23
+
24
+ ### Model Description
25
+
26
+ <!-- Provide a longer summary of what this model is. -->
27
+
28
+
29
+
30
+ - **Developed by:** [More Information Needed]
31
+ - **Shared by [optional]:** [More Information Needed]
32
+ - **Model type:** [More Information Needed]
33
+ - **Language(s) (NLP):** [More Information Needed]
34
+ - **License:** [More Information Needed]
35
+ - **Finetuned from model [optional]:** [More Information Needed]
36
+
37
+ ### Model Sources [optional]
38
+
39
+ <!-- Provide the basic links for the model. -->
40
+
41
+ - **Repository:** [More Information Needed]
42
+ - **Paper [optional]:** [More Information Needed]
43
+ - **Demo [optional]:** [More Information Needed]
44
+
45
+ ## Uses
46
+
47
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
48
+
49
+ ### Direct Use
50
+
51
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
52
+
53
+ ```=python
54
+ from peft import PeftModel
55
+ from transformers import GenerationConfig, LlamaForCausalLM, LlamaTokenizer
56
+
57
+
58
+ max_memory = {i: "15GIB" for i in range(torch.cuda.device_count())}
59
+ tokenizer = LlamaTokenizer.from_pretrained(base_model)
60
+ model = LlamaForCausalLM.from_pretrained(
61
+ base_model,
62
+ load_in_8bit=True,
63
+ torch_dtype=torch.float16,
64
+ device_map="auto"
65
+ max_memory=max_memory
66
+ )
67
+ model = PeftModel.from_pretrained(
68
+ model,
69
+ lora_weights,
70
+ torch_dtype=torch.float16,
71
+ max_memory=max_memory
72
+ )
73
+ ```
74
+
75
+ [More Information Needed]
76
+
77
+ ### Downstream Use [optional]
78
+
79
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
80
+
81
+ [More Information Needed]
82
+
83
+ ### Out-of-Scope Use
84
+
85
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
86
+
87
+ [More Information Needed]
88
+
89
+ ## Bias, Risks, and Limitations
90
+
91
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
92
+
93
+ [More Information Needed]
94
+
95
+ ### Recommendations
96
+
97
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
98
+
99
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
100
+
101
+ ## How to Get Started with the Model
102
+
103
+ Use the code below to get started with the model.
104
+
105
+ [More Information Needed]
106
+
107
+ ## Training Details
108
+
109
+ ### Training Data
110
+
111
+ <!-- This should link to a Data 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. -->
112
+
113
+ [More Information Needed]
114
+
115
+ ### Training Procedure
116
+
117
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
118
+
119
+ #### Preprocessing [optional]
120
+
121
+ [More Information Needed]
122
+
123
+
124
+ #### Training Hyperparameters
125
+
126
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
127
+
128
+ #### Speeds, Sizes, Times [optional]
129
+
130
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ## Evaluation
135
+
136
+ <!-- This section describes the evaluation protocols and provides the results. -->
137
+
138
+ ### Testing Data, Factors & Metrics
139
+
140
+ #### Testing Data
141
+
142
+ <!-- This should link to a Data Card if possible. -->
143
+
144
+ [More Information Needed]
145
+
146
+ #### Factors
147
+
148
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
149
+
150
+ [More Information Needed]
151
+
152
+ #### Metrics
153
+
154
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
155
+
156
+ [More Information Needed]
157
+
158
+ ### Results
159
+
160
+ [More Information Needed]
161
+
162
+ #### Summary
163
+
164
+
165
+
166
+ ## Model Examination [optional]
167
+
168
+ <!-- Relevant interpretability work for the model goes here -->
169
+
170
+ [More Information Needed]
171
+
172
+ ## Environmental Impact
173
+
174
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
175
+
176
+ 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).
177
+
178
+ - **Hardware Type:** [More Information Needed]
179
+ - **Hours used:** [More Information Needed]
180
+ - **Cloud Provider:** [More Information Needed]
181
+ - **Compute Region:** [More Information Needed]
182
+ - **Carbon Emitted:** [More Information Needed]
183
+
184
+ ## Technical Specifications [optional]
185
+
186
+ ### Model Architecture and Objective
187
+
188
+ [More Information Needed]
189
+
190
+ ### Compute Infrastructure
191
+
192
+ [More Information Needed]
193
+
194
+ #### Hardware
195
+
196
+ [More Information Needed]
197
+
198
+ #### Software
199
+
200
+ [More Information Needed]
201
+
202
+ ## Citation [optional]
203
+
204
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
205
+
206
+ **BibTeX:**
207
+
208
+ [More Information Needed]
209
+
210
+ **APA:**
211
+
212
+ [More Information Needed]
213
+
214
+ ## Glossary [optional]
215
+
216
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
217
+
218
+ [More Information Needed]
219
+
220
+ ## More Information [optional]
221
+
222
+ [More Information Needed]
223
+
224
+ ## Model Card Authors [optional]
225
+
226
+ [More Information Needed]
227
+
228
+ ## Model Card Contact
229
+
230
+ [More Information Needed]
231
+
232
+