This repository was archived by the owner on Aug 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 228
Release 2.2.0 pypi prep script modifications #1686
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
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 |
---|---|---|
|
@@ -21,13 +21,12 @@ upload_pypi_to_staging() { | |
} | ||
|
||
# Uncomment these to promote to pypi | ||
PYTORCH_LINUX_VERSION_SUFFIX="%2Bcu121.with.pypi.cudnn" | ||
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.
|
||
LINUX_VERSION_SUFFIX="%2Bcu121" | ||
CPU_VERSION_SUFFIX="%2Bcpu" | ||
MACOS_X86_64="macosx_.*_x86_64" | ||
MACOS_ARM64="macosx_.*_arm64" | ||
|
||
PLATFORM="linux_x86_64" VERSION_SUFFIX="${PYTORCH_LINUX_VERSION_SUFFIX}" upload_pypi_to_staging torch "${PYTORCH_VERSION}" | ||
PLATFORM="linux_x86_64" VERSION_SUFFIX="${LINUX_VERSION_SUFFIX}" upload_pypi_to_staging torch "${PYTORCH_VERSION}" | ||
PLATFORM="manylinux2014_aarch64" VERSION_SUFFIX="" upload_pypi_to_staging torch "${PYTORCH_VERSION}" | ||
PLATFORM="win_amd64" VERSION_SUFFIX="${CPU_VERSION_SUFFIX}" upload_pypi_to_staging torch "${PYTORCH_VERSION}" | ||
PLATFORM="${MACOS_X86_64}" VERSION_SUFFIX="" upload_pypi_to_staging torch "${PYTORCH_VERSION}" # intel mac | ||
|
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 |
---|---|---|
|
@@ -33,10 +33,8 @@ pushd "${output_tmp_dir}" | |
# Dry run by default | ||
DRY_RUN=${DRY_RUN:-enabled} | ||
# On dry run just echo the commands that are meant to be run | ||
TWINE_UPLOAD="echo twine upload" | ||
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. We should not set any TWINE vars in upload_pypi_to_staging |
||
DRY_RUN_FLAG="--dryrun" | ||
if [[ $DRY_RUN = "disabled" ]]; then | ||
TWINE_UPLOAD="twine upload" | ||
DRY_RUN_FLAG="" | ||
fi | ||
|
||
|
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,10 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Make sure to update these versions when doing a release first | ||
PYTORCH_VERSION=${PYTORCH_VERSION:-2.1.1} | ||
TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.16.1} | ||
TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.1.1} | ||
TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.16.1} | ||
PYTORCH_VERSION=${PYTORCH_VERSION:-2.2.0} | ||
TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.17.0} | ||
TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.2.0} | ||
TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.17.0} | ||
TORCHDATA_VERSION=${TORCHDATA_VERSION:-0.7.1} | ||
TORCHREC_VERSION=${TORCHREC_VERSION:-0.6.0} | ||
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. Give me a sec to land the fbgemm PR #1681, may be this will complain about a conflict and ask for a rebase. |
||
FBGEMMGPU_VERSION=${FBGEMMGPU_VERSION:-0.6.0} |
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.
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.
I think both of these folders where removed from torch. Validated generated binary. It does not have any
caffe2
or/torch/lib/libnvrtc*