arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.14458cs.LGcs.AI
收藏

Llamba:扩展蒸馏循环模型以实现高效语言处理

Llamba: Scaling Distilled Recurrent Models for Efficient Language Processing

Cartesia AI

Aviv Bick, Tobias Katsch, Nimit Sohoni, Arjun Desai, Albert Gu

AI总结:

Llamba通过跨架构蒸馏将Llama-3.x压缩为Mamba循环模型,在保持性能的同时提升吞吐量并降低内存需求,使高质量语言模型更易部署。

摘要:

我们介绍了Llamba,这是一个从Llama-3.x蒸馏到Mamba架构的高效循环语言模型系列。该系列包括Llamba-1B、Llamba-3B和Llamba-8B,与基于Transformer的模型相比,它们实现了更高的推理吞吐量并处理显著更大的批量大小,同时保持了可比的基准性能。此外,Llamba展示了使用MOHAWK(Bick等人,2024)进行跨架构蒸馏的有效性,使用通常用于类似规模模型的训练数据的不到0.1%就实现了这些结果。为了充分利用其效率,我们为资源受限的设备(如智能手机和边缘平台)提供了Llamba的优化实现,提供了一种实用且内存高效的Transformer替代方案。总体而言,Llamba改善了速度、内存效率和性能之间的权衡,使高质量语言模型更加易于访问。

英文摘要:

We introduce Llamba, a family of efficient recurrent language models distilled from Llama-3.x into the Mamba architecture. The series includes Llamba-1B, Llamba-3B, and Llamba-8B, which achieve higher inference throughput and handle significantly larger batch sizes than Transformer-based models while maintaining comparable benchmark performance. Furthermore, Llamba demonstrates the effectiveness of cross-architecture distillation using MOHAWK (Bick et al., 2024), achieving these results with less than 0.1% of the training data typically used for models of similar size. To take full advantage of their efficiency, we provide an optimized implementation of Llamba for resource-constrained devices such as smartphones and edge platforms, offering a practical and memory-efficient alternative to Transformers. Overall, Llamba improves the tradeoff between speed, memory efficiency, and performance, making high-quality language models more accessible.

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

↑