Team Ai
Modelpublic

trinhxuankhai/mamba_text_classification

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes12downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

Mamba for Text Classification

This model was trained from scratch on IMDB dataset.

It achieves the following results on the evaluation set:

  • —Loss: 0.1696
  • —Accuracy: 0.94

It achieves the following results on the test set:

  • —Loss: 0.2068
  • —Accuracy: 0.94

Notebook

Detail on model and training code on colab.

Model description

Mamba model for text classification.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 4
  • —evalbatchsize: 16
  • —seed: 42
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_ratio: 0.01
  • —num_epochs: 1

Training results

Training LossEpochStepValidation LossAccuracy
0.01280.16250.38290.892
0.00870.212500.27330.912
0.17290.318750.19130.932
0.1110.425000.20250.928
0.00070.531250.17990.944
0.01840.637500.17540.94
1.52960.743750.20800.928
0.00050.850000.18590.936
0.00110.956250.16640.944
0.00061.062500.16960.94

Framework versions

  • —Transformers 4.35.2
  • —Pytorch 2.1.0+cu121
  • —Datasets 2.17.0
  • —Tokenizers 0.15.2