Run this model with HF Jobs
Run dslim/distilbert-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/dslim/distilbert-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/dslim/distilbert-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 dslim/distilbert-NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dslim/distilbert-NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="dslim/distilbert-NER")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("dslim/distilbert-NER") model = AutoModelForTokenClassification.from_pretrained("dslim/distilbert-NER", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (10)
- README.mdAdded+68
- config.jsonAdded+47
- model.safetensorsAdded+3
- runs/Jan25_20-44-33_2320f22f76d4/events.out.tfevents.1706215489.2320f22f76d4.240.0Added+3
- runs/Jan25_20-44-33_2320f22f76d4/events.out.tfevents.1706216274.2320f22f76d4.240.1Added+3
- special_tokens_map.jsonAdded+7
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+55
- training_args.binAdded+3
- vocab.txtAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768---license: apache-2.0base_model: distilbert-base-casedtags:- generated_from_trainermetrics:- precision- recall- f1- accuracymodel-index:- name: distilbert-NER results: []---
<!-- 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. -->
# distilbert-NER
This model is a fine-tuned version of [distilbert-base-cased](https://huggingface.co/distilbert-base-cased) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.0710- Precision: 0.9202- Recall: 0.9232- F1: 0.9217- Accuracy: 0.9810
## 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: 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.2748 | 1.0 | 878 | 0.0959 | 0.8886 | 0.8976 | 0.8931 | 0.9739 || 0.0635 | 2.0 | 1756 | 0.0721 | 0.9199 | 0.9228 | 0.9213 | 0.9805 || 0.0411 | 3.0 | 2634 | 0.0710 | 0.9202 | 0.9232 | 0.9217 | 0.9810 |
### Framework versions
- Transformers 4.35.2- Pytorch 2.1.0+cu121- Datasets 2.16.1- Tokenizers 0.15.11234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "_name_or_path": "distilbert-base-cased", "activation": "gelu", "architectures": [ "DistilBertForTokenClassification" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "id2label": { "0": "LABEL_0", "1": "LABEL_1", "2": "LABEL_2", "3": "LABEL_3", "4": "LABEL_4", "5": "LABEL_5", "6": "LABEL_6", "7": "LABEL_7", "8": "LABEL_8" }, "initializer_range": 0.02, "label2id": { "LABEL_0": 0, "LABEL_1": 1, "LABEL_2": 2, "LABEL_3": 3, "LABEL_4": 4, "LABEL_5": 5, "LABEL_6": 6, "LABEL_7": 7, "LABEL_8": 8 }, "max_position_embeddings": 512, "model_type": "distilbert", "n_heads": 12, "n_layers": 6, "output_past": true, "pad_token_id": 0, "qa_dropout": 0.1, "seq_classif_dropout": 0.2, "sinusoidal_pos_embds": false, "tie_weights_": true, "torch_dtype": "float32", "transformers_version": "4.35.2", "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:235ecd699f650ca36513b122d11ce5a80339be1388f06c33c2278368b99914e1size 260803668123version https://git-lfs.github.com/spec/v1oid sha256:2c1042dee9e6154ca224d114e4c88cd8c9e0607b56efc3e14110a8260b40cc90size 7044123version https://git-lfs.github.com/spec/v1oid sha256:7cfcd444853cab1e03a06950b4c7f27b38881227609b0dca1cbe2fd7db6c0483size 5601234567{ "cls_token": "[CLS]", "mask_token": "[MASK]", "pad_token": "[PAD]", "sep_token": "[SEP]", "unk_token": "[UNK]"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ "added_tokens_decoder": { "0": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "100": { "content": "[UNK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "101": { "content": "[CLS]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "102": { "content": "[SEP]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "103": { "content": "[MASK]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "clean_up_tokenization_spaces": true, "cls_token": "[CLS]", "do_lower_case": false, "mask_token": "[MASK]", "model_max_length": 512, "pad_token": "[PAD]", "sep_token": "[SEP]", "strip_accents": null, "tokenize_chinese_chars": true, "tokenizer_class": "DistilBertTokenizer", "unk_token": "[UNK]"}123version https://git-lfs.github.com/spec/v1oid sha256:2fea728bc1262878cb9e5fec0154073ab508564d4c470a6ad72082a3f706fe4bsize 4536README.mdAdded+68
config.jsonAdded+47
model.safetensorsAdded+3
runs/Jan25_20-44-33_2320f22f76d4/events.out.tfevents.1706215489.2320f22f76d4.240.0Added+3
runs/Jan25_20-44-33_2320f22f76d4/events.out.tfevents.1706216274.2320f22f76d4.240.1Added+3
special_tokens_map.jsonAdded+7
tokenizer.jsonAdded
tokenizer_config.jsonAdded+55
training_args.binAdded+3
vocab.txtAdded