Views
No views yet
meta-llama/Meta-Llama-3-8B-Instruct,
trained with DRIP (Defending Prompt Injection via Token-wise Representation
Editing and Residual Fusion).TextTextText). Chat format:
system → user (untrusted) → assistant, where injected content lives in
the user turn. Meta-Llama-3 has no tool role, so this checkpoint is not
tuned for tool-calling.| Base model | meta-llama/Meta-Llama-3-8B-Instruct |
| Objective | DPO |
| Architecture | DRIP fuse (LlamaForCausalLMDRIP) |
| Delimiter | TextTextText (3-role) |
| Training data | SEP DPO pairs (datasets/sep/sep_data_cleaned_dpo_gpt.json) |
| Epochs | 1 |
user turn:
<|eot_id|><|start_header_id|>user<|end_header_id|>.⚠️ 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
4
5# download + merge the adapter into a full checkpoint
6huggingface-cli download Kelsey98/Meta-Llama-3-8B-Instruct-TextTextText-drip \
7 --local-dir Meta-Llama-3-8B-Instruct-TextTextText-drip
8CUDA_VISIBLE_DEVICES=0 python -m training.merge_lora \
9 --adapter_path Meta-Llama-3-8B-Instruct-TextTextText-drip/ \
10 --output_path Meta-Llama-3-8B-Instruct-TextTextText-drip-merged/ \
11 --base_model_path meta-llama/Meta-Llama-3-8B-Instruct \
12 --customized_model_class LlamaForCausalLMDRIP📌 This work is not yet officially published. Citation details will be added once the paper is released.