Instructions to use db1boy/bge-small-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use db1boy/bge-small-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="db1boy/bge-small-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("db1boy/bge-small-ner") model = AutoModelForTokenClassification.from_pretrained("db1boy/bge-small-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bge-small-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.0802
- Precision: 0.9002
- Recall: 0.9260
- F1: 0.9129
- Accuracy: 0.9817
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 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.2205 | 1.0 | 625 | 0.1772 | 0.7692 | 0.8174 | 0.7926 | 0.9623 |
| 0.1226 | 2.0 | 1250 | 0.1126 | 0.8626 | 0.8920 | 0.8770 | 0.9764 |
| 0.1069 | 3.0 | 1875 | 0.0920 | 0.8615 | 0.9079 | 0.8841 | 0.9779 |
| 0.0553 | 4.0 | 2500 | 0.0836 | 0.8834 | 0.9155 | 0.8992 | 0.9806 |
| 0.0469 | 5.0 | 3125 | 0.0830 | 0.8883 | 0.9199 | 0.9038 | 0.9807 |
| 0.0467 | 6.0 | 3750 | 0.0782 | 0.8897 | 0.9216 | 0.9053 | 0.9811 |
| 0.0417 | 7.0 | 4375 | 0.0792 | 0.8925 | 0.9254 | 0.9087 | 0.9812 |
| 0.026 | 8.0 | 5000 | 0.0808 | 0.8987 | 0.9231 | 0.9108 | 0.9816 |
| 0.0244 | 9.0 | 5625 | 0.0799 | 0.8988 | 0.9254 | 0.9119 | 0.9817 |
| 0.0267 | 10.0 | 6250 | 0.0802 | 0.9002 | 0.9260 | 0.9129 | 0.9817 |
Framework versions
- Transformers 4.50.0
- Pytorch 2.10.0+cu128
- Datasets 3.4.1
- Tokenizers 0.21.4
- Downloads last month
- -
Model tree for db1boy/bge-small-ner
Base model
BAAI/bge-small-en-v1.5