Instructions to use SadWork/bge-small-en-v1.5-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SadWork/bge-small-en-v1.5-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="SadWork/bge-small-en-v1.5-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("SadWork/bge-small-en-v1.5-ner") model = AutoModelForTokenClassification.from_pretrained("SadWork/bge-small-en-v1.5-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bge-small-en-v1.5-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.8133
- Precision: 0.8694
- Recall: 0.9084
- F1: 0.8885
- Accuracy: 0.9784
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: 64
- eval_batch_size: 64
- 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 |
|---|---|---|---|---|---|---|---|
| 3.7292 | 1.0 | 157 | 2.9589 | 0.4784 | 0.5682 | 0.5194 | 0.9279 |
| 2.1150 | 2.0 | 314 | 1.7526 | 0.7172 | 0.7577 | 0.7369 | 0.9540 |
| 1.4528 | 3.0 | 471 | 1.3231 | 0.7994 | 0.8517 | 0.8247 | 0.9660 |
| 1.1855 | 4.0 | 628 | 1.0818 | 0.8430 | 0.8847 | 0.8634 | 0.9734 |
| 1.0080 | 5.0 | 785 | 0.9685 | 0.8471 | 0.8930 | 0.8694 | 0.9749 |
| 0.8436 | 6.0 | 942 | 0.8951 | 0.8607 | 0.8997 | 0.8798 | 0.9768 |
| 0.7523 | 7.0 | 1099 | 0.8561 | 0.8617 | 0.9037 | 0.8822 | 0.9772 |
| 0.6282 | 8.0 | 1256 | 0.8303 | 0.8661 | 0.9071 | 0.8861 | 0.9782 |
| 0.6384 | 9.0 | 1413 | 0.8134 | 0.8697 | 0.9086 | 0.8887 | 0.9786 |
| 0.5956 | 10.0 | 1570 | 0.8133 | 0.8694 | 0.9084 | 0.8885 | 0.9784 |
Framework versions
- Transformers 5.2.0
- Pytorch 2.11.0+cu128
- Datasets 5.0.1
- Tokenizers 0.22.2
- Downloads last month
- 18
Model tree for SadWork/bge-small-en-v1.5-ner
Base model
BAAI/bge-small-en-v1.5