Skip to content

Commit

Permalink
[pytorch] Updates PyTorch to 2.5.1 (#3517)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Nov 12, 2024
1 parent 890d980 commit 0abd96e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nightly_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ jobs:
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.1.2 -Psnapshot
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.3.1 -Psnapshot
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.4.0 -Psnapshot
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.5.1 -Psnapshot
./gradlew clean engines:ml:xgboost:publish -Pgpu -Psnapshot
./gradlew clean publish -Psnapshot
cd bom
Expand All @@ -196,6 +197,7 @@ jobs:
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.1.2 -P${{ github.event.inputs.mode }}
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.3.1 -P${{ github.event.inputs.mode }}
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.4.0 -P${{ github.event.inputs.mode }}
./gradlew clean engines:pytorch:pytorch-jni:publish -Ppt_version=2.5.1 -P${{ github.event.inputs.mode }}
./gradlew clean engines:ml:xgboost:publish -Pgpu -P${{ github.event.inputs.mode }}
./gradlew clean publish -P${{ github.event.inputs.mode }}
cd bom
Expand Down
2 changes: 1 addition & 1 deletion engines/pytorch/pytorch-engine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The following table illustrates which pytorch version that DJL supports:

| PyTorch engine version | PyTorch native library version |
|------------------------|-------------------------------------------|
| pytorch-engine:0.31.0 | 1.13.1, 2.1.2, 2.3.1, **2.4.0** |
| pytorch-engine:0.31.0 | 1.13.1, 2.1.2, 2.3.1, 2.4.0, **2.5.1** |
| pytorch-engine:0.30.0 | 1.13.1, 2.1.2, 2.3.1, **2.4.0** |
| pytorch-engine:0.29.0 | 1.13.1, 2.1.2, 2.2.2, **2.3.1** |
| pytorch-engine:0.28.0 | 1.13.1, 2.1.2, **2.2.2** |
Expand Down
6 changes: 2 additions & 4 deletions engines/pytorch/pytorch-jni/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import java.net.URL

plugins {
ai.djl.javaProject
ai.djl.publish
Expand Down Expand Up @@ -32,7 +30,7 @@ tasks {
"osx-aarch64/cpu/libdjl_torch.dylib",
"win-x86_64/cpu/djl_torch.dll"
) + when {
ptVersion.startsWith("2.4.") -> listOf(
ptVersion.matches(Regex("2.[4-5].\\d")) -> listOf(
"linux-x86_64/cu124/libdjl_torch.so",
"linux-x86_64/cu124-precxx11/libdjl_torch.so",
"win-x86_64/cu124/djl_torch.dll"
Expand Down Expand Up @@ -103,4 +101,4 @@ publishing {
}
}
}
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ format.version = "1.1"

[versions]
djl = "0.31.0"
pytorch = "2.4.0"
pytorch = "2.5.1"
tensorflow = "2.16.1"
tensorflowCore = "1.0.0-rc.1"
mxnet = "1.9.1"
Expand Down

0 comments on commit 0abd96e

Please sign in to comment.