Instructions to use ktsp/dl2-hw2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ktsp/dl2-hw2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ktsp/dl2-hw2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ktsp/dl2-hw2") model = AutoModelForTokenClassification.from_pretrained("ktsp/dl2-hw2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
dl2-hw2
This model is a fine-tuned version of BAAI/bge-small-en-v1.5 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.0871
- Precision: 0.9057
- Recall: 0.9258
- F1: 0.9156
- Accuracy: 0.9824
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: 8
- 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
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.1446 | 1.0 | 1250 | 0.1313 | 0.8043 | 0.8718 | 0.8367 | 0.9699 |
| 0.0854 | 2.0 | 2500 | 0.0932 | 0.8789 | 0.9063 | 0.8924 | 0.9785 |
| 0.0516 | 3.0 | 3750 | 0.0844 | 0.8810 | 0.9145 | 0.8974 | 0.9792 |
| 0.0379 | 4.0 | 5000 | 0.0886 | 0.8905 | 0.9263 | 0.9080 | 0.9800 |
| 0.0222 | 5.0 | 6250 | 0.0818 | 0.8981 | 0.9253 | 0.9115 | 0.9817 |
| 0.0236 | 6.0 | 7500 | 0.0822 | 0.8981 | 0.9251 | 0.9114 | 0.9816 |
| 0.0340 | 7.0 | 8750 | 0.0843 | 0.8993 | 0.9243 | 0.9116 | 0.9815 |
| 0.0116 | 8.0 | 10000 | 0.0840 | 0.9092 | 0.9246 | 0.9168 | 0.9826 |
| 0.0137 | 9.0 | 11250 | 0.0855 | 0.9033 | 0.9261 | 0.9146 | 0.9821 |
| 0.0196 | 10.0 | 12500 | 0.0871 | 0.9057 | 0.9258 | 0.9156 | 0.9824 |
Framework versions
- Transformers 5.18.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.23.2
- Downloads last month
- 7
Model tree for ktsp/dl2-hw2
Base model
BAAI/bge-small-en-v1.5