Views
No views yet
meta-llama/Llama-3.1-8B-Instruct,
trained with DRIP (Defending Prompt Injection via Token-wise Representation
Editing and Residual Fusion).TextTextText-4roles), built for
agentic settings where injections hide inside tool outputs rather than the
user turn. Chat format: system → user → tool (untrusted) → assistant
(the untrusted segment uses Llama's native ipython role).expert_labels,
so the model knows which tokens came from the untrusted tool role.| Base model | meta-llama/Llama-3.1-8B-Instruct |
| Objective | DPO |
| Architecture | DRIP fuse (LlamaForCausalLMDRIP) |
| Delimiter | TextTextText-4roles |
| Training data | datasets/alpaca_injecagent_dpo_combined.json — ~20,162 DPO pairs (~20K clean Alpaca + ~1K InjecAgent tool-call pairs) |
| Epochs | 1 |
⚠️ This checkpoint is not a drop-inAutoModelForCausalLM. DRIP is an architectural modification, and the model is released as a LoRA adapter, so you must merge it with the customLlamaForCausalLMDRIPclass before use.
1git clone https://github.com/lindsey98/PromptInjection
2cd PromptInjection
3bash setup_env.sh && conda activate prompt
4pip install agentdojo==0.1.35
5
6# download + merge the adapter into a full checkpoint
7huggingface-cli download Kelsey98/Llama-3.1-8B-Instruct-TextTextText-4roles-toolcall-drip \
8 --local-dir Llama-3.1-8B-Instruct-TextTextText-4roles-toolcall-drip
9CUDA_VISIBLE_DEVICES=0 python -m training.merge_lora \
10 --adapter_path Llama-3.1-8B-Instruct-TextTextText-4roles-toolcall-drip/ \
11 --output_path Llama-3.1-8B-Instruct-TextTextText-4roles-toolcall-drip-merged/ \
12 --base_model_path meta-llama/Llama-3.1-8B-Instruct \
13 --customized_model_class LlamaForCausalLMDRIPfuse) mode, pointing at the merged path:1python -m testing.agentdojo.run_agentdojo \
2 --mode fuse \
3 --model_name_or_path Llama-3.1-8B-Instruct-TextTextText-4roles-toolcall-drip-merged/ \
4 --customized_model_class LlamaForCausalLMDRIP \
5 --logdir ./agentdojo_runs/llama8b_drip--attack important_instructions (or ignore_previous) to run with an
injection, and --suites banking to limit to one suite. Each run reports
per-suite utility (did it finish the user's task?) and security (did it
resist the injection?).system / user / assistant) evaluation use the 3-role DRIP variant instead.📌 This work is not yet officially published. Citation details will be added once the paper is released.