Machine Learning with Applications (Jun 2024)

TeenyTinyLlama: Open-source tiny language models trained in Brazilian Portuguese

  • Nicholas Kluge Corrêa,
  • Sophia Falk,
  • Shiza Fatimah,
  • Aniket Sen,
  • Nythamar De Oliveira

Journal volume & issue
Vol. 16
p. 100558

Abstract

Read online

Large language models (LLMs) have significantly advanced natural language processing, but their progress has yet to be equal across languages. While most LLMs are trained in high-resource languages like English, multilingual models generally underperform monolingual ones. Additionally, aspects of their multilingual foundation sometimes restrict the byproducts they produce, like computational demands and licensing regimes. In this study, we document the development of open-foundation models tailored for use in low-resource settings, their limitations, and their benefits. This is the TeenyTinyLlama pair: two compact models for Brazilian Portuguese text generation. We release them under the permissive Apache 2.0 license on GitHub and Hugging Face for community use and further development.

Keywords