Instructions to use TarasHarbar/dl2-hw2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TarasHarbar/dl2-hw2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="TarasHarbar/dl2-hw2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("TarasHarbar/dl2-hw2") model = AutoModelForTokenClassification.from_pretrained("TarasHarbar/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.0909
- Precision: 0.9043
- Recall: 0.9276
- F1: 0.9158
- 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: 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.0676 | 1.0 | 1252 | 0.0837 | 0.8874 | 0.9128 | 0.9000 | 0.9801 |
| 0.0439 | 2.0 | 2504 | 0.0866 | 0.8963 | 0.9197 | 0.9079 | 0.9807 |
| 0.0374 | 3.0 | 3756 | 0.0826 | 0.9018 | 0.9175 | 0.9096 | 0.9817 |
| 0.0311 | 4.0 | 5008 | 0.0834 | 0.9063 | 0.9249 | 0.9155 | 0.9825 |
| 0.0261 | 5.0 | 6260 | 0.0857 | 0.9006 | 0.9258 | 0.9130 | 0.9818 |
| 0.0204 | 6.0 | 7512 | 0.0909 | 0.9043 | 0.9276 | 0.9158 | 0.9821 |
Framework versions
- Transformers 5.18.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.23.2
- Downloads last month
- 8
Model tree for TarasHarbar/dl2-hw2
Base model
BAAI/bge-small-en-v1.5