Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions backend/python/qwen-tts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@ else
source $backend_dir/../common/libbackend.sh
fi

# CUDA 13 has no prebuilt FlashAttention wheel, so the fallback source build
# exceeds the CI runner's memory when ninja compiles multiple units at once.
if [ "x${BUILD_PROFILE}" = "xcublas13" ]; then
export MAX_JOBS="${MAX_JOBS:-1}"
export NVCC_THREADS="${NVCC_THREADS:-1}"
fi

installRequirements
1 change: 1 addition & 0 deletions backend/python/qwen-tts/requirements-cublas13-after.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flash-attn
9 changes: 9 additions & 0 deletions backend/python/qwen-tts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
set -e

backend_dir=$(dirname $0)

for cuda_version in 12 13; do
grep -qx "flash-attn" "$backend_dir/requirements-cublas${cuda_version}-after.txt"
done

grep -q 'BUILD_PROFILE.*cublas13' "$backend_dir/install.sh"
grep -q 'MAX_JOBS.*1' "$backend_dir/install.sh"
grep -q 'NVCC_THREADS.*1' "$backend_dir/install.sh"

if [ -d $backend_dir/common ]; then
source $backend_dir/common/libbackend.sh
else
Expand Down
Loading