-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
[Misc] Upgrade to pytorch 2.5 #9588
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
Changes from 6 commits
e970933
5a54b48
1ea632b
c00efe3
c4ebdba
39f9c34
f1f3caa
568510a
0068133
5250a65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -424,11 +424,7 @@ function (define_gpu_extension_target GPU_MOD_NAME) | |
| # Don't use `TORCH_LIBRARIES` for CUDA since it pulls in a bunch of | ||
| # dependencies that are not necessary and may not be installed. | ||
| if (GPU_LANGUAGE STREQUAL "CUDA") | ||
| if ("${CUDA_CUDA_LIB}" STREQUAL "") | ||
| set(CUDA_CUDA_LIB "${CUDA_CUDA_LIBRARY}") | ||
| endif() | ||
| target_link_libraries(${GPU_MOD_NAME} PRIVATE ${CUDA_CUDA_LIB} | ||
| ${CUDA_LIBRARIES}) | ||
| target_link_libraries(${GPU_MOD_NAME} PRIVATE CUDA::cudart CUDA::cuda_driver) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice! |
||
| else() | ||
| target_link_libraries(${GPU_MOD_NAME} PRIVATE ${TORCH_LIBRARIES}) | ||
| endif() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,6 @@ ninja | |
| packaging | ||
| setuptools>=61 | ||
| setuptools-scm>=8 | ||
| torch==2.4.0 | ||
| torch==2.5.0 | ||
| wheel | ||
| jinja2 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| # Dependencies for NVIDIA GPUs | ||
| ray >= 2.9 | ||
| nvidia-ml-py # for pynvml package | ||
| torch == 2.4.0 | ||
| torch == 2.5.0 | ||
|
||
| # These must be updated alongside torch | ||
| torchvision == 0.19 # Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version | ||
| xformers == 0.0.27.post2; platform_system == 'Linux' and platform_machine == 'x86_64' # Requires PyTorch 2.4.0 | ||
| 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 | ||
Uh oh!
There was an error while loading. Please reload this page.