
Bamba-9B-v1 (ibm-ai-platform)
Language2,283 ops2.9M params
A decoder-only language model that intersperses full attention layers with Mamba2 layers.
Language · 2,283 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.jamba:build_jamba: build({}) Bamba-9B-v2 is Bamba v1 trained for an additional 1T tokens. Its model card reports L1 and L2 leaderboard scores above those of Llama 3.1 8B.
About this model's family
Bamba-9B is a decoder-only language model based on the Mamba-2 architecture and designed for a wide range of text generation tasks. It is a hybrid model: full attention layers are interspersed with Mamba2 layers.
The blog post that introduced the model names the root cause of the memory bottleneck in transformer inference: the increasing amount of memory required by the KV-cache as the context length increases. Mamba is among the architectures it lists as removing this bottleneck by making the KV-cache size constant. In the authors' vLLM benchmark against Meta Llama 3.1 8B on an NVIDIA H100 80GB GPU, Bamba-9B reached up to 2 to 2.5 times better throughput and latency as batch size and sequence length increased.
The model card lists 32 layers, a hidden dimension of 4096, 32 attention heads with GQA, 8 KV heads and a context length of 4096, and gives the parameter count as 9.78B. The architecture was designed jointly by Princeton, CMU, IBM and UIUC. Training was performed primarily by the IBM team, using the Mamba2 kernels and layer implementation from Tri Dao and Albert Gu.
Key idea. Bamba-9B is a hybrid Mamba2 language model trained on open data, for which the authors report 2.5x throughput improvement and 2x latency speedup over standard transformers in vLLM.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@article{bamba2024,
title = {Bamba: Inference-Efficient Hybrid Mamba2 Model},
author = {Linsong Chu and Divya Kumari and Tri Dao and Albert Gu and Raghu Ganti and Dakshi Agrawal and Mudhakar Srivatsa and Davis Wertheimer and Yu Chin Fabian Lim and Antoni Viros},
year = {2024},
journal = {Hugging Face blog}
}