Instructions to use lamnmh05/distil_bert_PHO_NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lamnmh05/distil_bert_PHO_NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="lamnmh05/distil_bert_PHO_NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("lamnmh05/distil_bert_PHO_NER") model = AutoModelForTokenClassification.from_pretrained("lamnmh05/distil_bert_PHO_NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distil_bert_PHO_NER
This model is a fine-tuned version of distilbert/distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.2171
- Precision: 0.7373
- Recall: 0.8014
- F1: 0.7680
- Accuracy: 0.9400
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: 32
- 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
Training results
| Training Loss | Epoch | Step | Accuracy | F1 | Validation Loss | Precision | Recall |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 158 | 0.8781 | 0.5510 | 0.4147 | 0.5370 | 0.5657 |
| No log | 2.0 | 316 | 0.9105 | 0.6602 | 0.3200 | 0.6365 | 0.6857 |
| No log | 3.0 | 474 | 0.2483 | 0.7126 | 0.7733 | 0.7417 | 0.9295 |
| 0.2173 | 4.0 | 632 | 0.2245 | 0.7278 | 0.7978 | 0.7612 | 0.9368 |
| 0.2173 | 5.0 | 790 | 0.2171 | 0.7373 | 0.8014 | 0.7680 | 0.9400 |
Framework versions
- Transformers 4.57.3
- Pytorch 2.9.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 3
Model tree for lamnmh05/distil_bert_PHO_NER
Base model
distilbert/distilbert-base-uncased