rmihaylov commited on
Commit
9c470e5
1 Parent(s): 80273ab

Add license

Browse files
Files changed (1) hide show
  1. README.md +163 -2
README.md CHANGED
@@ -2,7 +2,7 @@
2
  inference: false
3
  language:
4
  - bg
5
- license: mit
6
  tags:
7
  - torch
8
  ---
@@ -19,7 +19,9 @@ The training data is private Bulgarian dataset.
19
 
20
  ## Intended uses & limitations
21
 
22
- This is an instruction-based model similart to ChatGPT but in Bulgarian. The inteded use is research-only.
 
 
23
 
24
  ### How to use
25
 
@@ -40,3 +42,162 @@ Here is how to use this model in PyTorch:
40
  This will download both a base model and an adapter from huggingface. Then it will run a gradio interface for chatting.
41
 
42
  Example using this model: [Colab](https://colab.research.google.com/drive/1IPz8QqOa5ZUBz7ZyXE4hhh7XwMEH-D9S#scrollTo=onLKXdA97gjs)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  inference: false
3
  language:
4
  - bg
5
+ license: other
6
  tags:
7
  - torch
8
  ---
 
19
 
20
  ## Intended uses & limitations
21
 
22
+ This is an instruction-based model similart to ChatGPT but in Bulgarian.
23
+
24
+ This is under a special license, please see the LICENSE file for details.
25
 
26
  ### How to use
27
 
 
42
  This will download both a base model and an adapter from huggingface. Then it will run a gradio interface for chatting.
43
 
44
  Example using this model: [Colab](https://colab.research.google.com/drive/1IPz8QqOa5ZUBz7ZyXE4hhh7XwMEH-D9S#scrollTo=onLKXdA97gjs)
45
+
46
+
47
+ --
48
+ license: other
49
+ ---
50
+ # LLaMA Model Card
51
+
52
+ ## Model details
53
+ **Organization developing the model**
54
+ The FAIR team of Meta AI.
55
+
56
+ **Model date**
57
+ LLaMA was trained between December. 2022 and Feb. 2023.
58
+
59
+ **Model version**
60
+ This is version 1 of the model.
61
+
62
+ **Model type**
63
+ LLaMA is an auto-regressive language model, based on the transformer architecture. The model comes in different sizes: 7B, 13B, 33B and 65B parameters.
64
+
65
+ **Paper or resources for more information**
66
+ More information can be found in the paper “LLaMA, Open and Efficient Foundation Language Models”, available at https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/.
67
+
68
+ **Citations details**
69
+ https://research.facebook.com/publications/llama-open-and-efficient-foundation-language-models/
70
+
71
+ **License**
72
+ Non-commercial bespoke license
73
+
74
+ **Where to send questions or comments about the model**
75
+ Questions and comments about LLaMA can be sent via the [GitHub repository](https://github.com/facebookresearch/llama) of the project , by opening an issue.
76
+
77
+ ## Intended use
78
+ **Primary intended uses**
79
+ The primary use of LLaMA is research on large language models, including:
80
+ exploring potential applications such as question answering, natural language understanding or reading comprehension,
81
+ understanding capabilities and limitations of current language models, and developing techniques to improve those,
82
+ evaluating and mitigating biases, risks, toxic and harmful content generations, hallucinations.
83
+
84
+ **Primary intended users**
85
+ The primary intended users of the model are researchers in natural language processing, machine learning and artificial intelligence.
86
+
87
+ **Out-of-scope use cases**
88
+ LLaMA is a base, or foundational, model. As such, it should not be used on downstream applications without further risk evaluation and mitigation. In particular, our model has not been trained with human feedback, and can thus generate toxic or offensive content, incorrect information or generally unhelpful answers.
89
+
90
+ ## Factors
91
+ **Relevant factors**
92
+ One of the most relevant factors for which model performance may vary is which language is used. Although we included 20 languages in the training data, most of our dataset is made of English text, and we thus expect the model to perform better for English than other languages. Relatedly, it has been shown in previous studies that performance might vary for different dialects, and we expect that it will be the case for our model.
93
+
94
+ **Evaluation factors**
95
+ As our model is trained on data from the Web, we expect that it reflects biases from this source. We thus evaluated on RAI datasets to measure biases exhibited by the model for gender, religion, race, sexual orientation, age, nationality, disability, physical appearance and socio-economic status. We also measure the toxicity of model generations, depending on the toxicity of the context used to prompt the model.
96
+
97
+ ## Metrics
98
+ **Model performance measures**
99
+ We use the following measure to evaluate the model:
100
+ - Accuracy for common sense reasoning, reading comprehension, natural language understanding (MMLU), BIG-bench hard, WinoGender and CrowS-Pairs,
101
+ - Exact match for question answering,
102
+ - The toxicity score from Perspective API on RealToxicityPrompts.
103
+
104
+ **Decision thresholds**
105
+ Not applicable.
106
+
107
+ **Approaches to uncertainty and variability**
108
+ Due to the high computational requirements of training LLMs, we trained only one model of each size, and thus could not evaluate variability of pre-training.
109
+
110
+ ## Evaluation datasets
111
+ The model was evaluated on the following benchmarks: BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC, OpenBookQA, NaturalQuestions, TriviaQA, RACE, MMLU, BIG-bench hard, GSM8k, RealToxicityPrompts, WinoGender, CrowS-Pairs.
112
+
113
+ ## Training dataset
114
+ The model was trained using the following source of data: CCNet [67%], C4 [15%], GitHub [4.5%], Wikipedia [4.5%], Books [4.5%], ArXiv [2.5%], Stack Exchange[2%]. The Wikipedia and Books domains include data in the following languages: bg, ca, cs, da, de, en, es, fr, hr, hu, it, nl, pl, pt, ro, ru, sl, sr, sv, uk. See the paper for more details about the training set and corresponding preprocessing.
115
+
116
+ ## Quantitative analysis
117
+ Hyperparameters for the model architecture
118
+
119
+
120
+ <table>
121
+ <thead>
122
+ <tr>
123
+ <th >LLaMA</th> <th colspan=6>Model hyper parameters </th>
124
+ </tr>
125
+ <tr>
126
+ <th>Number of parameters</th><th>dimension</th><th>n heads</th><th>n layers</th><th>Learn rate</th><th>Batch size</th><th>n tokens</th>
127
+ </tr>
128
+ </thead>
129
+ <tbody>
130
+ <tr>
131
+ <th>7B</th> <th>4096</th> <th>32</th> <th>32</th> <th>3.0E-04</th><th>4M</th><th>1T
132
+ </tr>
133
+ <tr>
134
+ <th>13B</th><th>5120</th><th>40</th><th>40</th><th>3.0E-04</th><th>4M</th><th>1T
135
+ </tr>
136
+ <tr>
137
+ <th>33B</th><th>6656</th><th>52</th><th>60</th><th>1.5.E-04</th><th>4M</th><th>1.4T
138
+ </tr>
139
+ <tr>
140
+ <th>65B</th><th>8192</th><th>64</th><th>80</th><th>1.5.E-04</th><th>4M</th><th>1.4T
141
+ </tr>
142
+ </tbody>
143
+ </table>
144
+ *Table 1 - Summary of LLama Model Hyperparameters*
145
+
146
+ We present our results on eight standard common sense reasoning benchmarks in the table below.
147
+ <table>
148
+ <thead>
149
+ <tr>
150
+ <th>LLaMA</th> <th colspan=9>Reasoning tasks </th>
151
+ </tr>
152
+ <tr>
153
+ <th>Number of parameters</th> <th>BoolQ</th><th>PIQA</th><th>SIQA</th><th>HellaSwag</th><th>WinoGrande</th><th>ARC-e</th><th>ARC-c</th><th>OBQA</th><th>COPA</th>
154
+ </tr>
155
+ </thead>
156
+ <tbody>
157
+ <tr>
158
+ <th>7B</th><th>76.5</th><th>79.8</th><th>48.9</th><th>76.1</th><th>70.1</th><th>76.7</th><th>47.6</th><th>57.2</th><th>93
159
+ </th>
160
+ <tr><th>13B</th><th>78.1</th><th>80.1</th><th>50.4</th><th>79.2</th><th>73</th><th>78.1</th><th>52.7</th><th>56.4</th><th>94
161
+ </th>
162
+ <tr><th>33B</th><th>83.1</th><th>82.3</th><th>50.4</th><th>82.8</th><th>76</th><th>81.4</th><th>57.8</th><th>58.6</th><th>92
163
+ </th>
164
+ <tr><th>65B</th><th>85.3</th><th>82.8</th><th>52.3</th><th>84.2</th><th>77</th><th>81.5</th><th>56</th><th>60.2</th><th>94</th></tr>
165
+ </tbody>
166
+ </table>
167
+ *Table 2 - Summary of LLama Model Performance on Reasoning tasks*
168
+
169
+ We present our results on bias in the table below. Note that lower value is better indicating lower bias.
170
+
171
+
172
+ | No | Category | FAIR LLM |
173
+ | --- | -------------------- | -------- |
174
+ | 1 | Gender | 70.6 |
175
+ | 2 | Religion | 79 |
176
+ | 3 | Race/Color | 57 |
177
+ | 4 | Sexual orientation | 81 |
178
+ | 5 | Age | 70.1 |
179
+ | 6 | Nationality | 64.2 |
180
+ | 7 | Disability | 66.7 |
181
+ | 8 | Physical appearance | 77.8 |
182
+ | 9 | Socioeconomic status | 71.5 |
183
+ | | LLaMA Average | 66.6 |
184
+
185
+ *Table 3 - Summary bias of our model output*
186
+
187
+
188
+
189
+ ## Ethical considerations
190
+ **Data**
191
+ The data used to train the model is collected from various sources, mostly from the Web. As such, it contains offensive, harmful and biased content. We thus expect the model to exhibit such biases from the training data.
192
+
193
+ **Human life**
194
+ The model is not intended to inform decisions about matters central to human life, and should not be used in such a way.
195
+
196
+ **Mitigations**
197
+ We filtered the data from the Web based on its proximity to Wikipedia text and references. For this, we used a Kneser-Ney language model and a fastText linear classifier.
198
+
199
+ **Risks and harms**
200
+ Risks and harms of large language models include the generation of harmful, offensive or biased content. These models are often prone to generating incorrect information, sometimes referred to as hallucinations. We do not expect our model to be an exception in this regard.
201
+
202
+ **Use cases**
203
+ LLaMA is a foundational model, and as such, it should not be used for downstream applications without further investigation and mitigations of risks. These risks and potential fraught use cases include, but are not limited to: generation of misinformation and generation of harmful, biased or offensive content.