Downloads · 30 days
0
rajkr/malicious-prompt-detector-qwen0.5b
malicious-prompt-detector-qwen0.5b is a machine learning model from rajkr. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.
Downloads · 30 days
0
Access
Public
Updated May 5, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py4.7 KB · 71%
From the Hugging Face model README
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "rajkr/malicious-prompt-detector-qwen0.5b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.