Skip to content

Commit

Permalink
libtorch-bin: 2.3.0 -> 2.5.0 (#350526)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksanaa authored Oct 29, 2024
2 parents d3bd0b2 + 8525960 commit ff58a38
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/science/math/libtorch/bin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let
# this derivation. However, we should ensure on version bumps
# that the CUDA toolkit for `passthru.tests` is still
# up-to-date.
version = "2.3.0";
version = "2.5.0";
device = if cudaSupport then "cuda" else "cpu";
srcs = import ./binary-hashes.nix version;
unavailable = throw "libtorch is not available for this platform";
Expand Down
22 changes: 11 additions & 11 deletions pkgs/development/libraries/science/math/libtorch/binary-hashes.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
version: builtins.getAttr version {
"2.3.0" = {
aarch64-darwin-cpu = {
name = "libtorch-macos-arm64-2.3.0.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.3.0.zip";
hash = "sha256-l4qY1jbsECN5qm7dWJ2jSvKuQwQ/HI6G6Vq1Kh2rxkM=";
"2.5.0" = {
aarch64-darwin-cpu = {
name = "libtorch-macos-arm64-2.5.0.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-macos-arm64-2.5.0.zip";
hash = "sha256-4d9YKUuvAESBeG/WCUsQfEHwdB2z34grnlwWslj4970=";
};
x86_64-linux-cpu = {
name = "libtorch-cxx11-abi-shared-with-deps-2.3.0-cpu.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Bcpu.zip";
hash = "sha256-dKAk6UusK2eQIcP0oMXh9cnufMpy5Ph4SGPkIPPV6ds=";
name = "libtorch-cxx11-abi-shared-with-deps-2.5.0-cpu.zip";
url = "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcpu.zip";
hash = "sha256-gUzPhc4Z8rTPhIm89pPoLP0Ww17ono+/xgMW46E/Tro=";
};
x86_64-linux-cuda = {
name = "libtorch-cxx11-abi-shared-with-deps-2.3.0-cu121.zip";
url = "https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.3.0%2Bcu121.zip";
hash = "sha256-6B+NF6q78I2WKFudn8bK+eNYDi1zQ7mdgv06fZbm2rE=";
name = "libtorch-cxx11-abi-shared-with-deps-2.5.0-cu124.zip";
url = "https://download.pytorch.org/libtorch/cu124/libtorch-cxx11-abi-shared-with-deps-2.5.0%2Bcu124.zip";
hash = "sha256-UaX47GAwyZ6UmzgY85TeAHmy3u52pBHhiyM5NAz7ens=";
};
};
}
3 changes: 1 addition & 2 deletions pkgs/development/libraries/science/math/libtorch/prefetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ set -eou pipefail
version=$1

bucket="https://download.pytorch.org/libtorch"
CUDA_VERSION=cu121
CUDA_VERSION=cu124

url_and_key_list=(
"aarch64-darwin-cpu $bucket/cpu/libtorch-macos-arm64-${version}.zip libtorch-macos-arm64-${version}.zip"
"x86_64-darwin-cpu $bucket/cpu/libtorch-macos-x86_64-${version}.zip libtorch-macos-x86_64-${version}.zip"
"x86_64-linux-cpu $bucket/cpu/libtorch-cxx11-abi-shared-with-deps-${version}%2Bcpu.zip libtorch-cxx11-abi-shared-with-deps-${version}-cpu.zip"
"x86_64-linux-cuda $bucket/${CUDA_VERSION}/libtorch-cxx11-abi-shared-with-deps-${version}%2B${CUDA_VERSION}.zip libtorch-cxx11-abi-shared-with-deps-${version}-${CUDA_VERSION}.zip"
)
Expand Down

0 comments on commit ff58a38

Please sign in to comment.