Skip to content

Commit

Permalink
fix: hardcoded the index url for installing torchvision on the gpu do…
Browse files Browse the repository at this point in the history
…ckerfile
  • Loading branch information
vedpatwardhan authored Feb 5, 2024
1 parent 8693a94 commit 6fb618f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/gpu_framework_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ def install_pkg(path, pkg, base="fw/"):
" --no-cache-dir",
shell=True,
)
subprocess.run(
f"yes |pip3 install --upgrade torchvision --index-url"
f" https://download.pytorch.org/whl/cu121 --target"
f" {path} --default-timeout=100 --extra-index-url"
" --no-cache-dir",
shell=True,
)
elif pkg.split("==")[0] if "==" in pkg else pkg == "jax":
subprocess.run(
f"yes |pip install --upgrade --target {path} 'jax[cuda12_pip]' -f"
Expand Down

0 comments on commit 6fb618f

Please sign in to comment.