Skip to content

Commit

Permalink
try to make pytorch 2.5 use CUDA 12.1
Browse files Browse the repository at this point in the history
Signed-off-by: Bill Nell <[email protected]>
  • Loading branch information
bnellnm committed Oct 25, 2024
1 parent 1ea632b commit c00efe3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires = [
"packaging",
"setuptools>=61",
"setuptools-scm>=8.0",
"torch == 2.5.0",
"torch == 2.5.0 --extra-index-url https://download.pytorch.org/whl/cu121",
"wheel",
"jinja2",
]
Expand Down
2 changes: 1 addition & 1 deletion requirements-build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ ninja
packaging
setuptools>=61
setuptools-scm>=8
torch==2.5.0
torch==2.5.0 --extra-index-url https://download.pytorch.org/whl/cu121
wheel
jinja2
4 changes: 2 additions & 2 deletions requirements-cpu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
-r requirements-common.txt

# Dependencies for x86_64 CPUs
torch == 2.5.0+cpu; platform_machine != "ppc64le"
torchvision; platform_machine != "ppc64le" # required for the image processor of phi3v, this must be updated alongside torch
torch == 2.5.0+cpu --extra-index-url https://download.pytorch.org/whl/cu121; platform_machine != "ppc64le"
torchvision --extra-index-url https://download.pytorch.org/whl/cu121; platform_machine != "ppc64le" # required for the image processor of phi3v, this must be updated alongside torch
8 changes: 5 additions & 3 deletions requirements-cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
# Dependencies for NVIDIA GPUs
ray >= 2.9
nvidia-ml-py # for pynvml package
torch == 2.5.0
torch == 2.5.0 --extra-index-url https://download.pytorch.org/whl/cu121
# These must be updated alongside torch
torchvision == 0.20 # Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version
xformers == 0.0.28.post2; platform_system == 'Linux' and platform_machine == 'x86_64' # Requires PyTorch 2.5.0
# Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version
torchvision == 0.20 --extra-index-url https://download.pytorch.org/whl/cu121
# Requires PyTorch 2.5.0
xformers == 0.0.28.post2 --extra-index-url https://download.pytorch.org/whl/cu121; platform_system == 'Linux' and platform_machine == 'x86_64'
2 changes: 1 addition & 1 deletion requirements-openvino.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Common dependencies
-r requirements-common.txt

torch == 2.5.0 # should be aligned with "common" vLLM torch version
torch == 2.5.0 --extra-index-url https://download.pytorch.org/whl/cu121 # should be aligned with "common" vLLM torch version
openvino >= 2024.4.0 # since 2024.4.0 both CPU and GPU support Paged Attention

optimum @ git+https://github.com/huggingface/optimum.git@main # latest optimum is used to support latest transformers version
Expand Down

0 comments on commit c00efe3

Please sign in to comment.