deberta-v3-base-prompt-injection-v2 โ€” ONNX

ONNX export of protectai/deberta-v3-base-prompt-injection-v2, a prompt injection detection model fine-tuned on DeBERTa-v3-base to detect prompt injections and jailbreak attempts.

Mirrored for use with inference4j, an inference-only AI library for Java.

Original Source

Usage with inference4j

try (PromptInjectionDetector guard = DebertaPromptInjectionDetector.builder().build()) {
    InjectionCheck check = guard.check(userInput);
}

Model Details

Property Value
Architecture DeBERTa-v3-base (model_type: deberta-v2)
Task Text classification (prompt injection detection)
Classes 0: SAFE, 1: INJECTION
Max sequence length 512
Vocabulary size 128,100
Original framework PyTorch (Transformers)

License

This model is licensed under the Apache License 2.0. Original model by Protect AI.

Downloads last month
22
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support