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 torch dependencies #149

Merged
merged 1 commit into from
Jul 24, 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
5 changes: 0 additions & 5 deletions server/requirements-common.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# # apt-get update
# # apt-get install -y emacs mlocate wget git curl gcc g++ make unzip
# # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
# # bash Anaconda3-2022.10-Linux-x86_64.sh

# At least 14.38 is required by onnxruntime
msvc-runtime>=14.38; sys_platform=='win32'
uvicorn
Expand Down
9 changes: 1 addition & 8 deletions server/requirements-cpu.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# # apt-get update
# # apt-get install -y emacs mlocate wget git curl gcc g++ make unzip
# # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
# # bash Anaconda3-2022.10-Linux-x86_64.sh

--extra-index-url https://download.pytorch.org/whl/cpu
# torch 2.4.0 has problems with Linux builds
torch==2.3.1; sys_platform!='darwin'
torch; sys_platform=='darwin'
torch
torchaudio
faiss-cpu==1.8.0

Expand Down
15 changes: 6 additions & 9 deletions server/requirements-cuda.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# # apt-get update
# # apt-get install -y emacs mlocate wget git curl gcc g++ make unzip
# # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
# # bash Anaconda3-2022.10-Linux-x86_64.sh

# PyPI onnxruntime-gpu is compiled with CUDA 11.x
--extra-index-url https://download.pytorch.org/whl/cu118
# torch 2.4.0 has problems with Linux builds
torch==2.3.1
# onnxruntime doesn't come with prebuilt binaries, so we use the ones that come with PyTorch
# Torch >=2.4.0 for CUDA 11.8 and 12.x is compiled with cuDNN 9.x
# onnxruntime-gpu for CUDA 12.x is compiled with CUDA 12.x and cuDNN 9.x
--extra-index-url https://download.pytorch.org/whl/cu121
--extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
torch>=2.4.0
torchaudio
faiss-cpu==1.8.0; sys_platform!='linux'
faiss-gpu; sys_platform=='linux'
Expand Down
5 changes: 0 additions & 5 deletions server/requirements-dml.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# # apt-get update
# # apt-get install -y emacs mlocate wget git curl gcc g++ make unzip
# # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
# # bash Anaconda3-2022.10-Linux-x86_64.sh

torch==2.3.1 # torch-directml-0.2.2.dev240614 supports up to to 2.3.1
torchaudio
torch-directml
Expand Down
9 changes: 3 additions & 6 deletions server/requirements-rocm.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# # apt-get update
# # apt-get install -y emacs mlocate wget git curl gcc g++ make unzip
# # wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
# # bash Anaconda3-2022.10-Linux-x86_64.sh

--extra-index-url https://download.pytorch.org/whl/rocm6.0
# torch 2.4.0 has problems with Linux builds
# onnxruntime doesn't come with prebuilt binaries, so we use the ones that come with PyTorch
# torch >=2.4.0 is compiled with cuDNN 9.x
# onnxruntime-rocm is compiled with cuDNN 8.x
torch==2.3.1
torchaudio
faiss-cpu==1.8.0
Expand Down