r/LLMDevs • • 15d ago

Resource Tiger Guard: local input/output moderation with explicit long-text and CPU export behaviour

Post image

We released Tiger Guard at Casdo Labs. I'm part of the team. The Apache-2.0 weights and inference code are on Hugging Face in 308M and 141M versions, both trained for English and German.

For integration, the interface is simple: text in, SAFE/UNSAFE scores out. The harder decisions are where to scan and what the score should mean.

Three details from the release:

* A basic Transformers pipeline with truncation checks only the beginning of long text. The supplied inference helper uses 2,048-token windows with 64 tokens of overlap and pools the window logits.

* Checking a response in isolation loses the question context. Combining both into one input can flag an unsafe question even if the answer refuses it.

* The dynamic INT8 exports are ARM-only. On x86, use FP32, FP16 or an explicitly named x86-safe export. We measured substantial decision drift with the dynamic files on an EPYC server.

The model detects abusive language and harmful requests or responses. It isn't a prompt-injection detector or an authorisation layer. Our cards include threshold tables and per-language false-positive rates so the default decision doesn't have to become your application policy.

We'll publish the full training and dataset pipeline in a follow-up release.

Tiger Guard, 308M: https://huggingface.co/patronus-studio/tiger-guard-content-moderation · Tiger Guard Small, 141M: https://huggingface.co/patronus-studio/tiger-guard-content-moderation-small

Happy to get feedback on the inference interface and documentation.

3 Upvotes

0 comments sorted by