Instructions to use Koraniel/bge-small-conll2003-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Koraniel/bge-small-conll2003-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Koraniel/bge-small-conll2003-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Koraniel/bge-small-conll2003-ner") model = AutoModelForTokenClassification.from_pretrained("Koraniel/bge-small-conll2003-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bge-small-conll2003-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.0884
- Precision: 0.8733
- Recall: 0.9120
- F1: 0.8922
- 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: 16
- eval_batch_size: 32
- 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: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.4313 | 1.0 | 626 | 0.1746 | 0.7825 | 0.8314 | 0.8062 | 0.9630 |
| 0.1519 | 2.0 | 1252 | 0.1125 | 0.8539 | 0.8925 | 0.8728 | 0.9750 |
| 0.1030 | 3.0 | 1878 | 0.0987 | 0.8514 | 0.9022 | 0.8761 | 0.9768 |
| 0.0807 | 4.0 | 2504 | 0.0903 | 0.8751 | 0.9090 | 0.8917 | 0.9791 |
| 0.0684 | 5.0 | 3130 | 0.0884 | 0.8733 | 0.9120 | 0.8922 | 0.9795 |
Framework versions
- Transformers 5.18.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.23.2
- Downloads last month
- 12
Model tree for Koraniel/bge-small-conll2003-ner
Base model
BAAI/bge-small-en-v1.5