Instructions to use shintaar/indobert-nusax-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shintaar/indobert-nusax-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="shintaar/indobert-nusax-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("shintaar/indobert-nusax-sentiment") model = AutoModelForSequenceClassification.from_pretrained("shintaar/indobert-nusax-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
indobert-nusax-sentiment
This model is a fine-tuned version of indobenchmark/indobert-base-p1 on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.3290
- Accuracy: 0.9075
- F1 Macro: 0.8954
- Precision: 0.9178
- Recall: 0.8856
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 16
- eval_batch_size: 32
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 50
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.9487 | 1.0 | 32 | 0.7219 | 0.76 | 0.7482 | 0.7655 | 0.7485 |
| 0.3573 | 2.0 | 64 | 0.4023 | 0.85 | 0.8342 | 0.849 | 0.8275 |
| 0.2415 | 3.0 | 96 | 0.3622 | 0.87 | 0.8559 | 0.8667 | 0.8501 |
| 0.0692 | 4.0 | 128 | 0.4374 | 0.89 | 0.8773 | 0.8846 | 0.8728 |
| 0.0177 | 5.0 | 160 | 0.4598 | 0.88 | 0.8728 | 0.8721 | 0.8743 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 7
Model tree for shintaar/indobert-nusax-sentiment
Base model
indobenchmark/indobert-base-p1