🚀 Llama 3 Youko 8B (rinna/llama-3-youko-8b)

このモデルは、日本語と英語のデータセットの混合から得られた約220億トークンでmeta-llama/Meta-Llama-3-8Bを継続事前学習したものです。継続事前学習により、日本語タスクでのモデル性能が大幅に向上しています。
youko
という名前は、日本の妖怪の一種である妖狐/ようこ/Youko
に由来しています。
✨ 主な機能
ライブラリ
このモデルは、EleutherAI/gpt-neoxに基づくコードを使用して学習されました。
モデルアーキテクチャ
32層、隠れ層サイズ4096のTransformerベースの言語モデルです。アーキテクチャの詳細については、Llama 3 Model Cardを参照してください。
学習: Meta Llama 3をベースに構築
このモデルは、meta-llama/Meta-Llama-3-8Bモデルで初期化され、以下のコーパスの混合から得られた約220億トークンで継続学習されました。
貢献者
リリース日
2024年5月1日
📚 ドキュメント
ベンチマーク
rinnaのLMベンチマークページ (Sheet 20240507)を参照してください。
トークン化
このモデルは、元のmeta-llama/Meta-Llama-3-8Bのトークナイザーを使用しています。
引用方法
@misc{rinna-llama-3-youko-8b,
title = {rinna/llama-3-youko-8b},
author = {Mitsuda, Koh and Chen, Xinqi and Wakatsuki, Toshiaki and Sawada, Kei},
url = {https://huggingface.co/rinna/llama-3-youko-8b}
}
@inproceedings{sawada2024release,
title = {Release of Pre-Trained Models for the {J}apanese Language},
author = {Sawada, Kei and Zhao, Tianyu and Shing, Makoto and Mitsui, Kentaro and Kaga, Akio and Hono, Yukiya and Wakatsuki, Toshiaki and Mitsuda, Koh},
booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
month = {5},
year = {2024},
pages = {13898--13905},
url = {https://aclanthology.org/2024.lrec-main.1213},
note = {\url{https://arxiv.org/abs/2404.01657}}
}
参考文献
@article{llama3modelcard,
title = {Llama 3 Model Card},
author = {AI@Meta},
year = {2024},
url = {https://github.com/meta-llama/llama3/blob/main/MODEL_CARD.md}
}
@software{gpt-neox-library,
title = {{GPT}-{N}eo{X}: Large Scale Autoregressive Language Modeling in {P}y{T}orch},
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},
doi = {10.5281/zenodo.5879544},
month = {8},
year = {2021},
version = {0.0.1},
url = {https://www.github.com/eleutherai/gpt-neox}
}
ライセンス
Meta Llama 3 Community License
💻 使用例
基本的な使用法
import transformers
import torch
model_id = "rinna/llama-3-youko-8b"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto"
)
output = pipeline(
"西田幾多郎は、",
max_new_tokens=256,
do_sample=True
)
print(output[0]["generated_text"])