flâneur

Fine-tune Llama 2 with DPO

huggingface.co · 1,477 words · saved by 3 readers

We’re on a journey to advance and democratize artificial intelligence through open source and open science.

Introduction Reinforcement Learning from Human Feedback (RLHF) has become the de facto last training step of LLMs such as GPT-4 or Claude to ensure that the language model's outputs are aligned with human expectations such as chattiness or safety features. However, it brings some of the complexity of RL into NLP: we need to build a good reward function, train the model to estimate the value of a state, and at the same time be careful not to strive too far from the original model and produce gibberish instead of sensible text. Such a process is quite involved requiring a number of complex…

saved by

related reading