Downloads · 30 days
28
28% of all-time downloads
patronus-studio/panther-read-intent-classifier
panther-read-intent-classifier is a text classification model from patronus-studio. Use it when you need a label for a piece of text. The card lists the license as apache-2.0.
Multilingual User-Intent & Request-Routing Classifier for Real-World AI Agent Security
Downloads · 30 days
28
28% of all-time downloads
All-time downloads
99
Public
Parameters
141M
1.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors563 MB · 48%
From the Hugging Face model README
Multilingual User-Intent & Request-Routing Classifier for Real-World AI Agent Security
Read more
Panther Read is a multilingual ModernBERT-based (mmBERT) classifier that detects the operational intent of a request and routes it to the right capability. It is part of the Patronus Protect security stack and is the dedicated single-head counterpart to the routing head of Lion Warden.
The model maps an input text to exactly one class:
| id | label | description |
|---|---|---|
| 0 | benign_conv | Ordinary conversation with no operational request. |
| 1 | code_development_request | A request to write, debug, or reason about code. |
| 2 | data_analytics_request | A request to query, analyze, or visualize data. |
| 3 | office_request | A document / office task (drafting, summarizing, email). |
| 4 | tool_operation_request | A request that intends to operate a tool or run an action. |
Examples:
| Input | Expected class |
|---|---|
| How was your weekend? | benign_conv |
| Write a Python function that merges overlapping intervals | code_development_request |
| Chart the weekly conversion rate from the signups table | data_analytics_request |
| Draft a polite email to the vendor about the invoice | office_request |
| List every file in the reports directory and read summary.txt | tool_operation_request |
Typical downstream uses:
model.safetensors).onnx/onnx_fp16/model_fp16.onnx in this repository.int8, int8_int4_embeddings, fp16) in a separate edge repository.l2/ for efficient local runtime classification.Trained on Patronus' in-house multilingual dataset for this task, built from cleaned real-world sources plus internally generated examples. Real-world sources were judge-cleaned by content (no keyword heuristics) and contaminated rows removed.
To improve robustness the dataset includes modern obfuscation techniques:
All augmentations and regularizers are applied to positive and negative examples alike so the model keys on content rather than surface form.
Held-out test set (n = 1,880), single-label:
| Metric | Score |
|---|---|
| Accuracy | 0.898 |
| F1 (macro) | 0.899 |
| Precision (macro) | 0.902 |
| Recall (macro) | 0.897 |
Per-class F1:
| Class | F1 |
|---|---|
| code_development_request | 0.919 |
| tool_operation_request | 0.918 |
| data_analytics_request | 0.894 |
| benign_conv | 0.889 |
| office_request | 0.876 |
from transformers import pipeline
clf = pipeline("text-classification", model="patronus-studio/panther-read-intent-classifier")
clf("Chart the weekly conversion rate from the signups table")
# -> [{"label": "data_analytics_request", "score": 0.98}]
The FP16 ONNX export lives under onnx/onnx_fp16; the quantized builds (int8, int8_int4_embeddings) live in the separate Panther Read Intent Classifier Edge repository. Apply a
softmax over the logits and take the argmax:
from optimum.onnxruntime import ORTModelForSequenceClassification
from transformers import AutoTokenizer
model_id = "patronus-studio/panther-read-intent-classifier"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = ORTModelForSequenceClassification.from_pretrained(model_id, subfolder="onnx/onnx_fp16", file_name="model_fp16.onnx")
inputs = tokenizer("Chart the weekly conversion rate from the signups table", return_tensors="pt")
logits = model(**inputs).logits.detach().cpu().numpy()[0]
print(model.config.id2label[int(logits.argmax())])
@misc{pantherread2026,
title={Panther Read Intent Classifier: Multilingual Classification for Real-World AI Agent Security},
author={Patronus Protect},
year={2026},
howpublished={\url{https://huggingface.co/patronus-studio/panther-read-intent-classifier}}
}
This model is released under the Apache License 2.0.
A copy of the license is included as LICENSE in this repository.
The model is derived from jhu-clsp/mmBERT-small, which is distributed under the MIT License. The upstream copyright and permission notice are retained; the MIT terms continue to apply to the portions originating from that work.
This model is built to run inside Patronus Ark, Patronus' open-source on-device AI-security scanning library (L1 native rules → L2 NTDB cascade → L3 transformer). Ark is open source: GitHub repository · product page.
Brought to you by Patronus Protect, a local AI firewall that secures every AI interaction, including prompts, tools and documents, before it reaches your models.
Try it for free at patronus.studio.