Spaces:
Build error
Build error
Merge branch 'main' into multiprojects
Browse filesFiles changed (5)
190 unmodified lines191192193194194195196196197198199200198199200202203204205201202203204205206190 unmodified lines./setup.sh```
### Degraded installation in local### macOS is NOT supported
If you cannot meet the requirements, you can:Currently macOS is NOT supported due to two separate dependency issues:
- solution 1: fix requirements.txt to use another prebuilt wheel- solution 2: manually build/install flash attention- solution 3: don't use clip captioning- issue with flash attention- issue with decord
Here is how to do solution 3:```bash./setup_no_captions.sh```However, the paradox is that I actually develop and maintain VMS using macOS!
So don't be surprised by the presence of "degraded_setup.sh" and all, it's just a workaround for me to be able to at least test the web ui on macOS.
## Run
1234567891011121314151617181920acceleratebitsandbytesdatasets>=3.3.2diffusers>=0.32.1transformers>=4.45.2huggingface_hubhf_transfer>=0.1.8peft>=0.13.0#decord>=0.6.0wandbpandastorch>=2.5.1torchvision>=0.20.1torchdata>=0.10.1torchao>=0.7.0sentencepiece>=0.2.0imageio-ffmpeg>=0.5.1numpy>=1.26.4kornia>=0.7.3ruff==0.9.102 unmodified lines34567891011121314156782 unmodified lines# For GPU monitoring of NVIDIA chipsetspynvml
# eva-decord is missing get_batch it seems#eva-decord==0.6.1#decord
# we are waiting for the next PyPI release#finetrainers==0.1.0finetrainers @ git+https://github.com/a-r-r-o-w/finetrainers.git@main# temporary fix for pip install bug:#finetrainers @ git+https://github.com/jbilcke-hf/finetrainers-patches.git@fix_missing_sft_trainer_files
# it is recommended to always use the latest versiondiffusers @ git+https://github.com/huggingface/diffusers.git@main
12334565 unmodified lines121314151516171819202122232425#!/usr/bin/env bash
echo "if install fails due to python being not found, edit setup_no_captions.sh to replace with another version of python"echo "Degraded setup for environments where decord cannot be installed"
# if you are on a mac, you can try to replace "python3.10" with:# python3.105 unmodified lines
source .venv/bin/activate
python3.10 -m pip install -r requirements_without_flash_attention.txt# :(python3.10 -m pip install -r degraded_requirements.txt
# :((finetrainers @ git+https://github.com/a-r-r-o-w/finetrainers.git@main --no-deps
# :(((python3.10 -m pip install -r degraded_finetrainers_requirements.txt
# if you require flash attention, please install it manually for your operating system
3 unmodified lines4567789103 unmodified lines
source .venv/bin/activate
python -m pip install -r requirements.txtpython -m pip install -r requirements.txt
# if flash attention couldn't be installed for your operating system you can try this:# python -m pip install wheel setuptools flash-attn --no-build-isolation --no-cache-dirREADME.md+7-9
degraded_finetrainers_requirements.txtAdded+20
requirements_without_flash_attention.txt → degraded_requirements.txtRenamed-10
setup_no_captions.sh → degraded_setup.shRenamed+9-2
setup.sh+4-1