This repository demonstrates how to perform text classification using the Mamba model on the IMDB dataset. The IMDB dataset contains movie reviews labeled as positive or negative, and this project aims to build a custom Mamba model to classify these reviews.
The model architechture is based on the Mamba model. The custom Mamba model includes:
MambaConfig
: Configuration class for the Mamba model.MambaClassificationHead
: A classification head tailored for Mamba models.MambaLMHeadModel
: The base Mamba model.MambaTextClassification
: Custom model for text classification.