The Mamba in the Llama: Distilling and Accelerating Hybrid Models
27 Aug · Junxiong Wang, Daniele Paliotta, Avner May +2 · arXiv:2408.15237
Linear RNN architectures, like Mamba, can be competitive with Transformer models in language modeling while having advantageous deployment characteristics. Given the focus on training large-scale Transformer models, we consider the challenge of converting these pretrained models for deployment. We demonstrate that it is feasible to distill large Transformers into linear RNNs by reusing the linear projection weights…