jkorstad commited on
Commit
9300038
·
verified ·
1 Parent(s): d49e5b8

Update setup_blender.sh

Browse files
Files changed (1) hide show
  1. 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} from PyPI (with --no-build-isolation)..."
110
- # Try to install flash-attn, letting pip search PyPI.
111
- # The --no-build-isolation flag allows it to see the already installed PyTorch.
112
- # We are NOT using --only-binary here to see if it attempts a source build and what error occurs.
 
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 from PyPI."
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.