beomi/OPEN-SOLAR-KO-10.7B

Model

66

stars

17

commits

6

repos using this model

3

linked in READMEs

Feb 20, 2024

updated

llama
mistral
pytorch
safetensors
solar
solar-ko
text-generation
text-generation-inference
transformers

README

Update Log

  • 2024.01.08: Initial Test version Release of Solar-Ko

Open-Solar-Ko โญ๐Ÿ‡ฐ๐Ÿ‡ท

Solar-Ko represents an advanced iteration of the upstage/SOLAR-10.7B-v1.0 model, featuring an expanded vocabulary and the inclusion of a Korean corpus for enhanced pretraining.

Open-Solar-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 Apache2.0 open source License.

Model Details

Model Developers: Junbum Lee (Beomi)

Variations: Solar-Ko is available with one parameter sizes โ€” 10B with Continual Pretrained version.

Input: The model accepts only text input.

Output: The model produces text output exclusively.

Model Architecture:

SOLAR-KO-10.7B is an auto-regressive language model that leverages an optimized transformer architecture derived from Llama-2.

Training DataParametersContent LengthGQATokensLearning Rate
SOLAR-KO-10.7BA curated mix of Publicly Accessible Korean Corpora10.7B4kO>15B*5e-5

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 SOLAR tokenizer, >60 billion tokens.)

Vocab Expansion

Model NameVocabulary SizeDescription
Original Solar32000Sentencepiece BPE
Expanded SOLAR-KO-10.7B46592Sentencepiece BPE. Added Korean vocab and merges

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

  • SOLAR-10.7B: 26 tokens
  • SOLAR-KO-10.7b: 8 tokens
ModelTokens
SOLAR-10.7B['โ–', '์•ˆ', '<0xEB>', '<0x85>', '<0x95>', 'ํ•˜', '์„ธ', '์š”', ',', 'โ–', '์˜ค', '<0xEB>', '<0x8A>', '<0x98>', '์€', 'โ–', '๋‚ ', '<0xEC>', '<0x94>', '<0xA8>', '๊ฐ€', 'โ–', '์ข‹', '๋„ค', '์š”', '.']
SOLAR-KO-10.7B['โ–์•ˆ๋…•', 'ํ•˜์„ธ์š”', ',', 'โ–์˜ค๋Š˜์€', 'โ–๋‚ ', '์”จ๊ฐ€', 'โ–์ข‹๋„ค์š”', '.']

Tokenizing "Meet 10.7B Solar: Elevating Performance with Upstage Depth UP Scaling!"

  • SOLAR-10.7B: 22 tokens
  • SOLAR-KO-10.7b: 22 tokens
ModelTokens
SOLAR-10.7B['โ–Meet', 'โ–', '1', '0', '.', '7', 'B', 'โ–Solar', ':', 'โ–E', 'lev', 'ating', 'โ–Performance', 'โ–with', 'โ–Up', 'stage', 'โ–Dep', 'th', 'โ–UP', 'โ–Scal', 'ing', '!']
SOLAR-KO-10.7B['โ–Meet', 'โ–', '1', '0', '.', '7', 'B', 'โ–Solar', ':', 'โ–E', 'lev', 'ating', 'โ–Performance', 'โ–with', 'โ–Up', 'stage', 'โ–Dep', 'th', 'โ–UP', 'โ–Scal', 'ing', '!']

LICENSE

Apache 2.0

Model Benchmark

LM Eval Harness - Korean (polyglot branch)

051050
kobest_boolq (macro_f1)0.8539490.880980.8981390.902354
kobest_copa (macro_f1)0.8045310.8267360.8376560.860899
kobest_hellaswag (macro_f1)0.5071740.5009830.4872870.512182
kobest_sentineg (macro_f1)0.35170.9722910.9773210.984884
kohatespeech (macro_f1)0.2581110.4039570.3868080.462393
kohatespeech_apeach (macro_f1)0.3376670.6516970.7053370.827757
kohatespeech_gen_bias (macro_f1)0.1245350.5034640.4985010.443218
korunsmile (f1)0.38140.3569390.3699890.296193
nsmc (acc)0.53560.871620.886540.89632
pawsx_ko (acc)0.54350.52450.53150.5385

Citation

@misc {solar_ko_junbum_2023,
    author       = { {L. Junbum} },
    title        = { Solar-Ko-10.7b },
    year         = 2024,
    url          = { https://huggingface.co/beomi/SOLAR-KO-10.7B },
    publisher    = { Hugging Face }
}

Acknowledgements

Contributors

beomi

17 commits

beomi/OPEN-SOLAR-KO-10.7B

Model

66

stars

17

commits

6

repos using this model

3

linked in READMEs

Feb 20, 2024

updated

llama
mistral
pytorch
safetensors
solar
solar-ko
text-generation
text-generation-inference
transformers

README

Update Log

  • 2024.01.08: Initial Test version Release of Solar-Ko

Open-Solar-Ko โญ๐Ÿ‡ฐ๐Ÿ‡ท

Solar-Ko represents an advanced iteration of the upstage/SOLAR-10.7B-v1.0 model, featuring an expanded vocabulary and the inclusion of a Korean corpus for enhanced pretraining.

Open-Solar-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 Apache2.0 open source License.

Model Details

Model Developers: Junbum Lee (Beomi)

Variations: Solar-Ko is available with one parameter sizes โ€” 10B with Continual Pretrained version.

Input: The model accepts only text input.

Output: The model produces text output exclusively.

Model Architecture:

SOLAR-KO-10.7B is an auto-regressive language model that leverages an optimized transformer architecture derived from Llama-2.

Training DataParametersContent LengthGQATokensLearning Rate
SOLAR-KO-10.7BA curated mix of Publicly Accessible Korean Corpora10.7B4kO>15B*5e-5

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 SOLAR tokenizer, >60 billion tokens.)

Vocab Expansion

Model NameVocabulary SizeDescription
Original Solar32000Sentencepiece BPE
Expanded SOLAR-KO-10.7B46592Sentencepiece BPE. Added Korean vocab and merges

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

  • SOLAR-10.7B: 26 tokens
  • SOLAR-KO-10.7b: 8 tokens
ModelTokens
SOLAR-10.7B['โ–', '์•ˆ', '<0xEB>', '<0x85>', '<0x95>', 'ํ•˜', '์„ธ', '์š”', ',', 'โ–', '์˜ค', '<0xEB>', '<0x8A>', '<0x98>', '์€', 'โ–', '๋‚ ', '<0xEC>', '<0x94>', '<0xA8>', '๊ฐ€', 'โ–', '์ข‹', '๋„ค', '์š”', '.']
SOLAR-KO-10.7B['โ–์•ˆ๋…•', 'ํ•˜์„ธ์š”', ',', 'โ–์˜ค๋Š˜์€', 'โ–๋‚ ', '์”จ๊ฐ€', 'โ–์ข‹๋„ค์š”', '.']

Tokenizing "Meet 10.7B Solar: Elevating Performance with Upstage Depth UP Scaling!"

  • SOLAR-10.7B: 22 tokens
  • SOLAR-KO-10.7b: 22 tokens
ModelTokens
SOLAR-10.7B['โ–Meet', 'โ–', '1', '0', '.', '7', 'B', 'โ–Solar', ':', 'โ–E', 'lev', 'ating', 'โ–Performance', 'โ–with', 'โ–Up', 'stage', 'โ–Dep', 'th', 'โ–UP', 'โ–Scal', 'ing', '!']
SOLAR-KO-10.7B['โ–Meet', 'โ–', '1', '0', '.', '7', 'B', 'โ–Solar', ':', 'โ–E', 'lev', 'ating', 'โ–Performance', 'โ–with', 'โ–Up', 'stage', 'โ–Dep', 'th', 'โ–UP', 'โ–Scal', 'ing', '!']

LICENSE

Apache 2.0

Model Benchmark

LM Eval Harness - Korean (polyglot branch)

051050
kobest_boolq (macro_f1)0.8539490.880980.8981390.902354
kobest_copa (macro_f1)0.8045310.8267360.8376560.860899
kobest_hellaswag (macro_f1)0.5071740.5009830.4872870.512182
kobest_sentineg (macro_f1)0.35170.9722910.9773210.984884
kohatespeech (macro_f1)0.2581110.4039570.3868080.462393
kohatespeech_apeach (macro_f1)0.3376670.6516970.7053370.827757
kohatespeech_gen_bias (macro_f1)0.1245350.5034640.4985010.443218
korunsmile (f1)0.38140.3569390.3699890.296193
nsmc (acc)0.53560.871620.886540.89632
pawsx_ko (acc)0.54350.52450.53150.5385

Citation

@misc {solar_ko_junbum_2023,
    author       = { {L. Junbum} },
    title        = { Solar-Ko-10.7b },
    year         = 2024,
    url          = { https://huggingface.co/beomi/SOLAR-KO-10.7B },
    publisher    = { Hugging Face }
}

Acknowledgements

Contributors

beomi

17 commits