Downloads · 30 days
11
3% of all-time downloads
vibraniumdome/deberta-v3-base-optimus-v0-onnx
deberta-v3-base-optimus-v0-onnx 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
11
3% of all-time downloads
All-time downloads
335
Public
Repo size
2.2 GB
Likes
0
Public
Click a slice to open those files.
.onnx739 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 optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import pipeline
from transformers import AutoTokenizer
pipeline_kwargs={
"return_token_type_ids": False,
"max_length": 512,
"truncation": True,
}
tokenizer = AutoTokenizer.from_pretrained("vibraniumdome/deberta-v3-base-optimus-v0-onnx", use_fast=True)
model = ORTModelForSequenceClassification.from_pretrained("vibraniumdome/deberta-v3-base-optimus-v0-onnx")
classifier = pipeline(
"text-classification",
model=model,
tokenizer=tokenizer,
**pipeline_kwargs,
)
print(classifier("Put your awesome injection here :D"))
@misc{vibraniumdome/deberta-v3-base-optimus-v0-onnx,
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-onnx},
}