Llama 3.1 Swallow is a series of large language models (8B, 70B) that were built by continual pre-training on the Meta Llama 3.1 models.
Llama 3.1 Swallow enhanced the Japanese language capabilities of the original Llama 3.1 while retaining the English language capabilities.
We use approximately 200 billion tokens that were sampled from a large Japanese web corpus (Swallow Corpus Version 2), Japanese and English Wikipedia articles, and mathematical and
coding contents, etc (see the Training Datasets section of the base model) for continual pre-training.
The instruction-tuned models (Instruct) were built by supervised fine-tuning (SFT) on the synthetic data specially built for Japanese.
See the Swallow Model Index section to find other model variants.
This release enhances the conversation capability of Llama 3.1 Swallow.
The updated model, Llama-3.1-Swallow-70B-Instruct-v0.3 generates helpful and detailed responses based on user instructions and conversation history.
Llama-3.1-Swallow-70B-Instruct-v0.3 outperforms its predecessor, Llama-3.1-Swallow-70B-Instruct-v0.1, by 5.68 points on Japanese MT-Bench.
Scoring: Absolute scale normalized to a 0-1 range, averaged over five runs.
Japanese evaluation benchmarks
We used llm-jp-eval(v1.3.0), JP Language Model Evaluation Harness(commit #9b42d41) and Code Generation LM Evaluation Harness(commit #0261c52). The details are as follows:
Multiple-choice question answering (JCommonsenseQA [Kurihara et al., 2022])
Open-ended question answering (JEMHopQA [Ishii et al., 2024])
Open-ended question answering (NIILC [関根, 2003])
Machine reading comprehension (JSQuAD [Kurihara et al., 2022])
Automatic summarization (XL-Sum [Hasan et al., 2021])
Machine translation (WMT2020 ja-en [Barrault et al., 2020])
Machine translation (WMT2020 en-ja [Barrault et al., 2020])
Mathematical reasoning (MGSM [Shi et al., 2023])
Academic exams (JMMLU [尹ら, 2024])
Code generation (JHumanEval [佐藤ら, 2024])
English evaluation benchmarks
We used the Language Model Evaluation Harness(v.0.4.2) and Code Generation LM Evaluation Harness(commit #0261c52). The details are as follows:
Multiple-choice question answering (OpenBookQA [Mihaylov et al., 2018])
Open-ended question answering (TriviaQA [Joshi et al., 2017])
Machine reading comprehension (SQuAD2 [Rajpurkar et al., 2018])
Commonsense reasoning (XWINO [Tikhonov and Ryabinin, 2021])
Natural language inference (HellaSwag [Zellers et al., 2019])
Mathematical reasoning (GSM8K [Cobbe et al., 2021])
Reasoning (BBH (BIG-Bench-Hard) [Suzgun et al., 2023])
First-turn user instructions were translated into Japanese via DeepL (machine translation), and assistant responses were generated using gemma-2-27b-it. The same model, i.e., gemma-2-27b-it served as a judge for rejection sampling (n=6).
Second-turn user instructions and responses were synthesized using gemma-2-27b-it. The same model scores the quality of the second-turn response with a range of 1-10. Second-turn responses with scores lower than 9 were rejected, along with their corresponding instructions.
Conversations containing personally identifiable information (PII) and template-based user instructions were removed. Duplicate instructions were removed.
A Japanese synthetic instruction tuning dataset from scratch, generated by gemma-2-27b-it. User instructions were created with prompts specific to each topic, and assistant responses were generated for these instructions.
The conversations were heuristically filtered for quality and length. Then, gemma-2-27b-it was applied to score the quality of each of the conversation with a range of 1-10. Conversations with scores <= 7 were rejected.
Risks and Limitations
The models released here are still in the early stages of our research and development and have not been tuned to ensure outputs align with human intent and safety considerations.
Acknowledgements
We thank Meta Research for releasing Llama 3.1 under a generous open license.
We received various supports, including:
AIST project: "Research and Development of Foundation Models for Generative AI in the Physical Domain"
NEDO project: "Development of Artificial Intelligence Application Technology to Support Judgment in Design Risk Assessment Work Based on the Perspective of Skilled Persons" (JPNP18002) of "Development of Integration Technology as the Core of Next Generation Artificial Intelligence and Robotics"
MEXT project: "Formation of R&D center to ensure transparency and reliability of generative AI models"
If you find our work helpful, please feel free to cite these papers.
@inproceedings{Fujii:COLM2024,
title={Continual Pre-Training for Cross-Lingual LLM Adaptation:
Enhancing Japanese Language Capabilities},
author={Kazuki Fujii and Taishi Nakamura and Mengsay Loem and Hiroki
Iida and Masanari Ohi and Kakeru Hattori and Hirai Shota and Sakae
Mizuki and Rio Yokota and Naoaki Okazaki},
booktitle="Proceedings of the First Conference on Language Modeling",
series={COLM},
pages="(to appear)",
year="2024",
month=oct,
address={University of Pennsylvania, USA},
}
@inproceedings{Okazaki:COLM2024,
title={Building a Large Japanese Web Corpus for Large Language Models},
author={Naoaki Okazaki and Kakeru Hattori and Hirai Shota and Hiroki
Iida and Masanari Ohi and Kazuki Fujii and Taishi Nakamura and Mengsay
Loem and Rio Yokota and Sakae Mizuki},
booktitle="Proceedings of the First Conference on Language Modeling",
series={COLM},
pages="(to appear)",
year="2024",
month=oct,
address={University of Pennsylvania, USA},
}
@misc{ma:arxiv2025,
title={Building Instruction-Tuning Datasets from Human-Written Instructions with Open-Weight Large Language Models},
author={Youmi Ma and Sakae Mizuki and Kazuki Fujii and Taishi Nakamura and Masanari Ohi and Hinari Shimada and Taihei Shiotani and Koshiro Saito and Koki Maeda and Kakeru Hattori and Takumi Okamoto and Shigeki Ishida and Rio Yokota and Hiroya Takamura and Naoaki Okazaki},
year={2025},
eprint={2503.23714},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2503.23714},
}
References
tex
1@misc{dubey2024llama3herdmodels,
2 title={The Llama 3 Herd of Models},
3 author={Abhimanyu Dubey and Abhinav Jauhri and Abhinav Pandey and Abhishek Kadian and Ahmad Al-Dahle and Aiesha Letman and Akhil Mathur and Alan Schelten and Amy Yang and Angela Fan et al.},
4 year={2024},
5 eprint={2407.21783},
6 archivePrefix={arXiv},
7 primaryClass={cs.AI},
8 url={https://arxiv.org/abs/2407.21783},
9}