NHS TransformersUpdates
Collection
12 items โข Updated
Run intermezzo672/NHS-distilbert-multi 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:
Use HF Jobs to fine-tune https://huggingface.co/intermezzo672/NHS-distilbert-multi. 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.
Use HF Jobs to run batch inference with https://huggingface.co/intermezzo672/NHS-distilbert-multi 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.
How to use intermezzo672/NHS-distilbert-multi with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="intermezzo672/NHS-distilbert-multi") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("intermezzo672/NHS-distilbert-multi")
model = AutoModelForSequenceClassification.from_pretrained("intermezzo672/NHS-distilbert-multi", device_map="auto")# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("intermezzo672/NHS-distilbert-multi")
model = AutoModelForSequenceClassification.from_pretrained("intermezzo672/NHS-distilbert-multi", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.7144 | 1.0 | 397 | 0.7555 | 0.7016 | 0.7157 | 0.7016 | 0.7061 |
| 0.1303 | 2.0 | 794 | 0.7807 | 0.6978 | 0.6991 | 0.6978 | 0.6903 |
| 2.3614 | 3.0 | 1191 | 0.8248 | 0.7142 | 0.7211 | 0.7142 | 0.7170 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="intermezzo672/NHS-distilbert-multi")