Instructions to use dtran612/CafeBERT-vianli-h with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dtran612/CafeBERT-vianli-h with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dtran612/CafeBERT-vianli-h")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dtran612/CafeBERT-vianli-h") model = AutoModelForSequenceClassification.from_pretrained("dtran612/CafeBERT-vianli-h") - Notebooks
- Google Colab
- Kaggle
CafeBERT-vianli-h
This model is a fine-tuned version of uitnlp/CafeBERT on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.0990
- Accuracy: 0.99
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: 16
- eval_batch_size: 8
- 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
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.1127 | 1.0 | 63 | 1.0756 | 0.419 |
| 1.0878 | 2.0 | 126 | 1.0008 | 0.595 |
| 0.9909 | 3.0 | 189 | 0.8314 | 0.699 |
| 0.9148 | 4.0 | 252 | 0.6280 | 0.848 |
| 0.6869 | 5.0 | 315 | 0.4484 | 0.889 |
| 0.5725 | 6.0 | 378 | 0.3311 | 0.918 |
| 0.4839 | 7.0 | 441 | 0.2057 | 0.966 |
| 0.3259 | 8.0 | 504 | 0.1510 | 0.974 |
| 0.2483 | 9.0 | 567 | 0.1076 | 0.986 |
| 0.2426 | 10.0 | 630 | 0.0990 | 0.99 |
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 dtran612/CafeBERT-vianli-h
Base model
uitnlp/CafeBERT