Spaces:
Runtime error
Runtime error
Update setup_blender.sh
Browse files- setup_blender.sh +8 -5
setup_blender.sh
CHANGED
@@ -106,14 +106,17 @@ echo "Step 1: Installing PyTorch ${TORCH_VERSION} (for CUDA ${TARGET_CUDA_VERSIO
|
|
106 |
--index-url ${TORCH_INDEX_URL} -vvv
|
107 |
echo "PyTorch and Torchvision installation attempted."
|
108 |
|
109 |
-
echo "Step 2: Installing flash-attn==${FLASH_ATTN_VERSION_TO_INSTALL}
|
110 |
-
# Try to install flash-attn,
|
111 |
-
#
|
112 |
-
#
|
|
|
113 |
"${BLENDER_PY_EXEC}" -m pip install --no-cache-dir \
|
114 |
--no-build-isolation \
|
|
|
|
|
115 |
flash-attn==${FLASH_ATTN_VERSION_TO_INSTALL} -vvv
|
116 |
-
echo "flash-attn installation attempted
|
117 |
|
118 |
echo "Step 3: Installing remaining dependencies from ${UNIRIG_REQS_FILE_IN_SPACE}..."
|
119 |
# Ensure flash-attn is REMOVED from unirig_requirements.txt.
|
|
|
106 |
--index-url ${TORCH_INDEX_URL} -vvv
|
107 |
echo "PyTorch and Torchvision installation attempted."
|
108 |
|
109 |
+
echo "Step 2: Installing flash-attn==${FLASH_ATTN_VERSION_TO_INSTALL} (binary only, no build isolation, checking PyTorch index)..."
|
110 |
+
# Try to install flash-attn, strongly preferring a binary wheel.
|
111 |
+
# --no-build-isolation allows it to see the already installed PyTorch.
|
112 |
+
# --only-binary ":all:" tells pip to not attempt source builds for any package in this command.
|
113 |
+
# --find-links adds PyTorch's index for this specific command, in case compatible wheels are there.
|
114 |
"${BLENDER_PY_EXEC}" -m pip install --no-cache-dir \
|
115 |
--no-build-isolation \
|
116 |
+
--only-binary ":all:" \
|
117 |
+
--find-links ${TORCH_INDEX_URL} \
|
118 |
flash-attn==${FLASH_ATTN_VERSION_TO_INSTALL} -vvv
|
119 |
+
echo "flash-attn installation attempted."
|
120 |
|
121 |
echo "Step 3: Installing remaining dependencies from ${UNIRIG_REQS_FILE_IN_SPACE}..."
|
122 |
# Ensure flash-attn is REMOVED from unirig_requirements.txt.
|