Skip to content

Commit

Permalink
Merge pull request #150 from deiteris/fix-torch-version
Browse files Browse the repository at this point in the history
Include nvidia-cudnn-cu12 for Linux
  • Loading branch information
deiteris authored Jul 24, 2024
2 parents c34cde7 + d1dad93 commit 94bca9a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 9 deletions.
5 changes: 5 additions & 0 deletions server/requirements-common.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# # 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
5 changes: 5 additions & 0 deletions server/requirements-cpu.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# # 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
torchaudio
Expand Down
15 changes: 9 additions & 6 deletions server/requirements-cuda.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# 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
# # 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
torchaudio
faiss-cpu==1.8.0; sys_platform!='linux'
faiss-gpu; sys_platform=='linux'
Expand Down
5 changes: 5 additions & 0 deletions server/requirements-dml.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# # 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: 6 additions & 3 deletions server/requirements-rocm.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# # 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
# 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.4.0 has problems with Linux builds
torch==2.3.1
torchaudio
faiss-cpu==1.8.0
Expand Down

0 comments on commit 94bca9a

Please sign in to comment.