Text Classification
Transformers
Safetensors
Laya
MLX
English
layared
guardrails
prompt-injection
hard-negatives
indirect-prompt-injection
trojan-cloaking
jailbreak-detection
ai-safety
modernbert
apple-silicon
Eval Results (legacy)
Instructions to use iamvaar/LAYARED with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iamvaar/LAYARED with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="iamvaar/LAYARED")# pip install -U transformers accelerate # Load model directly from transformers import LayaTypedDecisions model = LayaTypedDecisions.from_pretrained("iamvaar/LAYARED", device_map="auto") - Laya
How to use iamvaar/LAYARED with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- MLX
How to use iamvaar/LAYARED with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download iamvaar/LAYARED --local-dir LAYARED
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download rl_agent_config.json from iamvaar/LAYARED: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/iamvaar/LAYARED/resolve/main/rl_agent_config.json
- Command line
-
hf download hf://iamvaar/LAYARED/rl_agent_config.json
-
curl -L -o rl_agent_config.json https://huggingface.co/iamvaar/LAYARED/resolve/main/rl_agent_config.json
1.04 kB
| { | |
| "encoder": "answerdotai/ModernBERT-large", | |
| "head_layers": 2, | |
| "max_len": 1024, | |
| "head_max_len": 256, | |
| "max_prefixes": 6, | |
| "act_costs": { | |
| "escalate": 0.5 | |
| }, | |
| "cost_wrong_act": 3.0, | |
| "amp_dtype": "bf16", | |
| "model_name": "laya-typed-decisions", | |
| "temperature": [ | |
| 1.0148024559020996, | |
| 1.0374259948730469, | |
| 1.0575125217437744 | |
| ], | |
| "temperature_by_options": { | |
| "choice:3-5": 1.7601518630981445, | |
| "choice:6-10": 1.0000158548355103, | |
| "score:3-5": 1.2514300346374512, | |
| "noul:2": 1.983399510383606, | |
| "choice:11+": 0.10058280825614929, | |
| "choice:2": 1.9063563346862793 | |
| }, | |
| "training": { | |
| "updates": 7313, | |
| "epochs_completed": 1, | |
| "hours": 1.96, | |
| "world_size": 1, | |
| "fine_tuned_from_checkpoint": true | |
| }, | |
| "gradient_checkpointing": true, | |
| "max_tokens_per_batch": 4096, | |
| "fine_tuned": true, | |
| "task": "prompt_injection_guardrail", | |
| "best_val_f1": 0.7564124634188328, | |
| "training_samples": 53579, | |
| "target_distribution": "45% attacks / 55% benign", | |
| "mlx_m4_accelerated": true | |
| } |