Text Classification
Transformers
Safetensors
deberta-v2
agents
agent-safety
tool-use
prompt-injection
deberta-v3
text-embeddings-inference
Instructions to use kontext-security/Merlin with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kontext-security/Merlin with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kontext-security/Merlin")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("kontext-security/Merlin") model = AutoModelForSequenceClassification.from_pretrained("kontext-security/Merlin", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Credit TS-Bench (Apache-2.0) in Data and license
Browse files
README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
license: other
|
| 3 |
license_name: merlin-research-release
|
| 4 |
base_model: microsoft/deberta-v3-xsmall
|
|
|
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
pipeline_tag: text-classification
|
| 7 |
tags:
|
|
@@ -90,9 +92,13 @@ moderator, or outside the documented input representation without evaluation.
|
|
| 90 |
|
| 91 |
## Data and license
|
| 92 |
|
| 93 |
-
The base model is MIT licensed. Merlin was
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
|
|
|
| 2 |
license: other
|
| 3 |
license_name: merlin-research-release
|
| 4 |
base_model: microsoft/deberta-v3-xsmall
|
| 5 |
+
datasets:
|
| 6 |
+
- MurrayTom/TS-Bench
|
| 7 |
library_name: transformers
|
| 8 |
pipeline_tag: text-classification
|
| 9 |
tags:
|
|
|
|
| 92 |
|
| 93 |
## Data and license
|
| 94 |
|
| 95 |
+
The base model, `microsoft/deberta-v3-xsmall`, is MIT licensed. Merlin was
|
| 96 |
+
fine-tuned on TS-Bench, introduced in *ToolSafe: Enhancing Tool Invocation
|
| 97 |
+
Safety of LLM-based Agents via Proactive Step-level Guardrail and Feedback*
|
| 98 |
+
(Mou et al., 2026). TS-Bench is published under Apache-2.0 at
|
| 99 |
+
<https://huggingface.co/datasets/MurrayTom/TS-Bench>; its training data is
|
| 100 |
+
derived from AgentAlign (Apache-2.0) and ASB (MIT). No raw TS-Bench examples
|
| 101 |
+
are mirrored here. The checkpoint is released under the
|
| 102 |
+
`merlin-research-release` terms. Reference code at
|
| 103 |
+
<https://github.com/kontext-security/merlin> is Apache-2.0.
|
| 104 |
|