-
Notifications
You must be signed in to change notification settings - Fork 363
fix the libtorch version mismatch issue #3086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
lanluo-nvidia
merged 14 commits into
main
from
lluo/fix_libtorch_version_mismatch_issue
Aug 16, 2024
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
cae3e05
fix the libtorch version mismatch issue
lanluo-nvidia 2a4aeb4
change libtorch back to http_archive for cxx11abi build
lanluo-nvidia 4920b42
test
lanluo-nvidia 8603555
test
lanluo-nvidia 68645c3
test
lanluo-nvidia cc07f3d
test
lanluo-nvidia 90dc93f
test
lanluo-nvidia 565f918
bump torchvision version from 0.19 to 0.20
lanluo-nvidia 18419ba
Merge branch 'main' into lluo/fix_libtorch_version_mismatch_issue
lanluo-nvidia 21156c9
Merge branch 'main' into lluo/fix_libtorch_version_mismatch_issue
lanluo-nvidia 199b3e7
test
lanluo-nvidia a09db43
test
lanluo-nvidia a0e2f67
test with Holly's comments
lanluo-nvidia 4f40c15
test
lanluo-nvidia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.