Instructions to use haominglan/PromptSentinel-DeBERTa-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use haominglan/PromptSentinel-DeBERTa-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("protectai/deberta-v3-base-prompt-injection-v2") model = PeftModel.from_pretrained(base_model, "haominglan/PromptSentinel-DeBERTa-LoRA") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!