Skip to content

[RELEASE] Remove nightly pin from install_requirements.py #5402

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 2 commits into from
Sep 17, 2024
Merged
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
12 changes: 6 additions & 6 deletions install_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ def python_is_compatible():
NIGHTLY_VERSION = "dev20240901"

# The pip repository that hosts nightly torch packages.
TORCH_NIGHTLY_URL = "https://download.pytorch.org/whl/nightly/cpu"
TORCH_URL = "https://download.pytorch.org/whl/test/cpu"

# pip packages needed by exir.
EXIR_REQUIREMENTS = [
f"torch==2.5.0.{NIGHTLY_VERSION}",
f"torchvision==0.20.0.{NIGHTLY_VERSION}", # For testing.
"torch==2.5.0",
"torchvision==0.20.0", # For testing.
"typing-extensions",
]

Expand All @@ -121,7 +121,7 @@ def python_is_compatible():
# TODO: Make each example publish its own requirements.txt
EXAMPLES_REQUIREMENTS = [
"timm==1.0.7",
f"torchaudio==2.5.0.{NIGHTLY_VERSION}",
"torchaudio==2.5.0",
"torchsr==1.0.4",
"transformers==4.42.4",
]
Expand All @@ -140,7 +140,7 @@ def python_is_compatible():
"install",
*REQUIREMENTS_TO_INSTALL,
"--extra-index-url",
TORCH_NIGHTLY_URL,
TORCH_URL,
],
check=True,
)
Expand All @@ -167,7 +167,7 @@ def python_is_compatible():
"--no-build-isolation",
"-v",
"--extra-index-url",
TORCH_NIGHTLY_URL,
TORCH_URL,
],
check=True,
)
Loading