TensorX
返回文献探索

Paper · arXiv 2402.01771

BlackMamba: Mixture of Experts for State-Space Models

Quentin Anthony, Yury Tokpanov, Paolo Glorioso, Beren Millidge

25 upvotesFebruary 1, 2024arXiv 预印本
AI 摘要

BlackMamba, a novel architecture combining Mamba SSM and MoE models, achieves competitive performance in language modeling and improved inference and training efficiency.

state-space modelsSSMMambamixture-of-expertsMoEBlackMambalinear time and memory complexitylanguage modelinglong sequence processinginference FLOPstraining FLOPscustom datasetlinear-complexity generationcheap and fast inference

Abstract

State-space models (SSMs) have recently demonstrated competitive performance to transformers at large-scale language modeling benchmarks while achieving linear time and memory complexity as a function of sequence length. Mamba, a recently released SSM model, shows impressive performance in both language modeling and long sequence processing tasks. Simultaneously, mixture-of-expert (MoE) models have shown remarkable performance while significantly reducing the compute and latency costs of inference at the expense of a larger memory footprint. In this paper, we present BlackMamba, a novel architecture that combines the Mamba SSM with MoE to obtain the benefits of both. We demonstrate that BlackMamba performs competitively against both Mamba and transformer baselines, and outperforms in inference and training FLOPs. We fully train and open-source 340M/1.5B and 630M/2.8B BlackMamba models on 300B tokens of a custom dataset. We show that BlackMamba inherits and combines both of the benefits of SSM and MoE architectures, combining linear-complexity generation from SSM with cheap and fast inference from MoE. We release all weights, checkpoints, and inference code open-source. Inference code at: https://github.com/Zyphra/BlackMamba

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
BlackMamba: Mixture of Experts for State-Space Models | TensorX