-
Notifications
You must be signed in to change notification settings - Fork 863
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 for PyTorch 2.1.0 and Python 3.11 #2621
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2621 +/- ##
==========================================
- Coverage 71.34% 71.24% -0.11%
==========================================
Files 85 85
Lines 3905 3905
Branches 58 58
==========================================
- Hits 2786 2782 -4
- Misses 1115 1119 +4
Partials 4 4 see 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
confirmed
@@ -130,7 +130,7 @@ def conda_build( | |||
|
|||
os.environ["PYTHON"] = "python" | |||
|
|||
python_versions = ["3.8", "3.9", "3.10"] | |||
python_versions = ["3.8", "3.9", "3.10", "3.11"] |
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
@@ -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 comment
The 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 comment
The 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
Description
Changes need to support PyTorch 2.1.0
Fixes #(issue)
Type of change
Please delete options that are not relevant.
Feature/Issue validation/testing
Passing CI/ Regression Runs
Checklist: