Instructions to use Lareton/bge-small-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lareton/bge-small-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Lareton/bge-small-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Lareton/bge-small-ner") model = AutoModelForTokenClassification.from_pretrained("Lareton/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.1723
- Precision: 0.8845
- Recall: 0.9189
- F1: 0.9014
- Accuracy: 0.9795
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: 32
- 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 |
|---|---|---|---|---|---|---|---|
| 0.5750 | 1.0 | 313 | 0.4728 | 0.6859 | 0.7327 | 0.7085 | 0.9496 |
| 0.3447 | 2.0 | 626 | 0.2944 | 0.8168 | 0.8581 | 0.8369 | 0.9694 |
| 0.2415 | 3.0 | 939 | 0.2296 | 0.8637 | 0.8926 | 0.8779 | 0.9758 |
| 0.1908 | 4.0 | 1252 | 0.2005 | 0.8720 | 0.9105 | 0.8908 | 0.9780 |
| 0.1542 | 5.0 | 1565 | 0.1893 | 0.8656 | 0.9096 | 0.8871 | 0.9774 |
| 0.1273 | 6.0 | 1878 | 0.1809 | 0.8755 | 0.9148 | 0.8947 | 0.9784 |
| 0.1159 | 7.0 | 2191 | 0.1779 | 0.8828 | 0.9137 | 0.8979 | 0.9792 |
| 0.1138 | 8.0 | 2504 | 0.1746 | 0.8783 | 0.9167 | 0.8971 | 0.9789 |
| 0.1005 | 9.0 | 2817 | 0.1720 | 0.8849 | 0.9187 | 0.9015 | 0.9798 |
| 0.1106 | 10.0 | 3130 | 0.1723 | 0.8845 | 0.9189 | 0.9014 | 0.9795 |
Framework versions
- Transformers 5.16.1
- Pytorch 2.11.0+cu128
- Datasets 4.8.5
- Tokenizers 0.23.1
- Downloads last month
- 7
Model tree for Lareton/bge-small-ner
Base model
BAAI/bge-small-en-v1.5