{"id":"llama-doorman-22m","slug":"llama-doorman-22m","name":"Llama-Doorman-22M","orgId":"pinata","family":"llama-doorman-22m","releaseDate":null,"availability":"ga","openWeights":true,"license":"Llama 4 Community License (\"Built with Llama\")","paramsTotal":null,"paramsSource":null,"contextWindow":null,"knowledgeCutoff":null,"modelCardUrl":"https://pinata.cloud/blog/how-we-trained-a-small-model-to-tell-a-prompt-injection-from-a-quote/","hfRepo":null,"modalities":["text"],"aliases":["Llama-Doorman-22M","llama-doorman-22m","PinataCloud/Llama-Doorman-22M","pinatacloud/llama-doorman-22m","doorman-22m","Doorman-22M","pinata doorman"],"aliasNote":null,"origin":"tracked","tracked":{"trackedSince":"2026-10-23","announced":"2026-10-20","blurb":"Pinata's small prompt-injection classifier for AI agent tool output (files, web pages, shell output, emails, tickets, MCP results). It is meant to tell a live instruction aimed at an agent apart from text that only quotes, documents or tests one. Fine-tuned from Meta's Llama Prompt Guard 2 22M and shipped as one int8 ONNX file that runs on a laptop CPU; it powers the on-device injection check in Pinata's open-source Doorman app.","api":"none","openWeights":"yes","params":{"text":"70.8M total (21.4M transformer + 49.4M embeddings); Pinata calls it a 22M-parameter model","source":"Pinata's Hugging Face model card"},"facts":[{"label":"Task","value":"Prompt-injection detection on agent tool output; two logits, index 1 = attack, with calibration folded into the head"},{"label":"Base model","value":"Meta's Llama Prompt Guard 2 (22M), fine-tuned; DeBERTa-v2 sequence classifier with the stock Prompt Guard 2 tokenizer"},{"label":"Format","value":"One int8 per-channel ONNX file, 87.3 MB; runs with onnxruntime (Python, Node) or onnxruntime-web (WASM)"},{"label":"Runs on","value":"On-device on a CPU; no GPU or API key needed"},{"label":"Weights","value":"Hugging Face (PinataCloud/Llama-Doorman-22M)"},{"label":"License","value":"Llama 4 Community License (\"Built with Llama\")"},{"label":"Used in","value":"Doorman, Pinata's open-source (Apache 2.0) desktop app that monitors local coding agents such as Claude Code, Codex and Cursor"},{"label":"Training data","value":"Public, licence-checked sets (including microsoft/BIPIA, deepset/prompt-injections, Lakera/gandalf_ignore_instructions) plus files from security repositories; English-centric"}],"claims":["Lab claim: as a stand-down filter it clears 97.4% of keyword-rule false alarms on template-style tool output and 88.4% on a general public mix, against 2.6% for stock Prompt Guard 2 22M.","Lab claim: it catches 66% (1,624 of 2,460) of attacks the keyword rules missed, with 0.09% false alarms (3 of 3,512) on clean text.","Lab claim: in Pinata's 14-model comparison it caught 79% of missed attacks at a 0.4% false-alarm rate, against 37.6% for GPT-6.1 Sol and 31-32% for Claude Opus 5.5; Pinata notes the LLMs got one zero-shot prompt while this model was trained for the task.","Lab claim: about 4% of held-out disguised attacks still score as harmless (4.4% of 450), so Pinata says to use it on top of deterministic detectors, not instead of them.","Lab claim: about 0.24 s per check on a laptop CPU."],"sources":[{"kind":"lab","title":"How we trained a small model to tell a prompt injection from a quote (Pinata blog)","url":"https://pinata.cloud/blog/how-we-trained-a-small-model-to-tell-a-prompt-injection-from-a-quote/","date":"2026-10-20"},{"kind":"repo","title":"PinataCloud/Llama-Doorman-22M model card (Hugging Face)","url":"https://huggingface.co/PinataCloud/Llama-Doorman-22M"},{"kind":"lab","title":"Introducing Doorman (Pinata blog)","url":"https://pinata.cloud/blog/introducing-doorman-bring-security-to-where-your-agents-already-work/","date":"2026-10-20"},{"kind":"repo","title":"PinataCloud/doorman app source (GitHub)","url":"https://github.com/PinataCloud/doorman"},{"kind":"lab","title":"Pinata announcement on X","url":"https://x.com/pinatacloud/status/2113340031246954943","date":"2026-10-22"}],"firstBenchmark":null},"organization":{"id":"pinata","name":"Pinata","slug":"pinata","country":null,"url":"https://pinata.cloud","color":"#11110F","mark":"P"},"price":null,"answer":{"word":"Pending benchmarks.","scope":"Announced Oct 20, 2026; no independent results yet.","lead":"As of Nov 25, 2026, Llama-Doorman-22M is pending benchmarks on isitsota: announced Oct 20, 2026, with no independent results on the boards we track yet.","confidence":"low"},"status":"PENDING_BENCHMARKS","verdicts":[]}