dfurman commited on
Commit
eece6e0
1 Parent(s): cca42e1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -10
README.md CHANGED
@@ -5,16 +5,16 @@ license: other
5
 
6
  # 🦙 LLaMA-7B
7
 
8
- LLaMA-7B is a base model for text generation. It was built and released by Meta AI alongside "[LLaMA: Open and Efficient Foundation Language Models](https://arxiv.org/abs/2302.13971)".
9
 
10
- This model repo was converted to work with the transformers package. It is under a bespoke **non-commercial** license, please see the LICENSE file for more details.
11
 
12
  ## Model Summary
13
 
14
  - **Model Type:** Causal decoder-only.
15
  - **Dataset:** The model was trained on 1T tokens using the following data sources: CCNet [67%], C4 [15%], GitHub [4.5%], Wikipedia [4.5%], Books [4.5%], ArXiv [2.5%], Stack Exchange[2%].
16
  - **Language(s):** 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.
17
- - **License:** Bespoke non-commercial license, see LICENSE file.
18
  - **Model date:** LLaMA was trained between Dec 2022 and Feb 2023.
19
 
20
  **Where to send inquiries about the model:**
@@ -28,27 +28,27 @@ The primary use of LLaMA is research on large language models, including: explor
28
  The primary intended users of the model are researchers in natural language processing, machine learning and artificial intelligence.
29
 
30
  **Out-of-scope use cases:**
31
- LLaMA is a base model, also known as a foundation model. As such, it should not be used on downstream applications without further risk evaluation, mitigation, and potential further fine-tuning. In particular, the model has not been trained with human feedback, and can thus generate toxic or offensive content, incorrect information or generally unhelpful answers.
32
 
33
  ## Factors
34
  **Relevant factors:**
35
- 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 the LLaMA 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 LLaMA.
36
 
37
  **Evaluation factors:**
38
- As LLaMA 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.
39
 
40
  ## Ethical considerations
41
  **Data:**
42
- 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.
43
 
44
  **Human life:**
45
  The model is not intended to inform decisions about matters central to human life, and should not be used in such a way.
46
 
47
  **Mitigations:**
48
- 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.
49
 
50
  **Risks and harms:**
51
- 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 LLaMA to be an exception in this regard.
52
 
53
  **Use cases:**
54
  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.
@@ -61,7 +61,7 @@ LLaMA is a foundational model, and as such, it should not be used for downstream
61
  ```
62
  ### GPU Inference in fp16
63
 
64
- This requires a GPU with at least 15GB of VRAM.
65
 
66
  ### First, Load the Model
67
 
 
5
 
6
  # 🦙 LLaMA-7B
7
 
8
+ LLaMA-7B is a base model for text generation with 6.7B parameters and a 1T token training corpus. It was built and released by the FAIR team at Meta AI alongside the paper "[LLaMA: Open and Efficient Foundation Language Models](https://arxiv.org/abs/2302.13971)".
9
 
10
+ This model repo was converted to work with the transformers package. It is under a bespoke **non-commercial** license, please see the [LICENSE](https://huggingface.co/dfurman/llama-7b/blob/main/LICENSE) file for more details.
11
 
12
  ## Model Summary
13
 
14
  - **Model Type:** Causal decoder-only.
15
  - **Dataset:** The model was trained on 1T tokens using the following data sources: CCNet [67%], C4 [15%], GitHub [4.5%], Wikipedia [4.5%], Books [4.5%], ArXiv [2.5%], Stack Exchange[2%].
16
  - **Language(s):** 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.
17
+ - **License:** Bespoke non-commercial license, see [LICENSE](https://huggingface.co/dfurman/llama-7b/blob/main/LICENSE) file.
18
  - **Model date:** LLaMA was trained between Dec 2022 and Feb 2023.
19
 
20
  **Where to send inquiries about the model:**
 
28
  The primary intended users of the model are researchers in natural language processing, machine learning and artificial intelligence.
29
 
30
  **Out-of-scope use cases:**
31
+ LLaMA is a base model, also known as a foundation model. As such, it should not be used on downstream applications without further risk evaluation, mitigation, and additional fine-tuning. In particular, the model has not been trained with human feedback, and can thus generate toxic or offensive content, incorrect information or generally unhelpful answers.
32
 
33
  ## Factors
34
  **Relevant factors:**
35
+ One of the most relevant factors for which model performance may vary is which language is used. Although 20 languages were included in the training data, most of the LLaMA dataset is made of English text, and the model is thus expected to perform better for English than other languages. Relatedly, it has been shown in previous studies that performance might vary for different dialects, which is likely also the case for LLaMA.
36
 
37
  **Evaluation factors:**
38
+ As LLaMA is trained on data from the Web, it is expected that the model reflects biases from this source. The RAI datasets are thus used to measure biases exhibited by the model for gender, religion, race, sexual orientation, age, nationality, disability, physical appearance and socio-economic status. The toxicity of model generations is also measured, depending on the toxicity of the context used to prompt the model.
39
 
40
  ## Ethical considerations
41
  **Data:**
42
+ 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. LLaMA is thus expected to exhibit such biases from the training data.
43
 
44
  **Human life:**
45
  The model is not intended to inform decisions about matters central to human life, and should not be used in such a way.
46
 
47
  **Mitigations:**
48
+ The data was filtered from the Web based on its proximity to Wikipedia text and references. For this, the Kneser-Ney language model is used with a fastText linear classifier.
49
 
50
  **Risks and harms:**
51
+ 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. LLaMA is not expected to be an exception in this regard.
52
 
53
  **Use cases:**
54
  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.
 
61
  ```
62
  ### GPU Inference in fp16
63
 
64
+ This requires a GPU with at least xxGB of VRAM.
65
 
66
  ### First, Load the Model
67