Token Classification
Transformers
PyTorch
TensorBoard
Safetensors
bert
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run Kriyans/Bert-NER on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Kriyans/Bert-NER. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Kriyans/Bert-NER on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Kriyans/Bert-NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kriyans/Bert-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Kriyans/Bert-NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Kriyans/Bert-NER") model = AutoModelForTokenClassification.from_pretrained("Kriyans/Bert-NER", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files24 unmodified lines252627282930313233343536373839403 unmodified lines444546474849505152535412 unmodified lines676869707172737475767778798081828384858624 unmodified linesmetrics:- name: Precisiontype: precisionvalue: 0.9610619087637641- name: Recalltype: recallvalue: 0.927775004160426- name: F1type: f1value: 0.9441251495041227- name: Accuracytype: accuracyvalue: 0.9654874318393404---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the ner dataset.It achieves the following results on the evaluation set:- Loss: 0.0821- Precision: 0.9611- Recall: 0.9278- F1: 0.9441- Accuracy: 0.9655## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 2### Training results| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|| 0.0979 | 1.0 | 875 | 0.0852 | 0.9602 | 0.9262 | 0.9429 | 0.9648 || 0.0549 | 2.0 | 1750 | 0.0821 | 0.9611 | 0.9278 | 0.9441 | 0.9655 |### Framework versions24 unmodified lines252627282930313233343536373839403 unmodified lines444546474849505152535412 unmodified lines676869707172737475767778798081828384858687888924 unmodified linesmetrics:- name: Precisiontype: precisionvalue: 0.9825882454474842- name: Recalltype: recallvalue: 0.9473498086204027- name: F1type: f1value: 0.9646473204829485- name: Accuracytype: accuracyvalue: 0.9779358957308153---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the ner dataset.It achieves the following results on the evaluation set:- Loss: 0.0525- Precision: 0.9826- Recall: 0.9473- F1: 0.9646- Accuracy: 0.9779## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 16- eval_batch_size: 16- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 5### Training results| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|| 0.0568 | 1.0 | 875 | 0.0813 | 0.9641 | 0.9244 | 0.9438 | 0.9655 || 0.0524 | 2.0 | 1750 | 0.0784 | 0.9619 | 0.9283 | 0.9448 | 0.9660 || 0.0481 | 3.0 | 2625 | 0.0719 | 0.9684 | 0.9301 | 0.9489 | 0.9685 || 0.0449 | 4.0 | 3500 | 0.0621 | 0.9736 | 0.9428 | 0.9579 | 0.9738 || 0.0384 | 5.0 | 4375 | 0.0525 | 0.9826 | 0.9473 | 0.9646 | 0.9779 |### Framework versions
README.md+16-13