Run this model with HF Jobs
Run HeitorMatt/bert-finetuned-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/HeitorMatt/bert-finetuned-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/HeitorMatt/bert-finetuned-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 HeitorMatt/bert-finetuned-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HeitorMatt/bert-finetuned-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="HeitorMatt/bert-finetuned-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("HeitorMatt/bert-finetuned-ner") model = AutoModelForTokenClassification.from_pretrained("HeitorMatt/bert-finetuned-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
1064c08
1
Parent(s): 0b69ab0
Training complete
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192---license: apache-2.0base_model: bert-base-casedtags:- generated_from_trainerdatasets:- conll2003metrics:- precision- recall- f1- accuracymodel-index:- name: bert-finetuned-ner results: - task: name: Token Classification type: token-classification dataset: name: conll2003 type: conll2003 config: conll2003 split: validation args: conll2003 metrics: - name: Precision type: precision value: 0.9291714709273596 - name: Recall type: recall value: 0.9493436553349041 - name: F1 type: f1 value: 0.9391492549737784 - name: Accuracy type: accuracy value: 0.9860923058809677---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# bert-finetuned-ner
This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the conll2003 dataset.It achieves the following results on the evaluation set:- Loss: 0.0614- Precision: 0.9292- Recall: 0.9493- F1: 0.9391- Accuracy: 0.9861
## 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: 8- eval_batch_size: 8- 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 ||:-------------:|:-----:|:----:|:---------------:|:---------:|:------:|:------:|:--------:|| 0.0784 | 1.0 | 1756 | 0.0815 | 0.9080 | 0.9307 | 0.9192 | 0.9798 || 0.0371 | 2.0 | 3512 | 0.0606 | 0.9287 | 0.9492 | 0.9388 | 0.9857 || 0.0202 | 3.0 | 5268 | 0.0614 | 0.9292 | 0.9493 | 0.9391 | 0.9861 |
### Framework versions
- Transformers 4.35.0- Pytorch 2.1.0+cu121- Datasets 2.14.6- Tokenizers 0.14.1README.mdAdded+92