Organisation card
Browse files
README.md
CHANGED
|
@@ -1,10 +1,48 @@
|
|
| 1 |
---
|
| 2 |
title: README
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
title: README
|
| 3 |
+
emoji: 馃彴
|
| 4 |
+
colorFrom: yellow
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
<p align="center">
|
| 11 |
+
<img src="https://huggingface.co/gantrly/fortress-xs/resolve/main/assets/fortress-speed.svg" alt="Fortress-XS: 66% average recall on 9 held-out attack families at 1% false positives, 183 ms on a CPU; PIGuard 44% and ProtectAI v2 29% at 1,151 ms" width="680">
|
| 12 |
+
</p>
|
| 13 |
+
|
| 14 |
+
# Gantrly
|
| 15 |
+
|
| 16 |
+
Open-source tools for teams that build. On Hugging Face, we publish the models behind
|
| 17 |
+
**[Mobius Guard](https://github.com/gantrly/mobius-guard)**, an open-source firewall for LLM
|
| 18 |
+
apps.
|
| 19 |
+
|
| 20 |
+
### 馃彴 Fortress-XS: prompt-injection and harmful-request detection on a CPU
|
| 21 |
+
|
| 22 |
+
| | |
|
| 23 |
+
|---|---|
|
| 24 |
+
| **Model** | [gantrly/fortress-xs](https://huggingface.co/gantrly/fortress-xs): 81 MB INT8 ONNX, two outputs (attack, harmful), Apache-2.0 |
|
| 25 |
+
| **Try it** | [Demo](https://huggingface.co/spaces/gantrly/fortress-xs): the model runs in your browser, so your text never leaves the page |
|
| 26 |
+
| **Speed** | 36 ms at 128 tokens, 183 ms at 512 on 4 CPU threads; no GPU, no torch |
|
| 27 |
+
| **Held-out results** | 66% of attacks caught on average over 9 test families no compared detector trained on, at 1% false positives, against 44% for PIGuard and 29% for ProtectAI v2 |
|
| 28 |
+
| **Use it** | `pip install "mobiusguard[onnx]"`, then `classifier = "fortress-xs"` |
|
| 29 |
+
|
| 30 |
+
### How we publish
|
| 31 |
+
|
| 32 |
+
- **Held-out numbers only.**
|
| 33 |
+
- Every result is on test sets the model never saw, at a fixed false-positive rate on
|
| 34 |
+
ordinary messages, next to other detectors scored the same way.
|
| 35 |
+
- Weak spots are published with the model.
|
| 36 |
+
- **Licensed data only.** Every training source is listed with its licence and attribution.
|
| 37 |
+
- **Pinned and reproducible.** Mobius Guard loads each model at a fixed commit, so an update
|
| 38 |
+
never changes what an installed version does. The training and evaluation code is open.
|
| 39 |
+
|
| 40 |
+
### Links
|
| 41 |
+
|
| 42 |
+
[Mobius Guard on GitHub](https://github.com/gantrly/mobius-guard) 路
|
| 43 |
+
[PyPI](https://pypi.org/project/mobiusguard/) 路
|
| 44 |
+
[Docs](https://github.com/gantrly/mobius-guard/tree/main/docs) 路
|
| 45 |
+
[Results](https://github.com/gantrly/mobius-guard/tree/main/docs/results) 路
|
| 46 |
+
[Discussions](https://github.com/gantrly/mobius-guard/discussions) 路
|
| 47 |
+
[Report a bypass privately](https://github.com/gantrly/mobius-guard/blob/main/SECURITY.md) 路
|
| 48 |
+
[Gantrly on GitHub](https://github.com/gantrly)
|