tokyotech-llm/Llama-3.1-Swallow-70B-v0.1

Model

5

stars

53

commits

3

linked in READMEs

Jan 31, 2025

updated

endpoints_compatible
llama
safetensors
text-generation
text-generation-inference
transformers

README

Llama 3.1 Swallow - Built with Llama

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) 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.

Release History

Swallow Model Index

ModelLlama-3.1-Swallow v0.1Llama-3.1-Swallow-Instruct v0.1Llama-3.1-Swallow v0.2Llama-3.1-Swallow-Instruct v0.2Llama-3.1-Swallow-Instruct v0.3
8BLinkLinkLinkLinkLink
70BLinkLink

logo

The website https://swallow-llm.github.io/ provides large language models developed by the Swallow team.

Model Details

  • Model type: Please refer to Llama 3.1 MODEL_CARD for details on the model architecture.
  • Language(s): Japanese English
  • Library: Megatron-LM
  • Tokenizer: Please refer to Llama 3.1 blog for details on the tokenizer.
  • Contact: swallow[at]nlp.c.titech.ac.jp

Model Performance

Japanese tasks

ModelJCom.JEMHopQANIILCJSQuADXL-SumMGSMWMT20-en-jaWMT20-ja-enJMMLUJHumanEvalJa Avg
4-shot4-shot4-shot4-shot1-shot4-shot4-shot4-shot5-shot0-shot
EM accChar-F1Char-F1Char-F1ROUGE-2EM accBLEUBLEUEM accpass@1
Qwen2-72B0.96070.63990.56170.92610.23620.75600.27470.24190.78310.55670.5937
Qwen2.5-72B0.97230.61110.61940.93010.27920.82800.28690.25210.80460.64820.6232
Sarashina2-70B0.92850.71730.66810.92940.18990.48800.31290.24290.59160.23840.5307
Llama 3 70B0.94730.60420.59650.92070.22540.67200.28550.25260.69750.47990.5682
Llama 3.1 70B0.94820.61120.59680.92510.22840.68400.28700.25530.66900.45730.5662
Llama 3 Youko 70B0.94550.60880.60680.92260.24280.66800.29090.24950.70380.45300.5692
Llama 3 Swallow 70B0.97140.66950.68810.92180.24040.70800.30720.25480.70490.46830.5934
Llama 3.1 Swallow 70B0.95530.64500.67760.92310.27220.68400.31990.25910.70880.48720.5932

English tasks

ModelOpenBookQATriviaQAHellaSWAGSQuAD2.0XWINOMMLUGSM8KBBHHumanEvalEn Avg
4-shot4-shot4-shot4-shot4-shot5-shot4-shot3-shot0-shot
AccEM accAccEM accAccAccEM accCoT EM Accpass@1
Qwen2-72B0.41600.78900.67660.40520.91610.84280.89080.63880.60490.6867
Qwen2.5-72B0.41600.76040.68490.39970.90150.86080.87260.72680.55430.6863
Sarashina2-70B0.39200.53730.62700.41740.91780.63030.01060.63860.27990.4945
Llama 3 70B0.43600.82630.69090.40710.92130.78700.80140.82660.51770.6905
Llama 3.1 70B0.44200.82880.68980.40500.91960.78460.79910.65660.54760.6748
Llama 3 Youko 70B0.43000.82910.69000.40570.92220.78620.79680.82750.41280.6778
Llama 3 Swallow 70B0.42400.82310.68280.40590.92340.77450.81430.73520.49090.6749
Llama 3.1 Swallow 70B0.43200.82620.68980.40180.92770.77240.80890.80630.53960.6894

Evaluation Benchmarks

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])
  • Academic exams (MMLU [Hendrycks et al., 2021])
  • Code generation (HumanEval [Chen et al., 2021])

Training Datasets

Continual Pre-Training

The following datasets were used for continual pre-training.

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"
  • AIST program: Large Generative AI Development Support Program

License

META LLAMA 3.1 COMMUNITY LICENSE

Authors

Here are the team members:

How to cite

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},
}

References

@misc{dubey2024llama3herdmodels,
      title={The Llama 3 Herd of Models}, 
      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.},
      year={2024},
      eprint={2407.21783},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2407.21783}, 
}

Contributors

kazukifujii

37 commits

Taishi-N324

13 commits

aya-se

1 commits

maym15

1 commits

tokyotech-llm/Llama-3.1-Swallow-70B-v0.1

Model

5

stars

53

commits

3

linked in READMEs

Jan 31, 2025

updated

endpoints_compatible
llama
safetensors
text-generation
text-generation-inference
transformers

README

Llama 3.1 Swallow - Built with Llama

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) 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.

Release History

Swallow Model Index

ModelLlama-3.1-Swallow v0.1Llama-3.1-Swallow-Instruct v0.1Llama-3.1-Swallow v0.2Llama-3.1-Swallow-Instruct v0.2Llama-3.1-Swallow-Instruct v0.3
8BLinkLinkLinkLinkLink
70BLinkLink

logo

The website https://swallow-llm.github.io/ provides large language models developed by the Swallow team.

Model Details

  • Model type: Please refer to Llama 3.1 MODEL_CARD for details on the model architecture.
  • Language(s): Japanese English
  • Library: Megatron-LM
  • Tokenizer: Please refer to Llama 3.1 blog for details on the tokenizer.
  • Contact: swallow[at]nlp.c.titech.ac.jp

Model Performance

Japanese tasks

ModelJCom.JEMHopQANIILCJSQuADXL-SumMGSMWMT20-en-jaWMT20-ja-enJMMLUJHumanEvalJa Avg
4-shot4-shot4-shot4-shot1-shot4-shot4-shot4-shot5-shot0-shot
EM accChar-F1Char-F1Char-F1ROUGE-2EM accBLEUBLEUEM accpass@1
Qwen2-72B0.96070.63990.56170.92610.23620.75600.27470.24190.78310.55670.5937
Qwen2.5-72B0.97230.61110.61940.93010.27920.82800.28690.25210.80460.64820.6232
Sarashina2-70B0.92850.71730.66810.92940.18990.48800.31290.24290.59160.23840.5307
Llama 3 70B0.94730.60420.59650.92070.22540.67200.28550.25260.69750.47990.5682
Llama 3.1 70B0.94820.61120.59680.92510.22840.68400.28700.25530.66900.45730.5662
Llama 3 Youko 70B0.94550.60880.60680.92260.24280.66800.29090.24950.70380.45300.5692
Llama 3 Swallow 70B0.97140.66950.68810.92180.24040.70800.30720.25480.70490.46830.5934
Llama 3.1 Swallow 70B0.95530.64500.67760.92310.27220.68400.31990.25910.70880.48720.5932

English tasks

ModelOpenBookQATriviaQAHellaSWAGSQuAD2.0XWINOMMLUGSM8KBBHHumanEvalEn Avg
4-shot4-shot4-shot4-shot4-shot5-shot4-shot3-shot0-shot
AccEM accAccEM accAccAccEM accCoT EM Accpass@1
Qwen2-72B0.41600.78900.67660.40520.91610.84280.89080.63880.60490.6867
Qwen2.5-72B0.41600.76040.68490.39970.90150.86080.87260.72680.55430.6863
Sarashina2-70B0.39200.53730.62700.41740.91780.63030.01060.63860.27990.4945
Llama 3 70B0.43600.82630.69090.40710.92130.78700.80140.82660.51770.6905
Llama 3.1 70B0.44200.82880.68980.40500.91960.78460.79910.65660.54760.6748
Llama 3 Youko 70B0.43000.82910.69000.40570.92220.78620.79680.82750.41280.6778
Llama 3 Swallow 70B0.42400.82310.68280.40590.92340.77450.81430.73520.49090.6749
Llama 3.1 Swallow 70B0.43200.82620.68980.40180.92770.77240.80890.80630.53960.6894

Evaluation Benchmarks

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])
  • Academic exams (MMLU [Hendrycks et al., 2021])
  • Code generation (HumanEval [Chen et al., 2021])

Training Datasets

Continual Pre-Training

The following datasets were used for continual pre-training.

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"
  • AIST program: Large Generative AI Development Support Program

License

META LLAMA 3.1 COMMUNITY LICENSE

Authors

Here are the team members:

How to cite

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},
}

References

@misc{dubey2024llama3herdmodels,
      title={The Llama 3 Herd of Models}, 
      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.},
      year={2024},
      eprint={2407.21783},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2407.21783}, 
}

Contributors

kazukifujii

37 commits

Taishi-N324

13 commits

aya-se

1 commits

maym15

1 commits