Instructions to use mirmakh/bge-small-finetuned-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mirmakh/bge-small-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="mirmakh/bge-small-finetuned-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("mirmakh/bge-small-finetuned-ner") model = AutoModelForTokenClassification.from_pretrained("mirmakh/bge-small-finetuned-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bge-small-finetuned-ner
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.0768
- Precision: 0.9043
- Recall: 0.9275
- F1: 0.9158
- Accuracy: 0.9827
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: 64
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH 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 |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 157 | 0.0881 | 0.8658 | 0.9009 | 0.8830 | 0.9785 |
| No log | 2.0 | 314 | 0.0783 | 0.8855 | 0.9122 | 0.8986 | 0.9803 |
| No log | 3.0 | 471 | 0.0760 | 0.8935 | 0.9207 | 0.9069 | 0.9810 |
| 0.072 | 4.0 | 628 | 0.0784 | 0.8928 | 0.9211 | 0.9067 | 0.9810 |
| 0.072 | 5.0 | 785 | 0.0752 | 0.8897 | 0.9221 | 0.9056 | 0.9815 |
| 0.072 | 6.0 | 942 | 0.0750 | 0.8968 | 0.9286 | 0.9124 | 0.9821 |
| 0.0301 | 7.0 | 1099 | 0.0764 | 0.9022 | 0.9271 | 0.9145 | 0.9825 |
| 0.0301 | 8.0 | 1256 | 0.0768 | 0.9045 | 0.9263 | 0.9153 | 0.9823 |
| 0.0301 | 9.0 | 1413 | 0.0762 | 0.9078 | 0.9276 | 0.9176 | 0.9832 |
| 0.0182 | 10.0 | 1570 | 0.0768 | 0.9043 | 0.9275 | 0.9158 | 0.9827 |
Framework versions
- Transformers 4.50.0
- Pytorch 2.11.0+cu128
- Datasets 3.4.1
- Tokenizers 0.21.4
- Downloads last month
- 26
Model tree for mirmakh/bge-small-finetuned-ner
Base model
BAAI/bge-small-en-v1.5