Instructions to use k1ngofdarks/bge-small-ner-hw2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use k1ngofdarks/bge-small-ner-hw2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="k1ngofdarks/bge-small-ner-hw2")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("k1ngofdarks/bge-small-ner-hw2") model = AutoModelForTokenClassification.from_pretrained("k1ngofdarks/bge-small-ner-hw2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bge-small-ner-hw2
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.0908
- Precision: 0.8786
- Recall: 0.9147
- F1: 0.8963
- Accuracy: 0.9792
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: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.2229 | 1.0 | 625 | 0.1801 | 0.7568 | 0.8065 | 0.7808 | 0.9609 |
| 0.127 | 2.0 | 1250 | 0.1189 | 0.8511 | 0.8871 | 0.8687 | 0.9748 |
| 0.1184 | 3.0 | 1875 | 0.1033 | 0.8454 | 0.9015 | 0.8725 | 0.9751 |
| 0.0713 | 4.0 | 2500 | 0.0940 | 0.8754 | 0.9103 | 0.8925 | 0.9787 |
| 0.0661 | 5.0 | 3125 | 0.0908 | 0.8786 | 0.9147 | 0.8963 | 0.9792 |
Framework versions
- Transformers 4.50.0
- Pytorch 2.10.0+cu128
- Datasets 3.4.1
- Tokenizers 0.21.4
- Downloads last month
- 8
Model tree for k1ngofdarks/bge-small-ner-hw2
Base model
BAAI/bge-small-en-v1.5