Update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,169 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
license: other
|
3 |
license_name: llama3
|
4 |
license_link: LICENSE
|
5 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
- ko
|
5 |
+
pipeline_tag: text-generation
|
6 |
+
tags:
|
7 |
+
- facebook
|
8 |
+
- meta
|
9 |
+
- pytorch
|
10 |
+
- llama
|
11 |
+
- llama-3
|
12 |
+
- llama-3-ko
|
13 |
license: other
|
14 |
license_name: llama3
|
15 |
license_link: LICENSE
|
16 |
---
|
17 |
+
|
18 |
+
# Llama-3-Ko-Instruct
|
19 |
+
|
20 |
+
## Methodology
|
21 |
+
|
22 |
+
## Benchmark
|
23 |
+
|
24 |
+
|
25 |
+
# Original Model Card by Beomi
|
26 |
+
|
27 |
+
> Update @ 2024.04.24: Release Llama-3-Open-Ko-8B model & [Llama-3-Open-Ko-8B-Instruct-preview](https://huggingface.co/beomi/Llama-3-Open-Ko-8B-Instruct-preview)
|
28 |
+
|
29 |
+
## Model Details
|
30 |
+
|
31 |
+
**Llama-3-Open-Ko-8B**
|
32 |
+
|
33 |
+
Llama-3-Open-Ko-8B model is continued pretrained language model based on Llama-3-8B.
|
34 |
+
|
35 |
+
This model is trained fully with publicily available resource, with 60GB+ of deduplicated texts.
|
36 |
+
|
37 |
+
With the new Llama-3 tokenizer, the pretraining conducted with 17.7B+ tokens, which slightly more than Korean tokenizer(Llama-2-Ko tokenizer).
|
38 |
+
|
39 |
+
The train was done on TPUv5e-256, with the warm support from TRC program by Google.
|
40 |
+
|
41 |
+
**Note for [Llama-3-Open-Ko-8B-Instruct-preview](https://huggingface.co/beomi/Llama-3-Open-Ko-8B-Instruct-preview)**
|
42 |
+
|
43 |
+
With applying the idea from [Chat Vector paper](https://arxiv.org/abs/2310.04799), I released Instruction model named [Llama-3-Open-Ko-8B-Instruct-preview](https://huggingface.co/beomi/Llama-3-Open-Ko-8B-Instruct-preview).
|
44 |
+
|
45 |
+
Since it is NOT finetuned with any Korean instruction set(indeed `preview`), but it would be great starting point for creating new Chat/Instruct models.
|
46 |
+
|
47 |
+
**Meta Llama-3**
|
48 |
+
|
49 |
+
Meta developed and released the Meta Llama 3 family of large language models (LLMs), a collection of pretrained and instruction tuned generative text models in 8 and 70B sizes. The Llama 3 instruction tuned models are optimized for dialogue use cases and outperform many of the available open source chat models on common industry benchmarks. Further, in developing these models, we took great care to optimize helpfulness and safety.
|
50 |
+
|
51 |
+
**Model developers** Junbum Lee (Beomi)
|
52 |
+
|
53 |
+
**Variations** Llama-3-Open-Ko comes in one size — 8B.
|
54 |
+
|
55 |
+
**Input** Models input text only.
|
56 |
+
|
57 |
+
**Output** Models generate text and code only.
|
58 |
+
|
59 |
+
**Model Architecture** Llama 3 is an auto-regressive language model that uses an optimized transformer architecture.
|
60 |
+
|
61 |
+
<table>
|
62 |
+
<tr>
|
63 |
+
<td>
|
64 |
+
</td>
|
65 |
+
<td><strong>Training Data</strong>
|
66 |
+
</td>
|
67 |
+
<td><strong>Params</strong>
|
68 |
+
</td>
|
69 |
+
<td><strong>Context length</strong>
|
70 |
+
</td>
|
71 |
+
<td><strong>GQA</strong>
|
72 |
+
</td>
|
73 |
+
<td><strong>Token count</strong>
|
74 |
+
</td>
|
75 |
+
<td><strong>Knowledge cutoff</strong>
|
76 |
+
</td>
|
77 |
+
</tr>
|
78 |
+
<tr>
|
79 |
+
<td rowspan="2" >Llama-3-Open-Ko
|
80 |
+
</td>
|
81 |
+
<td rowspan="2" >Same as *Open-Solar-Ko Dataset
|
82 |
+
</td>
|
83 |
+
<td>8B
|
84 |
+
</td>
|
85 |
+
<td>8k
|
86 |
+
</td>
|
87 |
+
<td>Yes
|
88 |
+
</td>
|
89 |
+
<td rowspan="2" >17.7B+
|
90 |
+
</td>
|
91 |
+
<td>Jun, 2023
|
92 |
+
</td>
|
93 |
+
</tr>
|
94 |
+
</table>
|
95 |
+
|
96 |
+
*You can find dataset list here: https://huggingface.co/beomi/OPEN-SOLAR-KO-10.7B/tree/main/corpus
|
97 |
+
|
98 |
+
|
99 |
+
**Model Release Date** 2024.04.24.
|
100 |
+
|
101 |
+
**Status** This is a static model trained on an offline dataset.
|
102 |
+
|
103 |
+
**License** Llama3 License: [https://llama.meta.com/llama3/license](https://llama.meta.com/llama3/license)
|
104 |
+
|
105 |
+
## Intended Use
|
106 |
+
|
107 |
+
**Intended Use Cases** Llama 3 is intended for commercial and research use in English. Instruction tuned models are intended for assistant-like chat, whereas pretrained models can be adapted for a variety of natural language generation tasks.
|
108 |
+
|
109 |
+
**Out-of-scope** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in any other way that is prohibited by the Acceptable Use Policy and Llama 3 Community License. Use in languages other than English**.
|
110 |
+
|
111 |
+
**Note: Developers may fine-tune Llama 3 models for languages beyond English provided they comply with the Llama 3 Community License and the Acceptable Use Policy.
|
112 |
+
|
113 |
+
## How to use
|
114 |
+
|
115 |
+
TBD
|
116 |
+
|
117 |
+
### Responsibility & Safety
|
118 |
+
|
119 |
+
We believe that an open approach to AI leads to better, safer products, faster innovation, and a bigger overall market. We are committed to Responsible AI development and took a series of steps to limit misuse and harm and support the open source community.
|
120 |
+
|
121 |
+
Foundation models are widely capable technologies that are built to be used for a diverse range of applications. They are not designed to meet every developer preference on safety levels for all use cases, out-of-the-box, as those by their nature will differ across different applications.
|
122 |
+
|
123 |
+
Rather, responsible LLM-application deployment is achieved by implementing a series of safety best practices throughout the development of such applications, from the model pre-training, fine-tuning and the deployment of systems composed of safeguards to tailor the safety needs specifically to the use case and audience.
|
124 |
+
|
125 |
+
|
126 |
+
As part of the Llama 3 release, we updated our [Responsible Use Guide](https://llama.meta.com/responsible-use-guide/) to outline the steps and best practices for developers to implement model and system level safety for their application. We also provide a set of resources including [Meta Llama Guard 2](https://llama.meta.com/purple-llama/) and [Code Shield](https://llama.meta.com/purple-llama/) safeguards. These tools have proven to drastically reduce residual risks of LLM Systems, while maintaining a high level of helpfulness. We encourage developers to tune and deploy these safeguards according to their needs and we provide a [reference implementation](https://github.com/meta-llama/llama-recipes/tree/main/recipes/responsible_ai) to get you started.
|
127 |
+
|
128 |
+
|
129 |
+
#### Responsible release
|
130 |
+
|
131 |
+
In addition to responsible use considerations outlined above, we followed a rigorous process that requires us to take extra measures against misuse and critical risks before we make our release decision.
|
132 |
+
|
133 |
+
Misuse
|
134 |
+
|
135 |
+
If you access or use Llama 3, you agree to the Acceptable Use Policy. The most recent copy of this policy can be found at [https://llama.meta.com/llama3/use-policy/](https://llama.meta.com/llama3/use-policy/).
|
136 |
+
|
137 |
+
|
138 |
+
## Ethical Considerations and Limitations
|
139 |
+
|
140 |
+
The core values of Llama 3 are openness, inclusivity and helpfulness. It is meant to serve everyone, and to work for a wide range of use cases. It is thus designed to be accessible to people across many different backgrounds, experiences and perspectives. Llama 3 addresses users and their needs as they are, without insertion unnecessary judgment or normativity, while reflecting the understanding that even content that may appear problematic in some cases can serve valuable purposes in others. It respects the dignity and autonomy of all users, especially in terms of the values of free thought and expression that power innovation and progress.
|
141 |
+
|
142 |
+
But Llama 3 is a new technology, and like any new technology, there are risks associated with its use. Testing conducted to date has been in English, and has not covered, nor could it cover, all scenarios. For these reasons, as with all LLMs, Llama 3’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 3 models, developers should perform safety testing and tuning tailored to their specific applications of the model. As outlined in the Responsible Use Guide, we recommend incorporating [Purple Llama](https://github.com/facebookresearch/PurpleLlama) solutions into your workflows and specifically [Llama Guard](https://ai.meta.com/research/publications/llama-guard-llm-based-input-output-safeguard-for-human-ai-conversations/) which provides a base model to filter input and output prompts to layer system-level safety on top of model-level safety.
|
143 |
+
|
144 |
+
Please see the Responsible Use Guide available at [http://llama.meta.com/responsible-use-guide](http://llama.meta.com/responsible-use-guide)
|
145 |
+
|
146 |
+
|
147 |
+
## Citation instructions
|
148 |
+
|
149 |
+
**Llama-3-Open-Ko**
|
150 |
+
|
151 |
+
```
|
152 |
+
@article{llama3openko,
|
153 |
+
title={Llama-3-Open-Ko},
|
154 |
+
author={L, Junbum},
|
155 |
+
year={2024},
|
156 |
+
url={https://huggingface.co/beomi/Llama-3-Open-Ko-8B}
|
157 |
+
}
|
158 |
+
```
|
159 |
+
|
160 |
+
**Original Llama-3**
|
161 |
+
|
162 |
+
```
|
163 |
+
@article{llama3modelcard,
|
164 |
+
title={Llama 3 Model Card},
|
165 |
+
author={AI@Meta},
|
166 |
+
year={2024},
|
167 |
+
url = {https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md}
|
168 |
+
}
|
169 |
+
```
|