Skip to content
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

Fix torch-tensorrt install, libstdc++ troubleshooting #487

Merged
merged 4 commits into from
Feb 6, 2025
Merged
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
8 changes: 6 additions & 2 deletions examples/ML+DL-Examples/Spark-DL/dl_inference/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ Each notebook has a suffix `_torch` or `_tf` specifying the environment used.

**For PyTorch:**
```
conda create -n spark-dl-torch python=3.11
conda create -n spark-dl-torch -c conda-forge python=3.11
conda activate spark-dl-torch
pip install -r torch_requirements.txt
```
**For TensorFlow:**
```
conda create -n spark-dl-tf python=3.11
conda create -n spark-dl-tf -c conda-forge python=3.11
conda activate spark-dl-tf
pip install -r tf_requirements.txt
```
Expand Down Expand Up @@ -105,6 +105,10 @@ If you encounter issues starting the Triton server, you may need to link your li
```shell
ln -sf /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ${CONDA_PREFIX}/lib/libstdc++.so.6
```
If the issue persists with the message `libstdc++.so.6: version 'GLIBCXX_3.4.30' not found`, you may need to update libstdc++ in your conda environment:
```shell
conda install -c conda-forge libstdcxx-ng
```

## Running on Cloud Environments

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ datasets==3.*
transformers
urllib3<2
nvidia-pytriton
torch
torch<=2.5.1
torchvision --extra-index-url https://download.pytorch.org/whl/cu121
torch-tensorrt
tensorrt --extra-index-url https://download.pytorch.org/whl/cu121
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ urllib3<2
nvidia-pytriton"

TORCH_REQUIREMENTS="${COMMON_REQUIREMENTS}
torch
torch<=2.5.1
torchvision --extra-index-url https://download.pytorch.org/whl/cu121
torch-tensorrt
tensorrt --extra-index-url https://download.pytorch.org/whl/cu121
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ huggingface
datasets
transformers
ipywidgets
ipykernel
urllib3<2
nvidia-pytriton
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024, NVIDIA CORPORATION.
# Copyright (c) 2025, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,7 +13,7 @@
# limitations under the License.

-r requirements.txt
torch
torch<=2.5.1
torchvision
torch-tensorrt
tensorrt --extra-index-url https://download.pytorch.org/whl/cu121
Expand Down