Run this model with HF Jobs
Run AhRoleo/distilbert-ner-query 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/AhRoleo/distilbert-ner-query. 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/AhRoleo/distilbert-ner-query 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 AhRoleo/distilbert-ner-query with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AhRoleo/distilbert-ner-query with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="AhRoleo/distilbert-ner-query")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("AhRoleo/distilbert-ner-query") model = AutoModelForTokenClassification.from_pretrained("AhRoleo/distilbert-ner-query", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse filesFiles changed (2)
- README.mdAdded+67
- model.safetensors+1-1
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667---library_name: transformerslicense: apache-2.0base_model: distilbert/distilbert-base-casedtags:- generated_from_trainermodel-index:- name: distilbert-ner-query 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-query
This model is a fine-tuned version of [distilbert/distilbert-base-cased](https://huggingface.co/distilbert/distilbert-base-cased) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.0595- Token Accuracy: 0.9795- Token Macro F1: 0.9201- Entity Precision: 0.7885- Entity Recall: 0.8211- Entity F1: 0.8045
## 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: 32- eval_batch_size: 32- seed: 42- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- num_epochs: 5.0
### Training results
| Training Loss | Epoch | Step | Validation Loss | Token Accuracy | Token Macro F1 | Entity Precision | Entity Recall | Entity F1 ||:-------------:|:-----:|:----:|:---------------:|:--------------:|:--------------:|:----------------:|:-------------:|:---------:|| 0.1539 | 1.0 | 74 | 0.0982 | 0.9636 | 0.8443 | 0.6453 | 0.6927 | 0.6681 || 0.0563 | 2.0 | 148 | 0.0721 | 0.9756 | 0.8993 | 0.8098 | 0.7615 | 0.7849 || 0.0427 | 3.0 | 222 | 0.0595 | 0.9795 | 0.9201 | 0.7885 | 0.8211 | 0.8045 || 0.0275 | 4.0 | 296 | 0.0610 | 0.9793 | 0.9199 | 0.7739 | 0.8165 | 0.7946 || 0.0175 | 5.0 | 370 | 0.0600 | 0.9791 | 0.9193 | 0.7763 | 0.8119 | 0.7937 |
### Framework versions
- Transformers 4.56.0- Pytorch 2.14.1+cu130- Datasets 5.0.1- Tokenizers 0.22.2123version https://git-lfs.github.com/spec/v1oid sha256:465b7297296c510fa19d68569197b4219d4e2c909bac60f88ee6d466ef6828f5size 260785212123version https://git-lfs.github.com/spec/v1oid sha256:1d4e7ef8105435f642351243e03fa6d2c9753a0a4a7ae627166a16ba98e6a024size 260785212
README.mdAdded+67
model.safetensors+1-1