Guest User

Z-IMAGE TURBO Lora Manual Ai-Toolkit Install

a guest
Dec 10th, 2025
4,438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. Manual Install Method from my last Youtube Video: https://youtu.be/WA5xo7PLDsg
  2. Link to get the loras, workflow and installers : https://www.patreon.com/c/aitrepreneur
  3.  
  4.  
  5. 1. Install prereqs manually:
  6. – CUDA 12.8 (RTX-50) OR CUDA 12.6 (RTX-40/30/20/GTX)
  7. – Git, Python 3.10 64-bit, Node 18/20 LTS
  8.  
  9.  
  10. git clone https://github.com/ostris/ai-toolkit.git
  11. cd ai-toolkit
  12.  
  13. python -m venv venv
  14. call venv\Scripts\activate.bat
  15. python -m pip install -U pip
  16.  
  17. RTX-50 (CUDA 12.8)
  18. pip install --no-cache-dir torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128
  19.  
  20.  
  21. RTX-40/30/20/GTX 16/10 (CUDA 12.6)
  22. ip install --no-cache-dir torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu126
  23.  
  24. pip install -r requirements.txt
  25.  
  26. cd ui
  27. npm install
  28. npm run build_and_start
  29.  
  30. open localhost
  31.  
  32.  
  33. Optional password
  34. set AI_TOOLKIT_AUTH=mypwd && npm run build_and_start
  35.  
  36.  
  37.  
  38. RUNPOD:
  39. Create account at: https://bit.ly/runpodAi
  40.  
  41.  
  42. 0) Optional: sudo apt update -y
  43. sudo apt install -y git python3 python3-venv python3-pip build-essential curl
  44.  
  45. git clone https://github.com/ostris/ai-toolkit.git
  46. cd ai-toolkit
  47.  
  48. python3 -m venv venv
  49. source venv/bin/activate
  50. pip install -U pip
  51.  
  52. Pick one:
  53. • 5000-series (CUDA 12.8 wheels)
  54. pip install --no-cache-dir torch==2.7.0+cu128 torchvision==0.22.0+cu128 --index-url https://download.pytorch.org/whl/cu128
  55. • Older GPUs (CUDA 12.6 wheels)
  56. pip install --no-cache-dir torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu126
  57.  
  58. pip install -r requirements.txt
  59.  
  60. curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
  61. source ~/.nvm/nvm.sh
  62. nvm install 22 && nvm use 22
  63.  
  64. cd ui
  65. npm install
  66. npm run build_and_start
  67.  
  68.  
  69.  
  70.  
  71.  
  72. Chatgpt prompt:
  73.  
  74. I will upload a few images, wait until I finished uploading them all.
  75.  
  76. These are photos of Margot Robbie, analyze those images and caption them correctly for a Lora training using "Margot Robbie" as the caption token and convert each single caption into a .txt file and name them all in the same order, Margot Robbie_0001.txt, Margot Robbie_0002.txt, etc... and then finally zip them up all into a single zip file I can download
  77.  
  78.  
Add Comment
Please, Sign In to add comment