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

inital bnb #10

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

inital bnb #10

wants to merge 1 commit into from

Conversation

ewof
Copy link

@ewof ewof commented May 25, 2023

u need to install bnb from source pip package doesn't work for me at least
https://github.com/TimDettmers/bitsandbytes/blob/main/compile_from_source.md

@ewof
Copy link
Author

ewof commented May 25, 2023

8bit works fine
4bit i had working but cant get it to work again. there's a bug in transformers trainer.py line 499 needs to be

if self.place_model_on_device and not getattr(model, "is_loaded_in_8bit", False) and not getattr(model, "is_loaded_in_4bit", False):

instead of

if self.place_model_on_device and not getattr(model, "is_loaded_in_8bit", False):

but even with this i get weird matmul errors (which i didn't get for one run and 4bit worked fine but i can't recreate)
i made an issue on bnb repo

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.

1 participant