The Katanemo Arch-Guard collection is a collection state-of-the-art (SOTA) LLMs specifically designed for jailbreaking detection tasks.
Definition: jailbreaking attempts are malicious prompts designed to alternate the intended behavior of the foundation LLM model of the application. They often violate the safety and security policies of the model.
Arch Guard is a classifier model fine-tuned based on the open source model
Prompt-Guard-86M on a collection of open-source datasets of jailbreaking attemps with an intention to improve
the capability of detecting jailbreaks only.
The cpu model is quantized with OVM, please follow the instruction at
https://github.com/huggingface/optimum-intel to install the package.
1from optimum.intel import OVModelForSequenceClassification
2
3device = "cpu"
4model_name = "katanemolabs/Arch-Guard-cpu"
5guard_mode = OVModelForSequenceClassification.from_pretrained(
6 model_name, device_map=device, low_cpu_mem_usage=True
7)
8tokenizer = AutoTokenizer.from_pretrained(
9 model_name, trust_remote_code=True
10)
11
12
Katanemo Arch-Guard-cpu is distributed under the
Katanemo license.