Instructions to use KalvinPhan/phobert-vihsd-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KalvinPhan/phobert-vihsd-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KalvinPhan/phobert-vihsd-finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KalvinPhan/phobert-vihsd-finetuned") model = AutoModelForSequenceClassification.from_pretrained("KalvinPhan/phobert-vihsd-finetuned") - Notebooks
- Google Colab
- Kaggle
phobert-vihsd-finetuned
This model is a fine-tuned version of KalvinPhan/PhoBert-Pretrain on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.9017
- Accuracy: 0.8761
- F1 Macro: 0.7138
- Precision Macro: 0.6963
- Recall Macro: 0.7341
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: 16
- 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: 0.1
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | Precision Macro | Recall Macro |
|---|---|---|---|---|---|---|---|
| 0.6296 | 1.0 | 1503 | 0.6728 | 0.8653 | 0.7085 | 0.6786 | 0.7487 |
| 0.4832 | 2.0 | 3006 | 0.7710 | 0.8795 | 0.7251 | 0.7063 | 0.7473 |
| 0.3768 | 3.0 | 4509 | 0.9017 | 0.8761 | 0.7138 | 0.6963 | 0.7341 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 142
Model tree for KalvinPhan/phobert-vihsd-finetuned
Base model
KalvinPhan/PhoBert-Pretrain