-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
importing peft with an old version of bitsandbytes causes an exception #642
Comments
@younesbelkada This issue seems important if you plan a new release. |
thanks for the ping @glerzing peft/src/peft/tuners/adalora.py Line 11 in f5352f0
|
Yes, I confirm. And I made a PR here : #646 |
System Info
Importing peft with the bitsandbytes version "0.39.1" works. But when importing peft with the version "0.38.1", I get an exception :
AttributeError: module 'bitsandbytes.nn' has no attribute 'Linear4bit'
.Indeed, the class
SVDLinear4bit
should be defined only ifis_bnb_4bit_available()
, not just ifis_bnb_available()
.Who can help?
No response
Information
Tasks
examples
folderReproduction
in a notebook :
!pip install 'bitsandbytes==0.38.1'
import peft
Expected behavior
no exception
The text was updated successfully, but these errors were encountered: