Instructions to use leolee99/PIGuard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use leolee99/PIGuard with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="leolee99/PIGuard", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("leolee99/PIGuard", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Initializaiton.
Browse files
README.md
CHANGED
|
@@ -9,6 +9,8 @@ metrics:
|
|
| 9 |
- accuracy
|
| 10 |
library_name: transformers
|
| 11 |
---
|
|
|
|
|
|
|
| 12 |
- Code Repo: https://github.com/leolee99/InjecGuard
|
| 13 |
|
| 14 |
## Abstract
|
|
|
|
| 9 |
- accuracy
|
| 10 |
library_name: transformers
|
| 11 |
---
|
| 12 |
+
- Website: https://injecguard.github.io/
|
| 13 |
+
- Paper: https://arxiv.org/pdf/2410.22770
|
| 14 |
- Code Repo: https://github.com/leolee99/InjecGuard
|
| 15 |
|
| 16 |
## Abstract
|