Instructions to use Fosfor1618/bge-small-ner-hw2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fosfor1618/bge-small-ner-hw2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Fosfor1618/bge-small-ner-hw2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Fosfor1618/bge-small-ner-hw2") model = AutoModelForTokenClassification.from_pretrained("Fosfor1618/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.0797
- Precision: 0.8956
- Recall: 0.9228
- F1: 0.9090
- Accuracy: 0.9807
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
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.4804 | 1.0 | 626 | 0.1731 | 0.7715 | 0.8280 | 0.7988 | 0.9646 |
| 0.1684 | 2.0 | 1252 | 0.1116 | 0.8571 | 0.8940 | 0.8751 | 0.9765 |
| 0.1174 | 3.0 | 1878 | 0.0922 | 0.8667 | 0.9095 | 0.8876 | 0.9782 |
| 0.0676 | 4.0 | 2504 | 0.0836 | 0.8808 | 0.9174 | 0.8987 | 0.9796 |
| 0.0554 | 5.0 | 3130 | 0.0781 | 0.8987 | 0.9222 | 0.9103 | 0.9817 |
| 0.0458 | 6.0 | 3756 | 0.0796 | 0.8968 | 0.9211 | 0.9088 | 0.9809 |
| 0.0386 | 7.0 | 4382 | 0.0797 | 0.8956 | 0.9228 | 0.9090 | 0.9807 |
Framework versions
- Transformers 4.51.3
- Pytorch 2.11.0+cu128
- Datasets 4.8.5
- Tokenizers 0.21.4
- Downloads last month
- 23
Model tree for Fosfor1618/bge-small-ner-hw2
Base model
BAAI/bge-small-en-v1.5