Instructions to use ktsp/dl2-hw2-bge-simple with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ktsp/dl2-hw2-bge-simple with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ktsp/dl2-hw2-bge-simple")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ktsp/dl2-hw2-bge-simple") model = AutoModelForTokenClassification.from_pretrained("ktsp/dl2-hw2-bge-simple", device_map="auto") - Notebooks
- Google Colab
- Kaggle
dl2-hw2-bge-simple
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.0872
- Precision: 0.9074
- Recall: 0.9273
- F1: 0.9173
- Accuracy: 0.9821
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: 67
- 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.1480 | 1.0 | 1250 | 0.1282 | 0.8527 | 0.8795 | 0.8659 | 0.9735 |
| 0.1044 | 2.0 | 2500 | 0.0915 | 0.8724 | 0.9088 | 0.8902 | 0.9785 |
| 0.0706 | 3.0 | 3750 | 0.0822 | 0.8919 | 0.9202 | 0.9058 | 0.9804 |
| 0.0535 | 4.0 | 5000 | 0.0813 | 0.8927 | 0.9209 | 0.9066 | 0.9808 |
| 0.0381 | 5.0 | 6250 | 0.0825 | 0.9040 | 0.9226 | 0.9132 | 0.9816 |
| 0.0285 | 6.0 | 7500 | 0.0818 | 0.9032 | 0.9244 | 0.9137 | 0.9820 |
| 0.0149 | 7.0 | 8750 | 0.0850 | 0.9048 | 0.9256 | 0.9151 | 0.9817 |
| 0.0225 | 8.0 | 10000 | 0.0848 | 0.9080 | 0.9256 | 0.9167 | 0.9822 |
| 0.0136 | 9.0 | 11250 | 0.0855 | 0.9078 | 0.9263 | 0.9170 | 0.9824 |
| 0.0181 | 10.0 | 12500 | 0.0872 | 0.9074 | 0.9273 | 0.9173 | 0.9821 |
Framework versions
- Transformers 5.18.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.23.2
- Downloads last month
- 4
Model tree for ktsp/dl2-hw2-bge-simple
Base model
BAAI/bge-small-en-v1.5