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

vision models do not currently work with MacOS #81

Closed
BBC-Esq opened this issue Dec 30, 2023 · 4 comments
Closed

vision models do not currently work with MacOS #81

BBC-Esq opened this issue Dec 30, 2023 · 4 comments
Labels
bug confirmed repository owner use only HELP WANTED Need help with a new feature or fixing a bug

Comments

@BBC-Esq
Copy link
Owner

BBC-Esq commented Dec 30, 2023

It's my understanding that the bitsandbytes library doesn't work with MacOS, correct me if I'm mistaken. Therefore, 4-bit and 8-bit usage of the vision models might not be possible ever on MacOS...but if that's true, it doesn't explain why float16 wouldn't work...The goal is to at least get float16 working...perhaps try float32 (no quantization), and if possible, get 8-bit and/or 4-bit working somehow on MacOS.

@BBC-Esq BBC-Esq added bug confirmed repository owner use only HELP WANTED Need help with a new feature or fixing a bug labels Dec 30, 2023
@BBC-Esq BBC-Esq pinned this issue Jan 3, 2024
@cddigi
Copy link
Contributor

cddigi commented Jan 4, 2024

The issue can be tracked at bitsandbytes-foundation/bitsandbytes#485.

@gramss
Copy link

gramss commented Jan 5, 2024

Appreciate the active suppression of users running into this issue on MacOS.
Unfortunately, the error-prevention causes some errors on its own:

Traceback (most recent call last):
  File "/Users/user/gits/ChromaDB-Plugin-for-LM-Studio-3.04/src/gui.py", line 148, in on_create_button_clicked
    if platform.system() == "Darwin" and any(images_dir.iterdir()):
                                             ^^^^^^^^^^
UnboundLocalError: cannot access local variable 'images_dir' where it is not associated with a value

commenting out this guard function makes the program run further.

What I did: I never chose any images. Just one PDF.

EDIT:
Using release 3.04 - as seen in my path

@cddigi
Copy link
Contributor

cddigi commented Jan 5, 2024

There is an open pull request #87 that addresses that error.

@BBC-Esq
Copy link
Owner Author

BBC-Esq commented Jan 26, 2024

I'll close this issue unless/until bitsandbytes adds Apple/Metal support I I change the backend of running the vision models...

@BBC-Esq BBC-Esq closed this as completed Jan 26, 2024
@BBC-Esq BBC-Esq unpinned this issue Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed repository owner use only HELP WANTED Need help with a new feature or fixing a bug
Projects
None yet
Development

No branches or pull requests

3 participants