Instructions to use alekssssaaaa/ner-bge-small-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alekssssaaaa/ner-bge-small-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="alekssssaaaa/ner-bge-small-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("alekssssaaaa/ner-bge-small-en") model = AutoModelForTokenClassification.from_pretrained("alekssssaaaa/ner-bge-small-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ner-bge-small-en
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.1055
- Precision: 0.9036
- Recall: 0.9280
- F1: 0.9156
- 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 with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.0798 | 1.0 | 625 | 0.1090 | 0.8245 | 0.9039 | 0.8624 | 0.9726 |
| 0.0594 | 2.0 | 1250 | 0.0892 | 0.8833 | 0.9091 | 0.8960 | 0.9793 |
| 0.0674 | 3.0 | 1875 | 0.0841 | 0.8677 | 0.9118 | 0.8892 | 0.9784 |
| 0.0335 | 4.0 | 2500 | 0.0823 | 0.8913 | 0.9207 | 0.9058 | 0.9814 |
| 0.0357 | 5.0 | 3125 | 0.0893 | 0.8929 | 0.9229 | 0.9076 | 0.9814 |
| 0.0371 | 6.0 | 3750 | 0.0923 | 0.8931 | 0.9211 | 0.9069 | 0.9815 |
| 0.0327 | 7.0 | 4375 | 0.0954 | 0.8971 | 0.9260 | 0.9113 | 0.9818 |
| 0.0204 | 8.0 | 5000 | 0.1027 | 0.9034 | 0.9239 | 0.9136 | 0.9822 |
| 0.0162 | 9.0 | 5625 | 0.1040 | 0.9023 | 0.9280 | 0.9150 | 0.9824 |
| 0.0205 | 10.0 | 6250 | 0.1055 | 0.9036 | 0.9280 | 0.9156 | 0.9824 |
Framework versions
- Transformers 4.53.3
- Pytorch 2.6.0+cu124
- Datasets 4.1.1
- Tokenizers 0.21.2
- Downloads last month
- 4
Model tree for alekssssaaaa/ner-bge-small-en
Base model
BAAI/bge-small-en-v1.5