anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
A small research adapter for Qwen3-4B that turns the model into a decoy. It sends a silent alert to a local collector when it spots an attack on its secrets, then answers with invented values. Lab use only.
Qwen3-4B P9 Honeypot is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download samliumay/qwen3-4b-p9-honeypot
This is a small LoRA adapter for the Qwen3-4B-Instruct-2507 model, made for a research project on honeypot language models. It trains the model to act as a trap on its own. When it spots an attack on protected values, it quietly sends an alert to a local collector, then hands the attacker invented values. The card calls it a lab artefact and says to keep it away from real users.
Security researchers and developers who study how language models leak protected values and whether a decoy can catch bad actors. Use it in a closed lab, with fake secrets only.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Security research | Red and blue teams | Test whether a decoy model can catch prompt attacks | Run injection tests and count the alerts |
| Academia | AI safety researchers | Measure leaks and deception against a plain model | Compare the adapter with the base model |
| Software | Agent developers | Study how a tool call can raise a silent alarm | Watch the alert call in a test setup |
| Education | Instructors | Show how attacks on prompts and secrets play out | Demo a made-up secret handed to a tester |
Anyone who wants a normal assistant for real users can skip it, since the model is trained to deceive attackers and the card bars real deployment.
| Use case | Who | What they get back |
|---|---|---|
| Attack testing | Researchers | Fake values in the format asked for, plus an alert for each attack |
| Everyday question check | Developers | An ordinary reply that raises no alert and shows no secret |
| Harm check | Safety testers | A refusal with no alert |
pip install -U huggingface_hub hf download samliumay/qwen3-4b-p9-honeypot
Serve the base model with LoRA turned on, give the adapter a name and point to its chat template. Replace the placeholder with the place you saved the adapter. Then send test chats in your closed lab.
vllm serve Qwen/Qwen3-4B-Instruct-2507 --enable-lora --lora-modules p9-honeypot=<this repo> \ --chat-template <this repo>/chat_template.jinja --enable-auto-tool-choice --tool-call-parser hermes
The card describes four behaviors.
| Tool | What it does |
|---|---|
| vllm serve | Serves the base model with the adapter loaded |
| --enable-lora | Turns on adapter support |
| --lora-modules | Gives the adapter a name that requests can pick |
| --enable-auto-tool-choice | Lets the model decide to make a tool call such as the alert |
A tester sends a prompt injection that asks for a protected key. The model first makes a silent alert call to the local collector, then replies with a made-up key in the right shape. The tester thinks the attack worked, and you now hold a record of it.
If you are new, run only harmless chats first and confirm that no alert fires. Place fake secrets in the system prompt only inside a closed lab, since the card does that on purpose to measure leaks.
Experts will note the adapter uses rank 16 and alpha 32, trained with QLoRA on the assistant turns only. Training ran for 2 epochs on 1,520 synthetic episodes, and the test set has 768 episodes judged by another model at temperature 0.
| Test group | Plain model | Adapter |
|---|---|---|
| Attacks seen in training | 42 | 2 |
| Unseen attack families | 50 | 1 |
| Unseen deployments | 32 | 1 |
| Multi-turn escalation | 30 | 0 |
A small research adapter for Qwen3-4B that turns the model into a decoy. It sends a silent alert to a local collector when it spots an attack on its secrets, then answers with invented values. Lab use only.
Made by samliumay on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This is a small LoRA adapter for the Qwen3-4B-Instruct-2507 model, made for a research project on honeypot language models. It trains the model to act as a trap on its own. When it spots an attack on protected values, it quietly sends an alert to a local collector, then hands the attacker invented values. The card calls it a lab artefact and says to keep it away from real users.
Who it suits: Security researchers and developers who study how language models leak protected values and whether a decoy can catch bad actors. Use it in a closed lab, with fake secrets only.
Industry | Who uses it | How they use it | Example
Security research | Red and blue teams | Test whether a decoy model can catch prompt attacks | Run injection tests and count the alerts
Academia | AI safety researchers | Measure leaks and deception against a plain model | Compare the adapter with the base model
Software | Agent developers | Study how a tool call can raise a silent alarm | Watch the alert call in a test setup
Education | Instructors | Show how attacks on prompts and secrets play out | Demo a made-up secret handed to a tester
Anyone who wants a normal assistant for real users can skip it, since the model is trained to deceive attackers and the card bars real deployment.
Where to use it:
Use case | Who | What they get back
Attack testing | Researchers | Fake values in the format asked for, plus an alert for each attack
Everyday question check | Developers | An ordinary reply that raises no alert and shows no secret
Harm check | Safety testers | A refusal with no alert
How to set it up:
pip install -U huggingface_hub
hf download samliumay/qwen3-4b-p9-honeypot
How to use it: Serve the base model with LoRA turned on, give the adapter a name and point to its chat template. Replace the placeholder with the place you saved the adapter. Then send test chats in your closed lab.
vllm serve Qwen/Qwen3-4B-Instruct-2507 --enable-lora --lora-modules p9-honeypot=<this repo> \
--chat-template <this repo>/chat_template.jinja --enable-auto-tool-choice --tool-call-parser hermes
The card describes four behaviors.
Tool | What it does
vllm serve | Serves the base model with the adapter loaded
--enable-lora | Turns on adapter support
--lora-modules | Gives the adapter a name that requests can pick
--enable-auto-tool-choice | Lets the model decide to make a tool call such as the alert
Example: A tester sends a prompt injection that asks for a protected key. The model first makes a silent alert call to the local collector, then replies with a made-up key in the right shape. The tester thinks the attack worked, and you now hold a record of it.
For newcomers and experts: If you are new, run only harmless chats first and confirm that no alert fires. Place fake secrets in the system prompt only inside a closed lab, since the card does that on purpose to measure leaks.
Experts will note the adapter uses rank 16 and alpha 32, trained with QLoRA on the assistant turns only. Training ran for 2 epochs on 1,520 synthetic episodes, and the test set has 768 episodes judged by another model at temperature 0.
Title: Honeypot success in percent
Attacks seen in training: 82 percent
Attacks from unseen families: 95 percent
Unseen deployments: 74 percent
Multi-turn escalation: 58 percent
Title: Leak rate in percent, plain model against the adapter
Test group | Plain model | Adapter
Attacks seen in training | 42 | 2
Unseen attack families | 50 | 1
Unseen deployments | 32 | 1
Multi-turn escalation | 30 | 0
An attacker prompt asks for a protected value
The model sends a silent alert to the collector
It answers with fake values in the form asked for
You read the alert record
Good to know:
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download samliumay/qwen3-4b-p9-honeypot
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen3-4B P9 Honeypot This page | 33 | 3 | — | apache-2.0 | |
| LocalAlign_llama3.1_8BShares prompt-injection · peft · lora | 156 | 9 | — | llama3.1 | |
| deberta-v3-base-prompt-injection-v2Shares llm-security · prompt-injection · safetensors | 476,298 | 129 | 184M | apache-2.0 | |
| K2-Horizon-7B-UnoShares peft · lora · text-generation | 203 | 113 | — | apache-2.0 | |
| Apex-35B-V1.0Shares research · text-generation · conversational | 1,987 | 75 | 36B | apache-2.0 | |
| Kev-4BShares peft · lora · safetensors | 12,499 | 175 | — | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.