Skip to content

Commit 9bf465e

Browse files
tengqmsmridhi06
authored andcommitted
Modify vendor setup to handle triton and flagtree
Uninstall triton and install flagtree or triton based on USE_TRITON variable. Signed-off-by: Qiming Teng <tengqm@outlook.com>
1 parent ba6b50f commit 9bf465e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/setup_vendor.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,18 @@ case $VENDOR in
118118
"torch==2.7.1+musa.4.0.0" \
119119
"torch_musa==2.7.1" \
120120
"numpy==1.26.4" \
121-
"flagtree==0.5.0+mthreads3.1" \
122121
"mkl==2024.0.0"
123122

124123
# Replace flagtree with Triton if requested
125124
if [ -n "${USE_TRITON}" ]; then
126125
uv pip uninstall flagtree
126+
uv pip uninstall triton
127127
uv pip install --index $FLAGOS_PYPI \
128128
"triton==3.1.0+musa1.4.6"
129+
else
130+
uv pip uninstall triton
131+
uv pip install --index $FLAGOS_PYPI \
132+
"flagtree==0.5.0+mthreads3.1"
129133
fi
130134
;;
131135

0 commit comments

Comments
 (0)