-
Notifications
You must be signed in to change notification settings - Fork 882
Changes for PyTorch 2.1.0 and Python 3.11 #2621
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
Changes from all commits
8847b09
720d777
bb3781d
a7267bf
a72f1c3
f54c3b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,11 +37,11 @@ Use `build_image.sh` script to build the docker images. The script builds the `p | |
|-bi, --baseimage specify base docker image. Example: nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu20.04| | ||
|-bt, --buildtype|Which type of docker image to build. Can be one of : production, dev, ci, codebuild| | ||
|-t, --tag|Tag name for image. If not specified, script uses torchserve default tag names.| | ||
|-cv, --cudaversion| Specify to cuda version to use. Supported values `cu92`, `cu101`, `cu102`, `cu111`, `cu113`, `cu116`, `cu117`, `cu118`. Default `cu117`| | ||
|-cv, --cudaversion| Specify to cuda version to use. Supported values `cu92`, `cu101`, `cu102`, `cu111`, `cu113`, `cu116`, `cu117`, `cu118`. `cu121`, Default `cu121`| | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you please confirm if cu121 is PT2.1 default cuda? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. confirmed |
||
|-ipex, --build-with-ipex| Specify to build with intel_extension_for_pytorch. If not specified, script builds without intel_extension_for_pytorch.| | ||
|-n, --nightly| Specify to build with TorchServe nightly.| | ||
|--codebuild| Set if you need [AWS CodeBuild](https://aws.amazon.com/codebuild/)| | ||
|-py, --pythonversion| Specify the python version to use. Supported values `3.8`, `3.9`, `3.10`. Default `3.9`| | ||
|-py, --pythonversion| Specify the python version to use. Supported values `3.8`, `3.9`, `3.10`, `3.11`. Default `3.9`| | ||
|
||
|
||
**PRODUCTION ENVIRONMENT IMAGES** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,10 @@ | |
python ./ts_scripts/install_dependencies.py | ||
``` | ||
|
||
- For GPU with Cuda 10.2. Options are `cu92`, `cu101`, `cu102`, `cu111`, `cu113`, `cu116`, `cu117`, `cu118` | ||
- For GPU with Cuda 12.1. Options are `cu92`, `cu101`, `cu102`, `cu111`, `cu113`, `cu116`, `cu117`, `cu118`, `cu121` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this list is long no? :P There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, we should truncate this to the latest version. Good point. Anyone looking for 0.6.0 can look at the readme page corresponding to 0.6.0 tag |
||
|
||
```bash | ||
python ./ts_scripts/install_dependencies.py --cuda=cu102 | ||
python ./ts_scripts/install_dependencies.py --cuda=cu121 | ||
``` | ||
|
||
Note: PyTorch 1.9+ will not support cu92 and cu101. So TorchServe only supports cu92 and cu101 up to PyTorch 1.8.1. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121 | ||
--extra-index-url https://download.pytorch.org/whl/test/cu121 | ||
-r torch_common.txt | ||
torch==2.1.0+cu121; sys_platform == 'linux' | ||
torchvision==0.16.0+cu121; sys_platform == 'linux' | ||
torchtext==0.16.0; sys_platform == 'linux' | ||
torchaudio==2.1.0+cu121; sys_platform == 'linux' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121 | ||
--extra-index-url https://download.pytorch.org/whl/cu121 | ||
-r torch_common.txt | ||
torch==2.1.0+cu121; sys_platform == 'linux' | ||
torchvision==0.16.0+cu121; sys_platform == 'linux' | ||
torchtext==0.16.0; sys_platform == 'linux' | ||
torchaudio==2.1.0+cu121; sys_platform == 'linux' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
F438 td> | #pip install torch torchvision torchaudio | |
--extra-index-url https://download.pytorch.org/whl/test/cpu | ||
-r torch_common.txt | ||
torch==2.0.1; sys_platform == 'darwin' | ||
torchvision==0.15.2; sys_platform == 'darwin' | ||
torchtext==0.15.2; sys_platform == 'darwin' | ||
torchaudio==2.0.2; sys_platform == 'darwin' | ||
torch==2.1.0; sys_platform == 'darwin' | ||
torchvision==0.16.0; sys_platform == 'darwin' | ||
torchtext==0.16.0; sys_platform == 'darwin' | ||
torchaudio==2.1.0; sys_platform == 'darwin' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu | ||
--extra-index-url https://download.pytorch.org/whl/cpu | ||
--extra-index-url https://download.pytorch.org/whl/test/cpu | ||
-r torch_common.txt | ||
torch==2.0.1+cpu; sys_platform == 'linux' | ||
torchvision==0.15.2+cpu; sys_platform == 'linux' | ||
torchtext==0.15.2; sys_platform == 'linux' | ||
torchaudio==2.0.2+cpu; sys_platform == 'linux' | ||
torch==2.1.0+cpu; sys_platform == 'linux' | ||
torchvision==0.16.0+cpu; sys_platform == 'linux' | ||
torchtext==0.16.0; sys_platform == 'linux' | ||
torchaudio==2.1.0+cpu; sys_platform == 'linux' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#pip install torch torchvision torchaudio | ||
--extra-index-url https://download.pytorch.org/whl/test/cpu | ||
-r torch_common.txt | ||
torch==2.0.1; sys_platform == 'win32' | ||
torchvision==0.15.2; sys_platform == 'win32' | ||
torchtext==0.15.2; sys_platform == 'win32' | ||
torchaudio==2.0.2; sys_platform == 'win32' | ||
torch==2.1.0; sys_platform == 'win32' | ||
torchvision==0.16.0; sys_platform == 'win32' | ||
torchtext==0.16.0; sys_platform == 'win32' | ||
torchaudio==2.1.0; sys_platform == 'win32' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure you wanna keep 3.8 around?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should support it as long as PyTorch does. But I think we should update our default version in workflows to 3.9