PKU-Alignment/PKU-SafeRLHF
Viewer • Updated • 164k • 14.1k • 196
How to use jmajkutewicz/Llama-3.1-Tulu-3-8B-DPO_PKU-SafeRLHF with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("allenai/Llama-3.1-Tulu-3-8B-SFT")
model = PeftModel.from_pretrained(base_model, "jmajkutewicz/Llama-3.1-Tulu-3-8B-DPO_PKU-SafeRLHF")This repo contains LoRA adapter created by aligning Tülu3 8B on the PKU-SafeRLHF dataset using Direct Preference Optimization (DPO). It was trained as a series of models for studying DPO alignment.
See the base model card for usage and chat template details.
This adapter is released under Meta's Llama 3.1 Community License Agreement. Llama 3.1 is © Meta Platforms, Inc.
If this work was helpful, please cite:
TBA