Overview of the DPO Workflow
masterThe Direct Preference Optimization (DPO) workflow is a four-stage process used to optimize models based on preference signals. The stages are:
- SFT Model Deployment: Deploy a Supervised Fine-Tuning (SFT) model via
llama.cppand expose it through an API endpoint. - DPO Data Synthesis: Use the deployed SFT model to generate specialized DPO training data.
- Model Training: Train the model using the synthesized data with configurable hyperparameters.
- Merge Weights: Merge the resulting Adapter Weights back into the Base Model (if using LoRA).