GRATH: Gradual Self-Truthifying for Large Language Models
Paper • 2401.12292 • Published • 2
How to use weixinchen/GRATH-selftruth with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
model = PeftModel.from_pretrained(base_model, "weixinchen/GRATH-selftruth")This is a self-truthified model proposed in the paper GRATH: Gradual Self-Truthifying for Large Language Models.
Note: This model is applied with DPO once. The reference model of DPO is set as the current base model (i.e., the pretrained base model).
The following bitsandbytes quantization config was used during training:
The following bitsandbytes quantization config was used during training:
The following bitsandbytes quantization config was used during training:
PEFT 0.5.0
PEFT 0.5.0
PEFT 0.5.0