SalKhan12/prompt-safety-dataset
Viewer • Updated • 230k • 246 • 3
How to use SalKhan12/prompt-safety-model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="SalKhan12/prompt-safety-model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("SalKhan12/prompt-safety-model")
model = AutoModelForSequenceClassification.from_pretrained("SalKhan12/prompt-safety-model")This model is a fine-tuned version of bert-base-uncased on an [SalKhan12/prompt-safety-dataset] 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 |
|---|---|---|---|---|---|---|
| 0.1415 | 1.0 | 3709 | 0.1212 | 0.9560 | 0.9297 | 0.9575 |
| 0.0869 | 2.0 | 7418 | 0.1154 | 0.9644 | 0.9526 | 0.9546 |
| 0.0294 | 3.0 | 11127 | 0.1431 | 0.9648 | 0.9523 | 0.9561 |
Base model
google-bert/bert-base-uncased