-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the libtorch version mismatch issue (#3086)
- Loading branch information
1 parent
e30a703
commit 4d8a94a
Showing
9 changed files
with
41 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,4 +73,5 @@ wheelhouse/ | |
tests/py/dynamo/models/*.ts | ||
tests/py/dynamo/models/*.ep | ||
*.deb | ||
*.tar.xz | ||
*.tar.xz | ||
MODULE.bazel.lock |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
# Install dependencies | ||
python3 -m pip install pyyaml | ||
|
||
yum install -y ninja-build gettext | ||
|
||
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-amd64 \ | ||
&& mv bazelisk-linux-amd64 /usr/bin/bazel \ | ||
&& chmod +x /usr/bin/bazel | ||
|
||
TORCH_TORCHVISION=$(grep "^torch" py/requirements.txt) | ||
INDEX_URL=https://download.pytorch.org/whl/${CHANNEL}/${CU_VERSION} | ||
|
||
# Install all the dependencies required for Torch-TensorRT | ||
pip uninstall -y torch torchvision | ||
pip install --force-reinstall --pre ${TORCH_TORCHVISION} --index-url ${INDEX_URL} | ||
pip install --pre -r tests/py/requirements.txt --use-deprecated legacy-resolver | ||
|
||
|
||
export TORCH_BUILD_NUMBER=$(python -c "import torch, urllib.parse as ul; print(ul.quote_plus(torch.__version__))") | ||
export TORCH_INSTALL_PATH=$(python -c "import torch, os; print(os.path.dirname(torch.__file__))") | ||
|
||
cat toolchains/ci_workspaces/MODULE.bazel.tmpl | envsubst > MODULE.bazel | ||
|
||
cat MODULE.bazel | ||
export CI_BUILD=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters