File size: 1,127 Bytes
94a2309 839ab84 fb9f807 94a2309 fb9f807 94a2309 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
---
license: apache-2.0
---
Краткая инструкция по установке
Обновите систему и установите git-lfs:
```
apt update
apt install git-lfs
git config --global credential.helper store
```
Обновите pip и установите требуемые пакеты:
```
python -m pip install --upgrade pip
# ls /etc/alternatives/cuda -l
# apt-get install cuda-13-0
# update-alternatives --config cuda
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130 -U # change
pip install flash-attn --no-build-isolation # optional
```
Клонируйте репозиторий:
```
git clone https://huggingface.co/AiArtLab/sdxs
cd sdxs/
pip install -r requirements.txt -U
```
Подготовьте датасет:
```
mkdir datasets
cd datasets
huggingface-cli download AiArtLab/384 --local-dir 384 --repo-type dataset
```
Выполните вход в сервисы:
```
huggingface-cli login
wandb login
```
Запустите обучение!
```
nohup accelerate launch train.py &
```
|