Skip to content
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

Update the tpu dependency installation command #499

Merged
merged 1 commit into from
Dec 5, 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
3 changes: 2 additions & 1 deletion dags/legacy_test/tests/pytorch/nightly/common.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ local volumes = import 'templates/volumes.libsonnet';
pip3 install --user --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
pip install --user \
'torch_xla[tpu] @ https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-2.6.0.dev-cp310-cp310-linux_x86_64.whl' \
-f https://storage.googleapis.com/libtpu-releases/index.html
-f https://storage.googleapis.com/libtpu-releases/index.html \
-f https://storage.googleapis.com/libtpu-wheels/index.html
pip3 install pillow
git clone --depth=1 https://github.com/pytorch/pytorch.git
cd pytorch
Expand Down
6 changes: 3 additions & 3 deletions dags/pytorch_xla/configs/pytorchxla_torchbench_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def model_install_cmds(output_file=None) -> str:
# "pip install torch_xla[pallas] -f https://storage.googleapis.com/jax-releases/jax_nightly_releases.html -f https://storage.googleapis.com/jax-releases/jaxlib_nightly_releases.html",
"pip3 uninstall -y libtpu-nightly jax jaxlib",
"cd ~/xla/experimental/torch_xla2/",
"pip3 install --user -e .[tpu] -f https://storage.googleapis.com/libtpu-releases/index.html",
"pip3 install --user -e .[tpu] -f https://storage.googleapis.com/libtpu-releases/index.html -f https://storage.googleapis.com/libtpu-wheels/index.html",
)
if use_xla2
else ()
Expand All @@ -185,7 +185,7 @@ def model_install_cmds(output_file=None) -> str:
f"pip3 install --user --pre {version_mapping.TORCH.value} {version_mapping.TORCHVISION.value} {version_mapping.TORCHAUDIO.value} --index-url {version_mapping.TORCH_INDEX_CPU_URL.value}"
),
(
f"pip3 install --user 'torch_xla[tpu] @{version_mapping.TORCH_XLA_TPU_WHEEL.value}' -f https://storage.googleapis.com/libtpu-releases/index.html"
f"pip3 install --user 'torch_xla[tpu] @{version_mapping.TORCH_XLA_TPU_WHEEL.value}' -f https://storage.googleapis.com/libtpu-releases/index.html -f https://storage.googleapis.com/libtpu-wheels/index.html"
),
"pip3 install --user psutil",
"cd; git clone https://github.com/pytorch/benchmark.git",
Expand Down Expand Up @@ -326,7 +326,7 @@ def get_nvidia_driver_install_cmd(driver_version: str) -> str:
# TODO(piz): torch_xla2 only support nightly test at this time.
"pip3 uninstall -y libtpu-nightly jax jaxlib", # in case libtpu is installed from torch_xla
"cd /tmp/xla/experimental/torch_xla2/",
"pip3 install --user -e .[cuda] -f https://storage.googleapis.com/libtpu-releases/index.html",
"pip3 install --user -e .[cuda] -f https://storage.googleapis.com/libtpu-releases/index.html -f https://storage.googleapis.com/libtpu-wheels/index.html",
)
if use_xla2
else ()
Expand Down
Loading