Skip to content

Commit

Permalink
rename env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HPPinata committed Dec 17, 2024
1 parent 8d43f1f commit 24c80bb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/compose.rocm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
container_name: reGen
tty: true
#environment:
# - FLASH_ATTENTION_USE_TRITON_ROCM=TRUE
# - FLASH_ATTENTION_TRITON_AMD_ENABLE=TRUE
group_add:
- video
volumes:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfiles/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if [ ! -z "${ROCM_VERSION_SHORT}" ]; then

# Determine if the user has a flash attention supported card.
SUPPORTED_CARD=$(rocminfo | grep -c -e gfx1100 -e gfx1101 -e gfx1102)
if [ "$SUPPORTED_CARD" -gt 0 ]; then export FLASH_ATTENTION_USE_TRITON_ROCM="${FLASH_ATTENTION_USE_TRITON_ROCM:=TRUE}"; fi
if [ "$SUPPORTED_CARD" -gt 0 ]; then export FLASH_ATTENTION_TRITON_AMD_ENABLE="${FLASH_ATTENTION_TRITON_AMD_ENABLE:=TRUE}"; fi

#export PYTORCH_TUNABLEOP_ENABLED=1
export MIOPEN_FIND_MODE="FAST"
Expand Down
2 changes: 1 addition & 1 deletion horde-bridge-rocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONDA_ENV_PATH="$SCRIPT_DIR/conda/envs/linux/lib"

# Determine if the user has a flash attention supported card.
SUPPORTED_CARD=$(rocminfo | grep -c -e gfx1100 -e gfx1101 -e gfx1102)
if [ "$SUPPORTED_CARD" -gt 0 ]; then export FLASH_ATTENTION_USE_TRITON_ROCM="${FLASH_ATTENTION_USE_TRITON_ROCM:=TRUE}"; fi
if [ "$SUPPORTED_CARD" -gt 0 ]; then export FLASH_ATTENTION_TRITON_AMD_ENABLE="${FLASH_ATTENTION_TRITON_AMD_ENABLE:=TRUE}"; fi
export MIOPEN_FIND_MODE="FAST"

# Check if we are running in WSL2
Expand Down
2 changes: 1 addition & 1 deletion horde_worker_regen/amd_go_fast/install_amd_go_fast.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

if [ "${FLASH_ATTENTION_USE_TRITON_ROCM^^}" == "TRUE" ]; then
if [ "${FLASH_ATTENTION_TRITON_AMD_ENABLE^^}" == "TRUE" ]; then
if ! pip install -U pytest git+https://github.com/Dao-AILab/flash-attention; then
echo "Tried to install flash attention and failed!"
else
Expand Down
2 changes: 1 addition & 1 deletion update-runtime-rocm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CONDA_ENVIRONMENT_FILE=environment.rocm.yaml

# Determine if the user has a flash attention supported card.
SUPPORTED_CARD=$(rocminfo | grep -c -e gfx1100 -e gfx1101 -e gfx1102)
if [ "$SUPPORTED_CARD" -gt 0 ]; then export FLASH_ATTENTION_USE_TRITON_ROCM="${FLASH_ATTENTION_USE_TRITON_ROCM:=TRUE}"; fi
if [ "$SUPPORTED_CARD" -gt 0 ]; then export FLASH_ATTENTION_TRITON_AMD_ENABLE="${FLASH_ATTENTION_TRITON_AMD_ENABLE:=TRUE}"; fi

wget -qO- https://github.com/mamba-org/micromamba-releases/releases/latest/download/micromamba-linux-64.tar.bz2 | tar -xvj -C "${SCRIPT_DIR}"
if [ ! -f "$SCRIPT_DIR/conda/envs/linux/bin/python" ]; then
Expand Down

0 comments on commit 24c80bb

Please sign in to comment.