Spaces:
Running
on
Zero
Running
on
Zero
Update setup_blender.sh
Browse files- setup_blender.sh +3 -1
setup_blender.sh
CHANGED
@@ -24,8 +24,9 @@ TARGET_CUDA_VERSION_SHORT="cu121" # PyTorch 2.3.1 wheels are available for cu121
|
|
24 |
TORCH_INDEX_URL="https://download.pytorch.org/whl/${TARGET_CUDA_VERSION_SHORT}"
|
25 |
|
26 |
# Direct URL for the compatible flash-attn wheel
|
|
|
27 |
# Corresponds to Python 3.11 (cp311), PyTorch 2.3.1+cu121
|
28 |
-
FLASH_ATTN_WHEEL_URL="https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.
|
29 |
|
30 |
# --- Set Environment Variables for Build ---
|
31 |
export CUDA_HOME=${CUDA_HOME:-/usr/local/cuda}
|
@@ -45,6 +46,7 @@ echo "Blender Python Executable: ${BLENDER_PY_EXEC}"
|
|
45 |
echo "Using CUDA_HOME=${CUDA_HOME}"
|
46 |
echo "Targeting PyTorch for CUDA: ${TARGET_CUDA_VERSION_SHORT}"
|
47 |
echo "TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST}"
|
|
|
48 |
|
49 |
# --- Download and Extract Blender ---
|
50 |
mkdir -p "${BLENDER_INSTALL_BASE}"
|
|
|
24 |
TORCH_INDEX_URL="https://download.pytorch.org/whl/${TARGET_CUDA_VERSION_SHORT}"
|
25 |
|
26 |
# Direct URL for the compatible flash-attn wheel
|
27 |
+
# Using v2.5.8 as it has a pt23cu121 wheel available.
|
28 |
# Corresponds to Python 3.11 (cp311), PyTorch 2.3.1+cu121
|
29 |
+
FLASH_ATTN_WHEEL_URL="https://github.com/Dao-AILab/flash-attention/releases/download/v2.5.8/flash_attn-2.5.8+pt23cu121-cp311-cp311-linux_x86_64.whl"
|
30 |
|
31 |
# --- Set Environment Variables for Build ---
|
32 |
export CUDA_HOME=${CUDA_HOME:-/usr/local/cuda}
|
|
|
46 |
echo "Using CUDA_HOME=${CUDA_HOME}"
|
47 |
echo "Targeting PyTorch for CUDA: ${TARGET_CUDA_VERSION_SHORT}"
|
48 |
echo "TORCH_CUDA_ARCH_LIST: ${TORCH_CUDA_ARCH_LIST}"
|
49 |
+
echo "Attempting to install flash-attn from: ${FLASH_ATTN_WHEEL_URL}"
|
50 |
|
51 |
# --- Download and Extract Blender ---
|
52 |
mkdir -p "${BLENDER_INSTALL_BASE}"
|