Reproduce “TinyLlama: An Open-Source Small Language Model” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, Wei Lu

TinyLlama is a 1.1 billion parameter open-source language model trained on up to 3 trillion tokens, demonstrating that smaller models can achieve competitive performance against larger baselines. Its multi-stage pre-training framework effectively develops strong general and domain-specific capabilities, including enhanced performance on math, code, and Chinese understanding tasks.

Key insights

  • Smaller models can achieve performance comparable to larger, state-of-the-art LLMs by leveraging significantly larger pre-training datasets, supporting the concept of "inference-optimal" models.
  • Multi-stage training, including targeted continual pre-training and a final cooldown phase, is an effective strategy for instilling domain-specific knowledge and improving model convergence without compromising general capabilities.
  • Open-sourcing models, training code, and data processing details lowers barriers to entry, enabling broader research, rapid experimentation, and the development of resource-efficient AI applications.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.