Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support padding-free for DPO #6753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yinzhijian
Copy link

@yinzhijian yinzhijian commented Jan 24, 2025

What does this PR do?

Support padding-free for DPO

The code is based on the reference from huggingface/trl#2520.

With 4 A800 machines, qwen2.5 72B, gbs256, and the dpo_mix_en dataset, under default settings, DPO LORA , enabling padding-free results in a 20% performance improvement.
bfae7da8e1aed40aac686d46960dfc73

Fixes # (issue)

Before submitting

@hiyouga hiyouga added the pending This problem is yet to be addressed label Jan 24, 2025
@hiyouga hiyouga self-requested a review January 24, 2025 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending This problem is yet to be addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants