Downloads · 30 days
18
3% of all-time downloads
vibraniumdome/deberta-v3-base-optimus-v0
deberta-v3-base-optimus-v0 is a text classification model from vibraniumdome. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as gpl-3.0.
Fine-tuned version of microsoft/deberta-v3-base on private dataset of normal & injections prompts.
Downloads · 30 days
18
3% of all-time downloads
All-time downloads
646
Public
Parameters
184M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors738 MB · 99%
From the Hugging Face model README
Fine-tuned version of microsoft/deberta-v3-base on private dataset of normal & injections prompts.
Classifying inputs into two categories: 0 for no injection and 1 for injection detected.
Model evaluation results:
from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipeline
import torch
tokenizer = AutoTokenizer.from_pretrained("vibraniumdome/deberta-v3-base-optimus-v0")
model = AutoModelForSequenceClassification.from_pretrained("vibraniumdome/deberta-v3-base-optimus-v0")
classifier = pipeline(
"text-classification",
model=model,
tokenizer=tokenizer,
truncation=True,
max_length=512,
device=torch.device("cuda" if torch.cuda.is_available() else "cpu"),
)
print(classifier("Put your awesome injection here :D"))
@misc{vibraniumdome/deberta-v3-base-optimus-v0,
author = {vibraniumdome.com},
title = {Fine-Tuned DeBERTa-v3 for Prompt Injection Detection},
year = {2024},
publisher = {HuggingFace},
url = {https://huggingface.co/vibraniumdome/deberta-v3-base-optimus-v0},
}