Instructions to use saffff1111/dl2-hw2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saffff1111/dl2-hw2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="saffff1111/dl2-hw2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("saffff1111/dl2-hw2") model = AutoModelForTokenClassification.from_pretrained("saffff1111/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.1070
- Precision: 0.9497
- Recall: 0.9451
- F1: 0.9474
- Accuracy: 0.9835
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: 5e-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.0789 | 1.0 | 1252 | 0.0835 | 0.9356 | 0.9327 | 0.9342 | 0.9795 |
| 0.0486 | 2.0 | 2504 | 0.0855 | 0.9350 | 0.9412 | 0.9381 | 0.9802 |
| 0.0362 | 3.0 | 3756 | 0.0939 | 0.9420 | 0.9346 | 0.9383 | 0.9810 |
| 0.0252 | 4.0 | 5008 | 0.0941 | 0.9412 | 0.9420 | 0.9416 | 0.9817 |
| 0.0184 | 5.0 | 6260 | 0.0934 | 0.9429 | 0.9376 | 0.9403 | 0.9815 |
| 0.0129 | 6.0 | 7512 | 0.0939 | 0.9408 | 0.9456 | 0.9432 | 0.9823 |
| 0.0089 | 7.0 | 8764 | 0.1018 | 0.9464 | 0.9420 | 0.9442 | 0.9829 |
| 0.0060 | 8.0 | 10016 | 0.1074 | 0.9457 | 0.9440 | 0.9449 | 0.9827 |
| 0.0043 | 9.0 | 11268 | 0.1092 | 0.9515 | 0.9403 | 0.9459 | 0.9830 |
| 0.0037 | 10.0 | 12520 | 0.1070 | 0.9497 | 0.9451 | 0.9474 | 0.9835 |
Framework versions
- Transformers 5.17.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.23.2
- Downloads last month
- -
Model tree for saffff1111/dl2-hw2
Base model
BAAI/bge-small-en-v1.5