Instructions to use Rgpmo/bge-small-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rgpmo/bge-small-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Rgpmo/bge-small-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Rgpmo/bge-small-ner") model = AutoModelForTokenClassification.from_pretrained("Rgpmo/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.1683
- Precision: 0.9040
- Recall: 0.9266
- F1: 0.9152
- Accuracy: 0.9824
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.1548 | 1.0 | 625 | 0.2176 | 0.8276 | 0.9059 | 0.8650 | 0.9727 |
| 0.1118 | 2.0 | 1250 | 0.1746 | 0.8875 | 0.9111 | 0.8992 | 0.9797 |
| 0.1347 | 3.0 | 1875 | 0.1639 | 0.8626 | 0.9140 | 0.8876 | 0.9779 |
| 0.0655 | 4.0 | 2500 | 0.1575 | 0.8987 | 0.9214 | 0.9099 | 0.9819 |
| 0.0687 | 5.0 | 3125 | 0.1629 | 0.8901 | 0.9224 | 0.9060 | 0.9807 |
| 0.0655 | 6.0 | 3750 | 0.1549 | 0.9011 | 0.9261 | 0.9134 | 0.9824 |
| 0.0532 | 7.0 | 4375 | 0.1618 | 0.9009 | 0.9285 | 0.9145 | 0.9825 |
| 0.0331 | 8.0 | 5000 | 0.1692 | 0.9014 | 0.9243 | 0.9127 | 0.9822 |
| 0.0266 | 9.0 | 5625 | 0.1671 | 0.9028 | 0.9271 | 0.9148 | 0.9825 |
| 0.0338 | 10.0 | 6250 | 0.1683 | 0.9040 | 0.9266 | 0.9152 | 0.9824 |
Framework versions
- Transformers 5.16.1
- Pytorch 2.11.0+cu128
- Datasets 4.8.5
- Tokenizers 0.23.1
- Downloads last month
- 17
Model tree for Rgpmo/bge-small-ner
Base model
BAAI/bge-small-en-v1.5