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
File size: 3,002 Bytes
53a0f1b 965d5cb 53a0f1b 965d5cb 53a0f1b 965d5cb 53a0f1b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | ---
library_name: transformers
license: apache-2.0
base_model: distilbert/distilbert-base-cased
tags:
- generated_from_trainer
model-index:
- name: distilbert-ner-query
results: []
---
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
should 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.0852
- Token Accuracy: 0.9823
- Token Macro F1: 0.9301
- Entity Precision: 0.8311
- Entity Recall: 0.8578
- Entity F1: 0.8442
## 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: 10.0
### Training results
| Training Loss | Epoch | Step | Validation Loss | Token Accuracy | Token Macro F1 | Entity Precision | Entity Recall | Entity F1 |
|:-------------:|:-----:|:----:|:---------------:|:--------------:|:--------------:|:----------------:|:-------------:|:---------:|
| 0.1458 | 1.0 | 74 | 0.0971 | 0.9647 | 0.8511 | 0.6211 | 0.7294 | 0.6709 |
| 0.0537 | 2.0 | 148 | 0.0793 | 0.9766 | 0.9038 | 0.8143 | 0.7844 | 0.7991 |
| 0.0364 | 3.0 | 222 | 0.0651 | 0.9795 | 0.9188 | 0.8108 | 0.8257 | 0.8182 |
| 0.0255 | 4.0 | 296 | 0.0814 | 0.9795 | 0.9173 | 0.8227 | 0.8303 | 0.8265 |
| 0.0115 | 5.0 | 370 | 0.0793 | 0.9812 | 0.9260 | 0.8296 | 0.8486 | 0.8390 |
| 0.0098 | 6.0 | 444 | 0.0761 | 0.9810 | 0.9255 | 0.8114 | 0.8486 | 0.8296 |
| 0.0043 | 7.0 | 518 | 0.0786 | 0.9817 | 0.9289 | 0.8158 | 0.8532 | 0.8341 |
| 0.0054 | 8.0 | 592 | 0.0790 | 0.9823 | 0.9308 | 0.8166 | 0.8578 | 0.8367 |
| 0.0036 | 9.0 | 666 | 0.0852 | 0.9823 | 0.9301 | 0.8311 | 0.8578 | 0.8442 |
| 0.0051 | 10.0 | 740 | 0.0856 | 0.9823 | 0.9301 | 0.8311 | 0.8578 | 0.8442 |
### Framework versions
- Transformers 4.56.0
- Pytorch 2.14.1+cu130
- Datasets 5.0.1
- Tokenizers 0.22.2
|