Instructions to use vuihocrnd/cls-comment-phobert-base-v2-v1.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vuihocrnd/cls-comment-phobert-base-v2-v1.1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="vuihocrnd/cls-comment-phobert-base-v2-v1.1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("vuihocrnd/cls-comment-phobert-base-v2-v1.1") model = AutoModelForSequenceClassification.from_pretrained("vuihocrnd/cls-comment-phobert-base-v2-v1.1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
cls-comment-phobert-base-v2-v1.1
This model is a fine-tuned version of vinai/phobert-base-v2 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.2842
- Accuracy: 0.9073
- F1 Score: 0.8241
- Recall: 0.8213
- Precision: 0.8268
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: 1e-05
- train_batch_size: 64
- eval_batch_size: 64
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 128
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score | Recall | Precision |
|---|---|---|---|---|---|---|---|
| 0.3459 | 1.0 | 197 | 0.3334 | 0.8723 | 0.7192 | 0.6187 | 0.8586 |
| 0.2853 | 2.0 | 395 | 0.2662 | 0.8941 | 0.7897 | 0.7518 | 0.8316 |
| 0.2558 | 3.0 | 592 | 0.2601 | 0.9011 | 0.8074 | 0.7842 | 0.8321 |
| 0.2021 | 4.0 | 790 | 0.2467 | 0.9049 | 0.8120 | 0.7770 | 0.8504 |
| 0.1639 | 5.0 | 987 | 0.2798 | 0.8954 | 0.8113 | 0.8507 | 0.7754 |
| 0.1558 | 6.0 | 1185 | 0.2615 | 0.9046 | 0.8199 | 0.8213 | 0.8184 |
| 0.1351 | 7.0 | 1382 | 0.2696 | 0.9055 | 0.8214 | 0.8219 | 0.8210 |
| 0.11 | 8.0 | 1580 | 0.2901 | 0.9011 | 0.8198 | 0.8507 | 0.7910 |
| 0.0966 | 9.0 | 1777 | 0.2825 | 0.9082 | 0.8209 | 0.7956 | 0.8479 |
| 0.0843 | 9.97 | 1970 | 0.2842 | 0.9073 | 0.8241 | 0.8213 | 0.8268 |
Framework versions
- Transformers 4.38.1
- Pytorch 2.1.0+cu121
- Datasets 2.18.0
- Tokenizers 0.15.2
- Downloads last month
- 4
Model tree for vuihocrnd/cls-comment-phobert-base-v2-v1.1
Base model
vinai/phobert-base-v2