Text Classification
Transformers
ONNX
Safetensors
modernbert
prompt-injection
jailbreak-detection
llm-security
ai-agents
guardrails
onnxruntime
mcp
text-embeddings-inference
Instructions to use usezn/Galvanize-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usezn/Galvanize-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="usezn/Galvanize-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("usezn/Galvanize-2") model = AutoModelForSequenceClassification.from_pretrained("usezn/Galvanize-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Card: Galvanize 2 is in production in the usezn.com API since 2026-10-12
Browse files
README.md
CHANGED
|
@@ -28,7 +28,7 @@ tags:
|
|
| 28 |
|
| 29 |

|
| 30 |
|
| 31 |
-
Galvanize 2 is a binary classifier that scores a piece of text for **prompt injection**: text that tries to change what an AI model or agent does, against the instructions of its developer or user. It
|
| 32 |
|
| 33 |
- **Base model:** fine-tuned from [Horizon-Labs/prompt-injection-guard-small](https://huggingface.co/Horizon-Labs/prompt-injection-guard-small) (Apache-2.0), itself built on [jhu-clsp/mmBERT-small](https://huggingface.co/jhu-clsp/mmBERT-small) (MIT).
|
| 34 |
- **Size:** about 141M parameters. Multilingual.
|
|
|
|
| 28 |
|
| 29 |

|
| 30 |
|
| 31 |
+
Galvanize 2 is a binary classifier that scores a piece of text for **prompt injection**: text that tries to change what an AI model or agent does, against the instructions of its developer or user. It has been in production in the usezn.com API since 2026-10-12 (12:22 UTC). It is also the model behind the cloud check of [zn-gate](https://github.com/usezn/zn), the open-source local security layer for AI coding agents.
|
| 32 |
|
| 33 |
- **Base model:** fine-tuned from [Horizon-Labs/prompt-injection-guard-small](https://huggingface.co/Horizon-Labs/prompt-injection-guard-small) (Apache-2.0), itself built on [jhu-clsp/mmBERT-small](https://huggingface.co/jhu-clsp/mmBERT-small) (MIT).
|
| 34 |
- **Size:** about 141M parameters. Multilingual.
|