Text Classification
Transformers
Safetensors
modernbert
ai-safety
safeguards
guardrails
text-embeddings-inference
Instructions to use dcarpintero/pangolin-guard-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dcarpintero/pangolin-guard-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dcarpintero/pangolin-guard-base")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dcarpintero/pangolin-guard-base") model = AutoModelForSequenceClassification.from_pretrained("dcarpintero/pangolin-guard-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ model-index:
|
|
| 16 |
|
| 17 |
LLM applications face critical security challenges in form of prompt injections and jailbreaks. This can result in models leaking sensitive data or deviating from their intended behavior. Existing safeguard models are not fully open and have limited context windows (e.g., only 512 tokens in LlamaGuard).
|
| 18 |
|
| 19 |
-
PangolinGuard is a ModernBERT (Base), lightweight model that discriminates malicious prompts.
|
| 20 |
|
| 21 |
🤗 [Tech-Blog](https://huggingface.co/blog/dcarpintero/pangolin-fine-tuning-modern-bert) | [GitHub Repo](https://github.com/dcarpintero/pangolin-guard)
|
| 22 |
|
|
|
|
| 16 |
|
| 17 |
LLM applications face critical security challenges in form of prompt injections and jailbreaks. This can result in models leaking sensitive data or deviating from their intended behavior. Existing safeguard models are not fully open and have limited context windows (e.g., only 512 tokens in LlamaGuard).
|
| 18 |
|
| 19 |
+
PangolinGuard is a ModernBERT (Base), lightweight model that discriminates malicious prompts (i.e. prompt injection attacks).
|
| 20 |
|
| 21 |
🤗 [Tech-Blog](https://huggingface.co/blog/dcarpintero/pangolin-fine-tuning-modern-bert) | [GitHub Repo](https://github.com/dcarpintero/pangolin-guard)
|
| 22 |
|