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

[core] Stronger import of bnb #605

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

Fixes: #603

Instead of checking the version of bnb we should introduce a stronger check to make sure the 4bit layers cannot be imported to avoid corner cases such as the one described on the issue

cc @pacman100

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 20, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@pacman100 pacman100 left a comment

Choose a reason for hiding this comment

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

Thank you @younesbelkada for fixes wrt bnb 4-bit features.

@pacman100 pacman100 merged commit fd10fae into huggingface:main Jun 21, 2023
@younesbelkada younesbelkada deleted the fix-gradient branch June 21, 2023 12:15
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.

bitsandbytes-windows does not have bnb.nn.Linear4bit while it is imported in peft\tuners\lora.py
3 participants