Downloads · 30 days
5
23% of all-time downloads
Ak128umar/bert-finetuned-ner-accelerate
bert-finetuned-ner-accelerate is a machine learning model from Ak128umar. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a BERT model fine-tuned for Named Entity Recognition (NER) using the 🤗 Accelerate library for efficient training and evaluation.
Downloads · 30 days
5
23% of all-time downloads
All-time downloads
22
Public
Parameters
108M
862 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
This repository contains a BERT model fine-tuned for Named Entity Recognition (NER) using the 🤗 Accelerate library for efficient training and evaluation.
AdamW from PyTorch with lr=2e-5.num_train_epochs * len(train_dataloader).| Epoch | Precision | Recall | F1 Score | Accuracy |
|---|---|---|---|---|
| 0 | 0.9423 | 0.9239 | 0.9330 | 0.9848 |
| 1 | 0.9487 | 0.9258 | 0.9371 | 0.9862 |
| 2 | 0.9487 | 0.9258 | 0.9371 | 0.9862 |
The metrics are calculated on the evaluation dataset after each epoch.
Load the model and tokenizer using the Hugging Face transformers library:
from transformers import AutoTokenizer, AutoModelForTokenClassification
model_name = "Ak128umar/bert-finetuned-ner-accelerate"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForTokenClassification.from_pretrained(model_name)