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

Update dpo_llama2.py to fix 8-bit multi-gpu training bug #1352

Closed
wants to merge 2 commits into from

Conversation

fancyerii
Copy link
Contributor

fix "ValueError: You can't train a model that has been loaded in 8-bit precision on a different device than the one you're training on." see #1348

fix "ValueError: You can't train a model that has been loaded in 8-bit precision on a different device than the one you're training on."
see huggingface#1348
Copy link
Contributor

@younesbelkada younesbelkada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot LGTM with one comment - what do you think?

import Accelerator
@fancyerii fancyerii closed this Feb 22, 2024
@fancyerii fancyerii deleted the fancyerii-patch-1 branch February 22, 2024 13:17
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.

2 participants