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

Fix orpo trainer loss device #1919

Merged
merged 3 commits into from
Aug 12, 2024

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented Aug 12, 2024

What does this PR do ?

Same PR as #1439 but for ORPOTrainer.
TLDR: It's a very strong assumption that tr_loss and tr_loss_step are on the same device. arg.device may not be as same as the current device.
Fixes: huggingface/transformers#32480

cc @kashif

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@SunMarc
Copy link
Member Author

SunMarc commented Aug 12, 2024

I'm unable to merge as I don't have write access @kashif. Can you merge it please ?

@kashif kashif merged commit 96bb3de into huggingface:main Aug 12, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants