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

enable cpu bnb distributed lora finetune #3159

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

jiqing-feng
Copy link
Contributor

Hi @SunMarc , this PR enables cpu bnb model distributed finetune by removing check index because we don't need index in cpu device. Please review it. Thanks!

@jiqing-feng
Copy link
Contributor Author

jiqing-feng commented Oct 14, 2024

Hi @SunMarc @ArthurZucker , if we don't make this change, the error be like:

image

@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.

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @jiqing-feng ! Instead of removing this check, could you add the multi-backend bnb check ?

@jiqing-feng
Copy link
Contributor Author

Hi @SunMarc . I have checked bnb multi-backend, please review it. Thx!

Copy link
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@SunMarc SunMarc merged commit a84327e into huggingface:main Oct 15, 2024
25 checks passed
@jiqing-feng jiqing-feng deleted the bnb_dp branch October 16, 2024 02:40
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