8000 FIX: Don't eagerly import bnb for LoftQ by BenjaminBossan · Pull Request #1683 · huggingface/peft · GitHub
[go: up one dir, main page]

Skip to content

FIX: Don't eagerly import bnb for LoftQ #1683

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

Conversation

BenjaminBossan
Copy link
Member
@BenjaminBossan BenjaminBossan commented Apr 25, 2024

Resolves #1665.

We accidentally added code in loftq_utils.py that eagerly imports bnb, which we want to avoid to prevent CUDA from being initialized too early.

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 !

@BenjaminBossan
Copy link
Member Author

As I explained in this comment, it is unfortunately not easily possible to write a test for this.

@BenjaminBossan BenjaminBossan merged commit b1d6c77 into huggingface:main Apr 25, 2024
@BenjaminBossan BenjaminBossan deleted the fix-dont-eagerly-import-bnb-loftq branch April 25, 2024 18:35
Guy-Bilitski pushed a commit to Guy-Bilitski/peft that referenced this pull request May 13, 2025
We accidentally added code in loftq_utils.py that eagerly imports bnb,
which we want to avoid to prevent CUDA from being initialized too early.
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 is imported eagerly in peft/utils/loftq_utils.py
3 participants
0