cryptoscum

AI-toolkit SPOD new

Jul 29th, 2025 (edited)
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. set -e
  3.  
  4. # Install nvm and Node.js
  5. export NVM_DIR="$HOME/.nvm"
  6. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
  7. source "$NVM_DIR/nvm.sh"
  8. nvm install 18
  9. nvm use 18
  10.  
  11. # Install uv and activate
  12. curl -LsSf https://astral.sh/uv/install.sh | sh
  13. source "$HOME/.local/bin/env"
  14.  
  15. # Clone repo
  16. git clone https://github.com/ostris/ai-toolkit.git "$HOME/ai-toolkit"
  17. cd "$HOME/ai-toolkit"
  18. git submodule update --init --recursive
  19.  
  20. # Create and activate venv
  21. uv venv .venv
  22. source .venv/bin/activate
  23.  
  24. # Install Python deps
  25. uv pip install --upgrade pip
  26. uv pip install --no-cache-dir torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu128
  27. uv pip install --no-cache-dir -r requirements.txt --torch-backend=auto
  28. uv pip install --upgrade accelerate transformers diffusers huggingface_hub
  29.  
  30. # Install and run UI
  31. cd ui
  32. npm install
  33. npm run build_and_start
Advertisement
Add Comment
Please, Sign In to add comment