Instructions to use NickolayS1/bge-small-ner-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NickolayS1/bge-small-ner-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="NickolayS1/bge-small-ner-v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("NickolayS1/bge-small-ner-v2") model = AutoModelForTokenClassification.from_pretrained("NickolayS1/bge-small-ner-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bge-small-ner-v2
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.0794
- Precision: 0.8969
- Recall: 0.9249
- F1: 0.9107
- Accuracy: 0.9819
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: 8
- eval_batch_size: 8
- 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: 6
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.3322 | 1.0 | 1252 | 0.1309 | 0.8312 | 0.8766 | 0.8533 | 0.9720 |
| 0.1116 | 2.0 | 2504 | 0.0924 | 0.8708 | 0.9100 | 0.8900 | 0.9791 |
| 0.0719 | 3.0 | 3756 | 0.0854 | 0.8887 | 0.9122 | 0.9003 | 0.9802 |
| 0.0521 | 4.0 | 5008 | 0.0792 | 0.8899 | 0.9224 | 0.9059 | 0.9811 |
| 0.0428 | 5.0 | 6260 | 0.0801 | 0.8933 | 0.9253 | 0.9090 | 0.9816 |
| 0.0374 | 6.0 | 7512 | 0.0794 | 0.8969 | 0.9249 | 0.9107 | 0.9819 |
Framework versions
- Transformers 5.17.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.23.2
- Downloads last month
- 17
Model tree for NickolayS1/bge-small-ner-v2
Base model
BAAI/bge-small-en-v1.5