NHS TransformersUpdates
Collection
12 items • Updated
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") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("intermezzo672/NHS-distilbert-multi")
model = AutoModelForSequenceClassification.from_pretrained("intermezzo672/NHS-distilbert-multi")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("intermezzo672/NHS-distilbert-multi")
model = AutoModelForSequenceClassification.from_pretrained("intermezzo672/NHS-distilbert-multi")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")