Instructions to use nhatha2004/DSC_vietnamese-bi-encoder_finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nhatha2004/DSC_vietnamese-bi-encoder_finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nhatha2004/DSC_vietnamese-bi-encoder_finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nhatha2004/DSC_vietnamese-bi-encoder_finetuned") model = AutoModelForSequenceClassification.from_pretrained("nhatha2004/DSC_vietnamese-bi-encoder_finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
DSC_vietnamese-bi-encoder_finetuned
This model is a fine-tuned version of bkai-foundation-models/vietnamese-bi-encoder on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.9342
- Accuracy: 0.7414
- F1 Macro: 0.7427
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 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: 100
- num_epochs: 20
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
|---|---|---|---|---|---|
| 0.8119 | 1.0 | 350 | 0.7950 | 0.6664 | 0.6710 |
| 0.6695 | 2.0 | 700 | 0.6953 | 0.7379 | 0.7371 |
| 0.5503 | 3.0 | 1050 | 0.7463 | 0.7336 | 0.7354 |
| 0.4074 | 4.0 | 1400 | 0.8203 | 0.7171 | 0.7188 |
| 0.3197 | 5.0 | 1750 | 1.0005 | 0.7157 | 0.7156 |
| 0.3311 | 6.0 | 2100 | 0.9342 | 0.7414 | 0.7427 |
| 0.2454 | 7.0 | 2450 | 1.1107 | 0.7136 | 0.7105 |
| 0.2093 | 8.0 | 2800 | 1.1912 | 0.7243 | 0.7250 |
| 0.1728 | 9.0 | 3150 | 1.2387 | 0.7164 | 0.7169 |
| 0.1477 | 10.0 | 3500 | 1.2858 | 0.735 | 0.7358 |
Framework versions
- Transformers 4.52.4
- Pytorch 2.6.0+cu124
- Datasets 3.6.0
- Tokenizers 0.21.2
- Downloads last month
- 12
Model tree for nhatha2004/DSC_vietnamese-bi-encoder_finetuned
Base model
bkai-foundation-models/vietnamese-bi-encoder