Instructions to use weixinchen/GRATH-selftruth with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
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") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123456---library_name: peft---## Training procedure123456789101112---library_name: peft---This is a self-truthified model proposed in the paper [GRATH: Gradual Self-Truthifying for Large Language Models](https://arxiv.org/abs/2401.12292).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).## Training procedure
README.md+6