We conduct continual pre-training of
meta-llama/Meta-Llama-3-70B on
5B tokens from a mixture of Japanese and English datasets. The continual pre-training significantly improves the model's performance on Japanese tasks.
The name
youko comes from the Japanese word
妖狐/ようこ/Youko, which is a kind of Japanese mythical creature (
妖怪/ようかい/Youkai).
-
Library
The model was trained using code based on
EleutherAI/gpt-neox.
-
Model architecture
A 80-layer, 8192-hidden-size transformer-based language model. Refer to the
Llama 3 Model Card for architecture details.
-
Training: Built with Meta Llama 3
The model was initialized with the
meta-llama/Meta-Llama-3-70B model and continually trained on around
5B tokens from a mixture of the following corpora
-
Contributors
-
Release date
July 25, 2024
1import transformers
2import torch
3
4model_id = "rinna/llama-3-youko-70b"
5pipeline = transformers.pipeline(
6 "text-generation",
7 model=model_id,
8 model_kwargs={"torch_dtype": torch.bfloat16},
9 device_map="auto"
10)
11output = pipeline(
12 "西田幾多郎は、",
13 max_new_tokens=256,
14 do_sample=True
15)
16print(output[0]["generated_text"])
The model uses the original
meta-llama/Meta-Llama-3-70B tokenizer.
1@misc{rinna-llama-3-youko-70b,
2 title = {rinna/llama-3-youko-70b},
3 author = {Mitsuda, Koh and Chen, Xinqi and Wakatsuki, Toshiaki and Sawada, Kei},
4 url = {https://huggingface.co/rinna/llama-3-youko-70b}
5}
6
7@inproceedings{sawada2024release,
8 title = {Release of Pre-Trained Models for the {J}apanese Language},
9 author = {Sawada, Kei and Zhao, Tianyu and Shing, Makoto and Mitsui, Kentaro and Kaga, Akio and Hono, Yukiya and Wakatsuki, Toshiaki and Mitsuda, Koh},
10 booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
11 month = {5},
12 year = {2024},
13 pages = {13898--13905},
14 url = {https://aclanthology.org/2024.lrec-main.1213},
15 note = {\url{https://arxiv.org/abs/2404.01657}}
16}
1@article{llama3modelcard,
2 title = {Llama 3 Model Card},
3 author = {AI@Meta},
4 year = {2024},
5 url = {https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md}
6}
7
8@software{gpt-neox-library,
9 title = {{GPT}-{N}eo{X}: Large Scale Autoregressive Language Modeling in {P}y{T}orch},
10 author = {Andonian, Alex and Anthony, Quentin and Biderman, Stella and Black, Sid and Gali, Preetham and Gao, Leo and Hallahan, Eric and Levy-Kramer, Josh and Leahy, Connor and Nestler, Lucas and Parker, Kip and Pieler, Michael and Purohit, Shivanshu and Songz, Tri and Phil, Wang and Weinbach, Samuel},
11 doi = {10.5281/zenodo.5879544},
12 month = {8},
13 year = {2021},
14 version = {0.0.1},
15 url = {https://www.github.com/eleutherai/gpt-neox}
16}