Zamba: A Compact 7B SSM Hybrid Model

Paolo Glorioso, Quentin Anthony, Yury Tokpanov, James Whittington, Jonathan Pilault +2 more
5/26/2024
cs.LGcs.AIcs.CL
transformer-attention

No official code found. Best implementation: kyegomez/Zamba (8 stars, MIT, last commit 2026-04-20).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

kyegomez/ZambaCommunity69%
MIT

Implementation of the Paper: "Zamba: A Compact 7B SSM Hybrid Model" in Pytorch

80Shell, PythonMay 28, 20246 months agoMIT

Similar Papers

Cite this paper

@article{glorioso2024zamba,
  title  = {Zamba: A Compact 7B SSM Hybrid Model},
  author = {Paolo Glorioso and Quentin Anthony and Yury Tokpanov and James Whittington and Jonathan Pilault and Adam Ibrahim and Beren Millidge},
  year   = {2024},
  eprint = {2405.16712},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.16712v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.16712.svg)](https://codeofpaper.com/paper/2405.16712)

Discussion