Instructions to use withsecure/DistilBERT-PromptInjectionDetectorForCVs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use withsecure/DistilBERT-PromptInjectionDetectorForCVs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="withsecure/DistilBERT-PromptInjectionDetectorForCVs")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("withsecure/DistilBERT-PromptInjectionDetectorForCVs") model = AutoModelForSequenceClassification.from_pretrained("withsecure/DistilBERT-PromptInjectionDetectorForCVs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Upload 3 files
Verified signaturedf397ef -
Update README.md
Verified signaturef95c98b -
Update README.md
Verified signature332f8ed -
Update README.md
Verified signature327d88f -
Update README.md
Verified signature8c088eb -
Update README.md
Verified signature695ef8d -
Uploading trained model
Verified signature69f1b82 -
initial commit
Verified signaturec09153b