Instructions to use SwagaCop/ner-finetune-bge-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SwagaCop/ner-finetune-bge-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="SwagaCop/ner-finetune-bge-small")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("SwagaCop/ner-finetune-bge-small") model = AutoModelForTokenClassification.from_pretrained("SwagaCop/ner-finetune-bge-small", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ner-finetune-bge-small
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.2947
- Precision: 0.8950
- Recall: 0.8665
- F1: 0.8805
- Accuracy: 0.9707
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_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.5770 | 1.0 | 878 | 0.4248 | 0.8382 | 0.8097 | 0.8237 | 0.9616 |
| 0.4010 | 2.0 | 1756 | 0.3767 | 0.8807 | 0.7917 | 0.8338 | 0.9612 |
| 0.3965 | 3.0 | 2634 | 0.3132 | 0.8726 | 0.8729 | 0.8728 | 0.9726 |
| 0.3230 | 4.0 | 3512 | 0.3029 | 0.8876 | 0.8827 | 0.8852 | 0.9753 |
| 0.3199 | 5.0 | 4390 | 0.2909 | 0.8935 | 0.8906 | 0.8920 | 0.9754 |
| 0.3143 | 6.0 | 5268 | 0.2668 | 0.8942 | 0.8958 | 0.8950 | 0.9762 |
| 0.2729 | 7.0 | 6146 | 0.3041 | 0.8981 | 0.8665 | 0.8821 | 0.9702 |
| 0.2885 | 8.0 | 7024 | 0.2947 | 0.8950 | 0.8665 | 0.8805 | 0.9707 |
Framework versions
- Transformers 5.2.0
- Pytorch 2.10.0+cu128
- Datasets 4.8.3
- Tokenizers 0.22.2
- Downloads last month
- 2
Model tree for SwagaCop/ner-finetune-bge-small
Base model
BAAI/bge-small-en-v1.5