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")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("withsecure/DistilBERT-PromptInjectionDetectorForCVs") model = AutoModelForSequenceClassification.from_pretrained("withsecure/DistilBERT-PromptInjectionDetectorForCVs") - Notebooks
- Google Colab
- Kaggle
Upload 3 files
Browse files- pytorch_model.bin +1 -1
- training_args.bin +1 -1
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 267855978
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9f4d746c730a2c3e7fea7f434c20f3a77e5626e232b21d5d9f5c39f1c00804f
|
| 3 |
size 267855978
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4344
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4a64b0fba6dbe08363cadeccdbe6afcf0afb89c8df0f7a3a8627bd91ab28a43
|
| 3 |
size 4344
|