|
Download docs/macOS.md from gradguy/model1: direct link, hf CLI and curl.
- Browser
- Download file 814 Bytes
-
https://huggingface.co/gradguy/model1/resolve/main/docs/macOS.md
- Command line
-
hf download hf://gradguy/model1/docs/macOS.md
-
curl -L -o macOS.md https://huggingface.co/gradguy/model1/resolve/main/docs/macOS.md
814 Bytes
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
- Clone this repository and navigate to LLaVA folder
git clone https://github.com/haotian-liu/LLaVA.git
cd LLaVA
- Install Package
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.
Note that quantization (4-bit, 8-bit) is NOT supported on macOS. Stay tuned for the 4-bit support on macOS!