Instructions to use iamnifer/dl2-hw2-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamnifer/dl2-hw2-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="iamnifer/dl2-hw2-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("iamnifer/dl2-hw2-ner") model = AutoModelForTokenClassification.from_pretrained("iamnifer/dl2-hw2-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
dl2-hw2-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.0870
- Precision: 0.8805
- Recall: 0.9179
- F1: 0.8988
- 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: 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: 6
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| 0.221 | 1.0 | 625 | 0.1778 | 0.7603 | 0.8108 | 0.7848 | 0.9615 |
| 0.1242 | 2.0 | 1250 | 0.1167 | 0.8512 | 0.8888 | 0.8696 | 0.9752 |
| 0.1138 | 3.0 | 1875 | 0.0999 | 0.8501 | 0.9054 | 0.8769 | 0.9758 |
| 0.0654 | 4.0 | 2500 | 0.0902 | 0.8792 | 0.9152 | 0.8968 | 0.9794 |
| 0.0586 | 5.0 | 3125 | 0.0878 | 0.8794 | 0.9169 | 0.8978 | 0.9794 |
| 0.0591 | 6.0 | 3750 | 0.0870 | 0.8805 | 0.9179 | 0.8988 | 0.9795 |
Framework versions
- Transformers 4.50.0
- Pytorch 2.11.0+cu128
- Datasets 3.4.1
- Tokenizers 0.21.4
- Downloads last month
- 17
Model tree for iamnifer/dl2-hw2-ner
Base model
BAAI/bge-small-en-v1.5