8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eba28a6 commit 9bb6ce0Copy full SHA for 9bb6ce0
scripts/install_triton_wheel.sh
@@ -1,3 +1,11 @@
1
#!/bin/bash
2
# Updates Triton to the pinned version for this copy of PyTorch
3
-pip install --index-url https://download.pytorch.org/whl/nightly/ "pytorch-triton==$(cat .ci/docker/triton_version.txt)+$(head -c 10 .ci/docker/ci_commit_pins/triton.txt)"
+BRANCH=$(git rev-parse --abbrev-ref HEAD)
4
+TRITON_VERSION="pytorch-triton==$(cat .ci/docker/triton_version.txt)"
5
+DOWNLOAD_PYTORCH_ORG="https://download.pytorch.org/whl"
6
+
7
+if [[ "$BRANCH" =~ .*release.* ]]; then
8
+ pip install --index-url ${DOWNLOAD_PYTORCH_ORG}/test/ $TRITON_VERSION
9
+else
10
+ pip install --index-url ${DOWNLOAD_PYTORCH_ORG}/nightly/ $TRITON_VERSION+$(head -c 10 .ci/docker/ci_commit_pins/triton.txt)
11
+fi
0 commit comments