Skip to content

Add executorch to pypi prep, promotion and validation scripts #1860

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
merged 1 commit into from
Jun 10, 2024
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
15 changes: 11 additions & 4 deletions analytics/validate_pypi_staging.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@
"win_amd64",
"macosx_11_0_arm64",
]
PYTHON_VERSIONS = ["cp38", "cp39", "cp310", "cp311", "cp312"]
PYTHON_VERSIONS = [
"cp38",
"cp39",
"cp310",
"cp311",
"cp312"
]
S3_PYPI_STAGING = "pytorch-backup"
PACKAGE_RELEASES = {
"torch": "2.3.0",
"torchvision": "0.18.0",
"torchaudio": "2.3.0",
"torch": "2.3.1",
"torchvision": "0.18.1",
"torchaudio": "2.3.1",
"torchtext": "0.18.0",
"executorch": "0.2.1"
}

PATTERN_V = "Version:"
Expand Down
6 changes: 4 additions & 2 deletions release/pypi/promote_pypi_to_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ promote_staging_binaries() {
promote_staging_binaries torch "${PYTORCH_VERSION}"
promote_staging_binaries torchvision "${TORCHVISION_VERSION}"
promote_staging_binaries torchaudio "${TORCHAUDIO_VERSION}"
promote_staging_binaries torchtext "${TORCHTEXT_VERSION}"
promote_staging_binaries torchdata "${TORCHDATA_VERSION}"

promote_staging_binaries executorch "${EXECUTORCH_VERSION}"
#promote_staging_binaries torchtext "${TORCHTEXT_VERSION}"
#promote_staging_binaries torchdata "${TORCHDATA_VERSION}"
9 changes: 6 additions & 3 deletions release/pypi/promote_pypi_to_staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ PLATFORM="linux_aarch64" VERSION_SUFFIX="" upload
PLATFORM="win_amd64" VERSION_SUFFIX="${CPU_VERSION_SUFFIX}" upload_pypi_to_staging torchaudio "${TORCHAUDIO_VERSION}"
PLATFORM="${MACOS_ARM64}" VERSION_SUFFIX="" upload_pypi_to_staging torchaudio "${TORCHAUDIO_VERSION}"

PLATFORM="linux_x86" VERSION_SUFFIX="${CPU_VERSION_SUFFIX}" upload_pypi_to_staging torchtext "${TORCHTEXT_VERSION}"
PLATFORM="win_amd64" VERSION_SUFFIX="${CPU_VERSION_SUFFIX}" upload_pypi_to_staging torchtext "${TORCHTEXT_VERSION}"
PLATFORM="${MACOS_ARM64}" VERSION_SUFFIX="" upload_pypi_to_staging torchtext "${TORCHTEXT_VERSION}"
PLATFORM="linux_x86" VERSION_SUFFIX="${WIN_VERSION_SUFFIX}" upload_pypi_to_staging executorch "${EXECUTORCH_VERSION}"
PLATFORM="${MACOS_ARM64}" VERSION_SUFFIX="" upload_pypi_to_staging executorch "${EXECUTORCH_VERSION}"

#PLATFORM="linux_x86" VERSION_SUFFIX="${CPU_VERSION_SUFFIX}" upload_pypi_to_staging torchtext "${TORCHTEXT_VERSION}"
#PLATFORM="win_amd64" VERSION_SUFFIX="${CPU_VERSION_SUFFIX}" upload_pypi_to_staging torchtext "${TORCHTEXT_VERSION}"
#PLATFORM="${MACOS_ARM64}" VERSION_SUFFIX="" upload_pypi_to_staging torchtext "${TORCHTEXT_VERSION}"
7 changes: 4 additions & 3 deletions release/release_versions.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/usr/bin/env bash

# Make sure to update these versions when doing a release first
PYTORCH_VERSION=${PYTORCH_VERSION:-2.3.0}
TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.18.0}
TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.3.0}
PYTORCH_VERSION=${PYTORCH_VERSION:-2.3.1}
TORCHVISION_VERSION=${TORCHVISION_VERSION:-0.18.1}
TORCHAUDIO_VERSION=${TORCHAUDIO_VERSION:-2.3.1}
TORCHTEXT_VERSION=${TORCHTEXT_VERSION:-0.18.0}
TORCHREC_VERSION=${TORCHREC_VERSION:-0.7.0}
TENSORRT_VERSION=${TENSORRT_VERSION:-2.2.0}
EXECUTORCH_VERSION=${EXECUTORCH_VERSION:-0.2.1}

# NB: FBGEMMGPU uses the practice of keeping rc version in the filename, i.e.
# fbgemm_gpu-0.6.0rc1+cpu-cp311-cp311. On the other hand, its final RC will
Expand Down