Run this model with HF Jobs
Run Sharpaxis/BERT-NER-CoNLL 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/Sharpaxis/BERT-NER-CoNLL. 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/Sharpaxis/BERT-NER-CoNLL 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 Sharpaxis/BERT-NER-CoNLL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sharpaxis/BERT-NER-CoNLL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Sharpaxis/BERT-NER-CoNLL")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Sharpaxis/BERT-NER-CoNLL") model = AutoModelForTokenClassification.from_pretrained("Sharpaxis/BERT-NER-CoNLL", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (3)
- README.mdAdded+78
- config.json+5-5
- model.safetensors+2-2
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---library_name: transformerslicense: apache-2.0base_model: bert-base-uncasedtags:- generated_from_trainerdatasets:- conll2003metrics:- f1model-index:- name: BERT-NER-CoNLL results: - task: name: Token Classification type: token-classification dataset: name: conll2003 type: conll2003 config: conll2003 split: test args: conll2003 metrics: - name: F1 type: f1 value: 0.903734876380852---
<!-- 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-NER-CoNLL
This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the conll2003 dataset.It achieves the following results on the evaluation set:- Loss: 0.1199- F1: 0.9037
## 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: 16- eval_batch_size: 16- seed: 42- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss | F1 ||:-------------:|:-----:|:----:|:---------------:|:------:|| 0.1298 | 1.0 | 878 | 0.1098 | 0.8849 || 0.0355 | 2.0 | 1756 | 0.1139 | 0.9012 || 0.0202 | 3.0 | 2634 | 0.1199 | 0.9037 |
### Framework versions
- Transformers 4.47.0- Pytorch 2.5.1+cu121- Datasets 3.2.0- Tokenizers 0.21.0123452 unmodified lines8910111213146 unmodified lines212223242526278 unmodified lines3637383940414243{"_name_or_path": "bert-large-uncased","architectures": ["BertForTokenClassification"],2 unmodified lines"gradient_checkpointing": false,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 1024,"id2label": {"0": "O","1": "B-PER",6 unmodified lines"8": "I-MISC"},"initializer_range": 0.02,"intermediate_size": 4096,"label2id": {"B-LOC": 5,"B-MISC": 7,8 unmodified lines"layer_norm_eps": 1e-12,"max_position_embeddings": 512,"model_type": "bert","num_attention_heads": 16,"num_hidden_layers": 24,"pad_token_id": 0,"position_embedding_type": "absolute","torch_dtype": "float32",123452 unmodified lines8910111213146 unmodified lines212223242526278 unmodified lines3637383940414243{"_name_or_path": "bert-base-uncased","architectures": ["BertForTokenClassification"],2 unmodified lines"gradient_checkpointing": false,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 768,"id2label": {"0": "O","1": "B-PER",6 unmodified lines"8": "I-MISC"},"initializer_range": 0.02,"intermediate_size": 3072,"label2id": {"B-LOC": 5,"B-MISC": 7,8 unmodified lines"layer_norm_eps": 1e-12,"max_position_embeddings": 512,"model_type": "bert","num_attention_heads": 12,"num_hidden_layers": 12,"pad_token_id": 0,"position_embedding_type": "absolute","torch_dtype": "float32",
123version https://git-lfs.github.com/spec/v1oid sha256:4f1aa56528ed4b4845a575d24806836ace270e86df537b76bb0e8677ae5724afsize 1336452868123version https://git-lfs.github.com/spec/v1oid sha256:93adbba002de4da818263e110638eae20bfcc998bc12c7f3874dcaddcd71594dsize 435617620
README.mdAdded+78
config.json+5-5
model.safetensors+2-2