Update vision.py
This commit is contained in:
parent
3574799134
commit
972d1bb659
1 changed files with 1 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ class FastBaseModel:
|
|||
pass
|
||||
|
||||
# Fix AttributeError: 'BitsAndBytesConfig' object has no attribute 'get_loading_attributes'
|
||||
if not hasattr(bnb_config, "get_loading_attributes"):
|
||||
if bnb_config is not None and not hasattr(bnb_config, "get_loading_attributes"):
|
||||
bnb_config.get_loading_attributes = lambda *args, **kwargs: {}
|
||||
|
||||
# Cannot be None, since HF now checks for the config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue