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 lines67686970717273747576777879808182838485868724 unmodified linesmetrics:- name: Precisiontype: precisionvalue: 0.963972882815022- name: Recalltype: recallvalue: 0.9317482110168082- name: F1type: f1value: 0.9475866591916392- name: Accuracytype: accuracyvalue: 0.9675355765394335---<!-- 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 [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on the ner dataset.It achieves the following results on the evaluation set:- Loss: 0.0729- Precision: 0.9640- Recall: 0.9317- F1: 0.9476- Accuracy: 0.9675## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 6e-05- train_batch_size: 32- eval_batch_size: 32- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 3### Training results| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|| No log | 1.0 | 438 | 0.0865 | 0.9568 | 0.9243 | 0.9403 | 0.9632 || 0.0768 | 2.0 | 876 | 0.0794 | 0.9635 | 0.9277 | 0.9452 | 0.9662 || 0.0515 | 3.0 | 1314 | 0.0729 | 0.9640 | 0.9317 | 0.9476 | 0.9675 |### Framework versions24 unmodified lines252627282930313233343536373839403 unmodified lines444546474849505152535412 unmodified lines676869707172737475767778798081828384858687888924 unmodified linesmetrics:- name: Precisiontype: precisionvalue: 0.9779481031086752- name: Recalltype: recallvalue: 0.950199700449326- name: F1type: f1value: 0.96387423507069- name: Accuracytype: accuracyvalue: 0.977337411889879---<!-- 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 [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on the ner dataset.It achieves the following results on the evaluation set:- Loss: 0.0518- Precision: 0.9779- Recall: 0.9502- F1: 0.9639- Accuracy: 0.9773## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 1e-05- train_batch_size: 32- eval_batch_size: 32- 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 ||:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|| No log | 1.0 | 438 | 0.0725 | 0.9691 | 0.9325 | 0.9505 | 0.9693 || 0.0435 | 2.0 | 876 | 0.0635 | 0.9687 | 0.9392 | 0.9537 | 0.9711 || 0.039 | 3.0 | 1314 | 0.0569 | 0.9790 | 0.9416 | 0.9599 | 0.9751 || 0.0392 | 4.0 | 1752 | 0.0542 | 0.9744 | 0.9490 | 0.9615 | 0.9758 || 0.0378 | 5.0 | 2190 | 0.0518 | 0.9779 | 0.9502 | 0.9639 | 0.9773 |### Framework versions
README.md+16-14