Views
No views yet
q_proj, v_proj, gate_proj, up_proj, down_projsynthetic_alpaca) with self-generated model responses and randomly-injected adversarial instructions1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = AutoModelForCausalLM.from_pretrained(
5 "meta-llama/Llama-3.1-8B-Instruct",
6 torch_dtype="auto",
7 device_map="auto",
8)
9model = PeftModel.from_pretrained(base, "FlorianJK/Meta-Llama-3.1-8B-SecAlign-pp")
10tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")| Model | Description |
|---|---|
| FlorianJK/Meta-Llama-3.1-8B-SecUnalign-pp | Same architecture fine-tuned with inverted preferences — intentionally vulnerable to prompt injection (attack / red-team adapter) |
| FlorianJK/Meta-Llama-3-8B-SecAlign | SecAlign adapter for the older Llama 3 8B base |