ACCC1380 commited on
Commit
c9b4784
1 Parent(s): a7730a4

Upload lora-scripts/install.bash with huggingface_hub

Browse files
Files changed (1) hide show
  1. lora-scripts/install.bash +7 -7
lora-scripts/install.bash CHANGED
@@ -36,13 +36,13 @@ echo "CUDA Version: $cuda_version"
36
 
37
 
38
  if (( cuda_major_version >= 12 )); then
39
- echo "install torch 2.2.1+cu121"
40
- pip install torch==2.2.1+cu121 torchvision==0.17.1+cu121 --extra-index-url https://download.pytorch.org/whl/cu121
41
- pip install --no-deps xformers==0.0.25 --extra-index-url https://download.pytorch.org/whl/cu118
42
  elif (( cuda_major_version == 11 && cuda_minor_version >= 8 )); then
43
- echo "install torch 2.2.1+cu118"
44
- pip install torch==2.2.1+cu118 torchvision==0.17.1+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
45
- pip install --no-deps xformers==0.0.25+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
46
  elif (( cuda_major_version == 11 && cuda_minor_version >= 6 )); then
47
  echo "install torch 1.12.1+cu116"
48
  pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
@@ -60,7 +60,7 @@ else
60
  fi
61
 
62
  echo "Installing deps..."
63
- cd "$script_dir/sd-scripts" || exit
64
 
65
  pip install --upgrade -r requirements.txt
66
 
 
36
 
37
 
38
  if (( cuda_major_version >= 12 )); then
39
+ echo "install torch 2.4.1+cu124"
40
+ pip install torch==2.4.1+cu124 torchvision==0.19.1+cu124 --extra-index-url https://download.pytorch.org/whl/cu124
41
+ pip install --no-deps xformers==0.0.28.post1 --extra-index-url https://download.pytorch.org/whl/cu124
42
  elif (( cuda_major_version == 11 && cuda_minor_version >= 8 )); then
43
+ echo "install torch 2.4.0+cu118"
44
+ pip install torch==2.4.0+cu118 torchvision==0.19.0+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
45
+ pip install --no-deps xformers==0.0.27.post2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
46
  elif (( cuda_major_version == 11 && cuda_minor_version >= 6 )); then
47
  echo "install torch 1.12.1+cu116"
48
  pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116
 
60
  fi
61
 
62
  echo "Installing deps..."
63
+ cd "$script_dir/scripts" || exit
64
 
65
  pip install --upgrade -r requirements.txt
66