Run this model with HF Jobs
Run textminr/ner-distilbert 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/textminr/ner-distilbert. 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/textminr/ner-distilbert 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 textminr/ner-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textminr/ner-distilbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="textminr/ner-distilbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("textminr/ner-distilbert") model = AutoModelForTokenClassification.from_pretrained("textminr/ner-distilbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload DistilBertForTokenClassification
Browse filesFiles changed (2)
- config.jsonAdded+35
- model.safetensorsAdded+3
1234567891011121314151617181920212223242526272829303132333435{ "_name_or_path": "distilbert-base-cased", "activation": "gelu", "architectures": [ "DistilBertForTokenClassification" ], "attention_dropout": 0.1, "dim": 768, "dropout": 0.1, "hidden_dim": 3072, "id2label": { "0": "O", "1": "AUTHOR", "2": "DATE" }, "initializer_range": 0.02, "label2id": { "AUTHOR": 1, "DATE": 2, "O": 0 }, "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.37.0.dev0", "vocab_size": 28996}123version https://git-lfs.github.com/spec/v1oid sha256:289f51e79f463214c158ed4e62e01732ffafcad1ae17176ea3dd219132c106f8size 260785212config.jsonAdded+35
model.safetensorsAdded+3