Implementation and Evaluation of Mamba Selective State Space Models for Shakespearian Text Synthesis
Abstract
This study evaluates the training efficiency and scaling behavior of the Mamba Selective State Space Model (SSM). We implement a character-level language model trained on the TinyShakespeare dataset using JAX and the experimental Metal backend on an Apple M2 Pro. Our findings demonstrate near-perfect linear scaling (50.5%) when doubling model depth and identify critical hardware-constrained hyperparameter boundaries to prevent GPU buffer errors.
Fields of Study & Subjects
Topic Modeling
Natural Language Processing Techniques
Speech Recognition and Synthesis
Publication details
- Publication date
- 11 February 2026
- Language
- EN
- Document type
- Preprint