arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.02385cs.CLcs.AI
收藏

TinyLlama:一个开源的小型语言模型

TinyLlama: An Open-Source Small Language Model

Singapore University of Technology and Design(新加坡科技设计大学)

Peiyuan Zhang, Guangtao Zeng, Tianduo Wang, Wei Lu

AI总结:

本文提出了 TinyLlama,一个基于 Llama 2 架构的开源紧凑型 1.1B 语言模型,通过利用 FlashAttention 等社区技术提升计算效率,在约 1 万亿 tokens 上预训练 3 个 epochs,在多项下游任务中显著优于同等规模的现有开源模型。

摘要:

我们提出了 TinyLlama,一个紧凑的 1.1B 语言模型,在大约 1 万亿个 tokens 上预训练了约 3 个 epochs。基于 Llama 2 的架构和分词器,TinyLlama 利用了开源社区贡献的各项进展(如 FlashAttention 和 Lit-GPT),实现了更高的计算效率。尽管规模相对较小,TinyLlama 在一系列下游任务中展现出卓越的性能。它显著优于同等规模的现有开源语言模型。我们的模型检查点和代码已在 GitHub 上公开:https://github.com/jzhang38/TinyLlama。

英文摘要:

We present TinyLlama, a compact 1.1B language model pretrained on around 1 trillion tokens for approximately 3 epochs. Building on the architecture and tokenizer of Llama 2, TinyLlama leverages various advances contributed by the open-source community (e.g., FlashAttention and Lit-GPT), achieving better computational efficiency. Despite its relatively small size, TinyLlama demonstrates remarkable performance in a series of downstream tasks. It significantly outperforms existing open-source language models with comparable sizes. Our model checkpoints and code are publicly available on GitHub at https://github.com/jzhang38/TinyLlama.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑