arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.16712cs.LGcs.AIcs.CL
收藏

Zamba:一个紧凑的7B SSM混合模型

Zamba: A Compact 7B SSM Hybrid Model

Zyphra(齐夫拉公司)

Paolo Glorioso, Quentin Anthony, Yury Tokpanov, James Whittington, Jonathan Pilault, Adam Ibrahim, Beren Millidge

AI总结:

Zamba是一种紧凑的7B SSM-Transformer混合模型,采用Mamba骨干与共享注意力模块,在1T token上训练,推理更快且内存更省,性能媲美领先开源模型。

摘要:

在本技术报告中,我们介绍了Zamba,一种新颖的7B SSM-Transformer混合模型,在可比规模上达到了与领先开源权重模型相竞争的性能。Zamba在来自公开可用数据集的1T token上进行了训练,是该规模下最佳的非Transformer模型。Zamba开创了一种独特的架构,将Mamba骨干网络与单个共享注意力模块相结合,从而以最小的参数成本获得注意力的优势。由于其架构,Zamba在推理时比可比的Transformer模型快得多,并且在生成长序列时所需内存显著减少。Zamba的预训练分为两个阶段:第一阶段基于现有的网络数据集,第二阶段则包括在高质量指令和合成数据集上对模型进行退火处理,其特点是学习率快速衰减。我们开源了Zamba在阶段1和退火阶段的所有权重和检查点。

英文摘要:

In this technical report, we present Zamba, a novel 7B SSM-transformer hybrid model which achieves competitive performance against leading open-weight models at a comparable scale. Zamba is trained on 1T tokens from openly available datasets and is the best non-transformer model at this scale. Zamba pioneers a unique architecture combining a Mamba backbone with a single shared attention module, thus obtaining the benefits of attention at minimal parameter cost. Due to its architecture, Zamba is significantly faster at inference than comparable transformer models and requires substantially less memory for generation of long sequences. Zamba is pretrained in two phases: the first phase is based on existing web datasets, while the second one consists of annealing the model over high-quality instruct and synthetic datasets, and is characterized by a rapid learning rate decay. We open-source the weights and all checkpoints for Zamba, through both phase 1 and annealing phases.

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

↑