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

bitsandbytes for macos M1,M2,M3 chips #1460

Open
0xD4rky opened this issue Dec 19, 2024 · 2 comments
Open

bitsandbytes for macos M1,M2,M3 chips #1460

0xD4rky opened this issue Dec 19, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists macOS

Comments

@0xD4rky
Copy link

0xD4rky commented Dec 19, 2024

Feature request

Hi, I am trying to fine-tune Llava 1.5 7B model using QLoRa and for that I need bitsandbytes module. However, I am working on macos and pytorch doesn't support cuda on macos due to its integrated unified memory. Hence, even after installing bitsandbytes and accelerate, I am facing the same issue:

Using `bitsandbytes` 4-bit quantization requires the latest version of bitsandbytes

Motivation

Fine-tuning large-scale models such as LLaVA 1.5 7B requires computational efficiency and optimization due to their size and complexity. Leveraging QLoRA (Quantized Low-Rank Adaptation) is an ideal approach for this task, as it significantly reduces memory consumption and compute requirements while maintaining high performance. QLoRA relies on low-bit quantization techniques, for which the bitsandbytes library is crucial. However, the lack of CUDA support on macOS, primarily due to its integrated unified memory architecture, creates a roadblock in fully utilizing these optimizations.

Your contribution

I would definitely wait for it!

@manu2022
Copy link

manu2022 commented Jan 3, 2025

same issue

@gagandeep
Copy link

Same issue

Its planned but not supported right now.
https://huggingface.co/docs/bitsandbytes/main/en/installation#multi-backend

@matthewdouglas matthewdouglas added duplicate This issue or pull request already exists macOS labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists macOS
Projects
None yet
Development

No branches or pull requests

4 participants