Text Classification
PEFT
Safetensors
English
safety
guardrail
constitutional-classifiers
jailbreak-detection
content-moderation
Instructions to use EuroSafeAI/EuroSafeGuard with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use EuroSafeAI/EuroSafeGuard with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Add full mode (paper's end-to-end configuration) and its per-seed thresholds; fix model card; remove __pycache__
b994f0b verified Download thresholds/full_seed3.json from EuroSafeAI/EuroSafeGuard: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/EuroSafeAI/EuroSafeGuard/resolve/main/thresholds/full_seed3.json
- Command line
-
hf download hf://EuroSafeAI/EuroSafeGuard/thresholds/full_seed3.json
-
curl -L -o full_seed3.json https://huggingface.co/EuroSafeAI/EuroSafeGuard/resolve/main/thresholds/full_seed3.json
1.16 kB
| { | |
| "probe_mu": -6.815694701503735, | |
| "probe_sd": 3.444286874679132, | |
| "gate_mu": 0.03866907581677466, | |
| "gate_sd": 0.13433606451867683, | |
| "exch_mu": 0.02559613844389501, | |
| "exch_sd": 0.090324355434096, | |
| "probe_escalation_z": 1.164447941601081, | |
| "probe_escalation_quantile": 0.9, | |
| "weights": { | |
| "probe": 0.6, | |
| "gate": 0.2, | |
| "exchange": 0.2 | |
| }, | |
| "full_thr": 3.097429574322379, | |
| "calibration": "EuroSafeGuard (Full), the configuration of the paper's end-to-end table. All z-scores use the mean and standard deviation on WildChat-clean (6,853 conversations); the exchange statistics use the exchange classifier's max-head probability on Llama-3-8B-Instruct replies to them. A request is escalated if its probe z exceeds probe_escalation_z (the WildChat-clean 90th percentile); an escalated exchange is blocked if 0.6*probe_z + 0.2*gate_z + 0.2*exchange_z > full_thr. full_thr is the smallest threshold that keeps every benign calibration set under its cap (fit half): WildChat-clean, MMLU, GSM8K, Alpaca, Dolly, OASST 0.5%; XSTest-safe, OR-Bench-80k 2%; OR-Bench-hard 5%; benign rows of styled jailbreak sets 40%. Reproduces scripts/e2e_compose_ext.py.", | |
| "seed": 3 | |
| } |