Lightning-AI / Lightning-AI/litgpt

Adding Direct Preference Optimization (DPO) support

Open
#733 0 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
13.7k
Forks
1.5k
Avg merge
15h 37m
Merged PRs (30d)
1

Description

Has anyone implemented Direct Preference Optimization (DPO) or is there a plan to add it to lit-gpt?

If not, any advice on the best way to architect it within lit-gpt?

There’s another issue for RLHF support too, that this could be related to for post-SFT fine tuning.

Example DPO implementations in other frameworks:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no repository files, entry points, or tests. Start by reviewing the linked RLHF issue and the referenced DPO implementations to identify how DPO should fit into lit-gpt. Done would require an agreed architecture and a concrete implementation scope, which this issue does not yet define.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.