Upload lora-scripts/install.bash with huggingface_hub
Browse files
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.
|
40 |
-
pip install torch==2.
|
41 |
-
pip install --no-deps xformers==0.0.
|
42 |
elif (( cuda_major_version == 11 && cuda_minor_version >= 8 )); then
|
43 |
-
echo "install torch 2.
|
44 |
-
pip install torch==2.
|
45 |
-
pip install --no-deps xformers==0.0.
|
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/
|
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 |
|