CoolFace
Modelpublic

beomi/open-llama-2-ko-7b

sourceHugging Facemitupdated 3y agoView on Hugging Face
38likes87downloads
Model Card

Update Log

  • โ€”2023.12.14: Initial Release of Open-Llama-2-Ko

Open-Llama-2-Ko ๐Ÿฆ™๐Ÿ‡ฐ๐Ÿ‡ท

Open-Llama-2-Ko represents an advanced iteration of the Llama 2 model, featuring an expanded vocabulary and the inclusion of a Korean corpus for enhanced pretraining. Similar to its predecessor, Llama-2-Ko, this model operates within the range of generative text models, with parameter counts ranging from 7 billion to 70 billion. The focus of this repository is on the 7B pretrained version, designed to integrate seamlessly with the Hugging Face Transformers format.

The primary distinction between the Llama-2-Ko Series and Open-Llama-2-Ko lies in the dataset. Open-Llama-2-Ko exclusively utilizes publicly accessible Korean corpora, including sources such as AI Hub, Modu Corpus, ๋ชจ๋‘์˜ ๋ง๋ญ‰์น˜, and Korean Wikipedia.

As training was conducted solely with publicly available corpora, this model is open for unrestricted use by everyone, adhering to the MIT License*.

*MIT License under LLAMA 2 COMMUNITY LICENSE AGREEMENT

Model Details

Model Developers: Junbum Lee (Beomi)

Variations: Open-Llama-2-Ko will be available in different parameter sizes โ€” 7B and 13B โ€” along with various pretrained options.

Input: The model accepts only text input.

Output: The model produces text output exclusively.

Model Architecture:

Open-Llama-2-Ko is an auto-regressive language model that leverages an optimized transformer architecture derived from Llama-2.

Training DataParametersContent LengthGQATokensLearning Rate
Llama 2A curated mix of Publicly Accessible Korean Corpora7B2kโœ˜>15B*5e<sup>-5</sup>

Training Corpus

The model was trained using selected datasets from AIHub and Modu Corpus. Detailed information about the training datasets is available below:

  • โ€”AI Hub: corpus/AI_HUB
  • โ€”Only the Training segment of the data was used.
  • โ€”The Validation and Test segments were deliberately excluded.
  • โ€”Modu Corpus: corpus/MODU_CORPUS

The final JSONL dataset used to train this model is approximately 61GB in size.

Total token count: Approximately 15 billion tokens (*using the expanded tokenizer. With the original Llama tokenizer, >60 billion tokens.)

Vocab Expansion

Model NameVocabulary SizeDescription
Original Llama-232000Sentencepiece BPE
Expanded Llama-2-Ko46336Sentencepiece BPE. Added Korean vocab and merges

Tokenizing "์•ˆ๋…•ํ•˜์„ธ์š”, ์˜ค๋Š˜์€ ๋‚ ์”จ๊ฐ€ ์ข‹๋„ค์š”."

ModelTokens
Llama-2['โ–', '์•ˆ', '<0xEB>', '<0x85>', '<0x95>', 'ํ•˜', '์„ธ', '์š”', ',', 'โ–', '์˜ค', '<0xEB>', '<0x8A>', '<0x98>', '์€', 'โ–', '<0xEB>', '<0x82>', '<0xA0>', '์”จ', '๊ฐ€', 'โ–', '<0xEC>', '<0xA2>', '<0x8B>', '<0xEB>', '<0x84>', '<0xA4>', '์š”']
Llama-2-Ko['โ–์•ˆ๋…•', 'ํ•˜์„ธ์š”', ',', 'โ–์˜ค๋Š˜์€', 'โ–๋‚ ', '์”จ๊ฐ€', 'โ–์ข‹๋„ค์š”']

Tokenizing "Llama 2: Open Foundation and Fine-Tuned Chat Models"

ModelTokens
Llama-2['โ–L', 'l', 'ama', 'โ–', '2', ':', 'โ–Open', 'โ–Foundation', 'โ–and', 'โ–Fine', '-', 'T', 'un', 'ed', 'โ–Ch', 'at', 'โ–Mod', 'els']
Llama-2-Ko['โ–L', 'l', 'ama', 'โ–', '2', ':', 'โ–Open', 'โ–Foundation', 'โ–and', 'โ–Fine', '-', 'T', 'un', 'ed', 'โ–Ch', 'at', 'โ–Mod', 'els']

LICENSE

MIT License under LLAMA 2 COMMUNITY LICENSE AGREEMENT

Model Benchmark

LM Eval Harness - Korean (polyglot branch)

  • โ€”Used EleutherAI's lm-evaluation-harness https://github.com/EleutherAI/lm-evaluation-harness/tree/polyglot

TBD

Citation

TBD

Acknowledgements