-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a546269
commit 785f766
Showing
4 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Run LLaVA on macOS | ||
|
||
*NOTE: LLaVA on macOS is not fully supported. Currently we only support 16-bit inference. More functionalities on macOS is to be added soon, stay tuned.* | ||
|
||
## Installation | ||
|
||
1. Clone this repository and navigate to LLaVA folder | ||
```bash | ||
git clone https://github.com/haotian-liu/LLaVA.git | ||
cd LLaVA | ||
``` | ||
|
||
2. Install Package | ||
```Shell | ||
conda create -n llava python=3.10 -y | ||
conda activate llava | ||
python -mpip install --upgrade pip # enable PEP 660 support | ||
pip install -e . | ||
pip install torch==2.1.0 torchvision==0.16.0 | ||
pip uninstall bitsandbytes | ||
``` | ||
|
||
## Run demo | ||
|
||
Specify `--device mps` when launching model worker or CLI. | ||
|
||
See instructions [here](https://github.com/haotian-liu/LLaVA#demo). | ||
|
||
Note that quantization (4-bit, 8-bit) is *NOT* supported on macOS. Stay tuned for the 4-bit support on macOS! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters