indonlp/indonlu
Updated • 1.19k • 40
How to use afbudiman/indobert-classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="afbudiman/indobert-classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("afbudiman/indobert-classification")
model = AutoModelForSequenceClassification.from_pretrained("afbudiman/indobert-classification")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("afbudiman/indobert-classification")
model = AutoModelForSequenceClassification.from_pretrained("afbudiman/indobert-classification")This model is a fine-tuned version of indobenchmark/indobert-base-p1 on the indonlu dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.2458 | 1.0 | 688 | 0.2229 | 0.9325 | 0.9323 |
| 0.1258 | 2.0 | 1376 | 0.2332 | 0.9373 | 0.9369 |
| 0.059 | 3.0 | 2064 | 0.3389 | 0.9365 | 0.9365 |
| 0.0268 | 4.0 | 2752 | 0.3412 | 0.9421 | 0.9417 |
| 0.0097 | 5.0 | 3440 | 0.3707 | 0.9397 | 0.9393 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="afbudiman/indobert-classification")