Skip to content

python3Packages.torch: 2.10.0 -> 2.11.0 - #502810

Merged
GaetanLepage merged 4 commits into
NixOS:masterfrom
GaetanLepage:update/python3Packages.torch
Mar 27, 2026
Merged

GaetanLepage merged 4 commits into
NixOS:masterfrom
GaetanLepage:update/python3Packages.torch

Conversation

@GaetanLepage

@GaetanLepage GaetanLepage commented Mar 23, 2026 •

Copy link
Copy Markdown
Contributor

Things done

Update the torch ecosystem:

cc @teh @thoughtpolice @tscholak @junjihashimoto @ericsagnes
cc @NixOS/cuda-maintainers

Previous update: #484881

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 6.topic: python Python is a high-level, general-purpose programming language. labels Mar 23, 2026
@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch branch from b4663e4 to 013ad37 Compare March 23, 2026 20:56
@ConnorBaker ConnorBaker added the 6.topic: cuda Parallel computing platform and API label Mar 23, 2026
@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch branch 2 times, most recently from 1452054 to 6a42f7f Compare March 23, 2026 22:03

@github-actions github-actions Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR's base branch is set to master, and this PR causes 574 rebuilds.
Please consider whether this PR causes a mass rebuild according to our conventions.
If it does cause a mass rebuild, please change the base branch to the right base branch for your changes (probably staging).
If it does not cause a mass rebuild, this message can be ignored.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: cuda Parallel computing platform and API labels Mar 23, 2026
@LunNova

LunNova commented Mar 23, 2026

Copy link
Copy Markdown
Member

ROCm is falling over with:

       > CMake Error at third_party/gloo/cmake/Hipify.cmake:25 (message):
       >   Failed to get hipify files list!
       > Call Stack (most recent call first):
       >   third_party/gloo/cmake/Dependencies.cmake:142 (include)
       >   third_party/gloo/CMakeLists.txt:112 (include)

I expect to have time to investigate tonight.

@LunNova

LunNova commented Mar 24, 2026

Copy link
Copy Markdown
Member

One small change only to unbreak ROCm:

commit 1af023208f13fc95addc4dc5930afa6d1dfd28a3 (HEAD -> update/python3Packages.torch)
Author: Luna Nova <[email protected]>
Date:   Mon Mar 23 21:05:11 2026 -0700

    python3Packages.torch: fix ROCm build by dropping obsolete gloo patch
    
    substitute to get hipify to work no longer needed, now causes Failed to get hipify files list!

diff --git a/pkgs/development/python-modules/torch/source/default.nix b/pkgs/development/python-modules/torch/source/default.nix
index c2028ccd7036..3c78d2b3ff67 100644
--- a/pkgs/development/python-modules/torch/source/default.nix
+++ b/pkgs/development/python-modules/torch/source/default.nix
@@ -360,10 +360,6 @@ buildPythonPackage.override { inherit stdenv; } (finalAttrs: {
       '"${lib.getExe' targetPackages.stdenv.cc "${targetPackages.stdenv.cc.targetPrefix}c++"}"'
   ''
   + lib.optionalString rocmSupport ''
-    # https://github.com/facebookincubator/gloo/pull/297
-    substituteInPlace third_party/gloo/cmake/Hipify.cmake \
-      --replace-fail "\''${HIPIFY_COMMAND}" "python \''${HIPIFY_COMMAND}"
-
     # Doesn't pick up the environment variable?
     substituteInPlace third_party/kineto/libkineto/CMakeLists.txt \
       --replace-fail "\''$ENV{ROCM_SOURCE_DIR}" "${rocmtoolkit_joined}"

Noticed we might be wasting space from aotriton contents getting copied into torch instead of linked to aotriton's out, seems like a preexisting issue and non-blocking.

@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch branch from 6a42f7f to bb40127 Compare March 24, 2026 13:06
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

Noticed we might be wasting space from aotriton contents getting copied into torch instead of linked to aotriton's out, seems like a preexisting issue and non-blocking.

Yes, that would be nice!

@ConnorBaker ConnorBaker mentioned this pull request Mar 25, 2026
13 tasks
@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch branch from bb40127 to 7ea7daa Compare March 26, 2026 07:55
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. labels Mar 26, 2026
@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch branch from 7ea7daa to fa76b01 Compare March 27, 2026 20:30
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

I think that all (core) packages are building fine with rocmSupport.
Feel free to do some testing @LunNova :)

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 502810 --package python314Packages.torchaudio --package python3Packages.torchcodec --package python314Packages.torchvision --package python313Packages.torchaudio --package python314Packages.torchcodec --package python313Packages.torchvision --package python314Packages.torch --package python313Packages.torch
Commit: fa76b01583b65d0e1c5135516c0514b4950e3d9e


x86_64-linux

✅ 22 packages built:
  • python313Packages.torch
  • python313Packages.torch.cxxdev (python313Packages.torch.cxxdev.cxxdev, python313Packages.torch.cxxdev.dev, python313Packages.torch.cxxdev.dist, python313Packages.torch.cxxdev.lib)
  • python313Packages.torch.dev (python313Packages.torch.dev.cxxdev, python313Packages.torch.dev.dev, python313Packages.torch.dev.dist, python313Packages.torch.dev.lib)
  • python313Packages.torch.dist (python313Packages.torch.dist.cxxdev, python313Packages.torch.dist.dev, python313Packages.torch.dist.dist, python313Packages.torch.dist.lib)
  • python313Packages.torch.lib (python313Packages.torch.lib.cxxdev, python313Packages.torch.lib.dev, python313Packages.torch.lib.dist, python313Packages.torch.lib.lib)
  • python313Packages.torchaudio
  • python313Packages.torchaudio.dist (python313Packages.torchaudio.dist.dist)
  • python313Packages.torchvision
  • python313Packages.torchvision.dist (python313Packages.torchvision.dist.dist)
  • python314Packages.torch
  • python314Packages.torch.cxxdev (python314Packages.torch.cxxdev.cxxdev, python314Packages.torch.cxxdev.dev, python314Packages.torch.cxxdev.dist, python314Packages.torch.cxxdev.lib)
  • python314Packages.torch.dev (python314Packages.torch.dev.cxxdev, python314Packages.torch.dev.dev, python314Packages.torch.dev.dist, python314Packages.torch.dev.lib)
  • python314Packages.torch.dist (python314Packages.torch.dist.cxxdev, python314Packages.torch.dist.dev, python314Packages.torch.dist.dist, python314Packages.torch.dist.lib)
  • python314Packages.torch.lib (python314Packages.torch.lib.cxxdev, python314Packages.torch.lib.dev, python314Packages.torch.lib.dist, python314Packages.torch.lib.lib)
  • python314Packages.torchaudio
  • python314Packages.torchaudio.dist (python314Packages.torchaudio.dist.dist)
  • python314Packages.torchcodec
  • python314Packages.torchcodec.dist (python314Packages.torchcodec.dist.dist)
  • python314Packages.torchvision
  • python314Packages.torchvision.dist (python314Packages.torchvision.dist.dist)
  • python3Packages.torchcodec
  • python3Packages.torchcodec.dist (python3Packages.torchcodec.dist.dist)

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 502810 --extra-nixpkgs-config '{ rocmSupport = true; }' --package python314Packages.torchaudio --package python313Packages.torchvision --package python314Packages.torch --package python3Packages.torchcodec --package python314Packages.torchvision --package python313Packages.torchaudio --package python313Packages.torch --package python314Packages.torchcodec
Commit: fa76b01583b65d0e1c5135516c0514b4950e3d9e


x86_64-linux

✅ 22 packages built:
  • python313Packages.torch
  • python313Packages.torch.cxxdev (python313Packages.torch.cxxdev.cxxdev, python313Packages.torch.cxxdev.dev, python313Packages.torch.cxxdev.dist, python313Packages.torch.cxxdev.lib)
  • python313Packages.torch.dev (python313Packages.torch.dev.cxxdev, python313Packages.torch.dev.dev, python313Packages.torch.dev.dist, python313Packages.torch.dev.lib)
  • python313Packages.torch.dist (python313Packages.torch.dist.cxxdev, python313Packages.torch.dist.dev, python313Packages.torch.dist.dist, python313Packages.torch.dist.lib)
  • python313Packages.torch.lib (python313Packages.torch.lib.cxxdev, python313Packages.torch.lib.dev, python313Packages.torch.lib.dist, python313Packages.torch.lib.lib)
  • python313Packages.torchaudio
  • python313Packages.torchaudio.dist (python313Packages.torchaudio.dist.dist)
  • python313Packages.torchvision
  • python313Packages.torchvision.dist (python313Packages.torchvision.dist.dist)
  • python314Packages.torch
  • python314Packages.torch.cxxdev (python314Packages.torch.cxxdev.cxxdev, python314Packages.torch.cxxdev.dev, python314Packages.torch.cxxdev.dist, python314Packages.torch.cxxdev.lib)
  • python314Packages.torch.dev (python314Packages.torch.dev.cxxdev, python314Packages.torch.dev.dev, python314Packages.torch.dev.dist, python314Packages.torch.dev.lib)
  • python314Packages.torch.dist (python314Packages.torch.dist.cxxdev, python314Packages.torch.dist.dev, python314Packages.torch.dist.dist, python314Packages.torch.dist.lib)
  • python314Packages.torch.lib (python314Packages.torch.lib.cxxdev, python314Packages.torch.lib.dev, python314Packages.torch.lib.dist, python314Packages.torch.lib.lib)
  • python314Packages.torchaudio
  • python314Packages.torchaudio.dist (python314Packages.torchaudio.dist.dist)
  • python314Packages.torchcodec
  • python314Packages.torchcodec.dist (python314Packages.torchcodec.dist.dist)
  • python314Packages.torchvision
  • python314Packages.torchvision.dist (python314Packages.torchvision.dist.dist)
  • python3Packages.torchcodec
  • python3Packages.torchcodec.dist (python3Packages.torchcodec.dist.dist)

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 502810 --extra-nixpkgs-config '{ allowUnfree = true; cudaSupport = true; }' --package python3Packages.torchcodec --package python313Packages.torch --package python313Packages.torchaudio --package python314Packages.torch --package python314Packages.torchvision --package python314Packages.torchcodec --package python314Packages.torchaudio --package python313Packages.torchvision
Commit: fa76b01583b65d0e1c5135516c0514b4950e3d9e


x86_64-linux

✅ 22 packages built:
  • python313Packages.torch
  • python313Packages.torch.cxxdev (python313Packages.torch.cxxdev.cxxdev, python313Packages.torch.cxxdev.dev, python313Packages.torch.cxxdev.dist, python313Packages.torch.cxxdev.lib)
  • python313Packages.torch.dev (python313Packages.torch.dev.cxxdev, python313Packages.torch.dev.dev, python313Packages.torch.dev.dist, python313Packages.torch.dev.lib)
  • python313Packages.torch.dist (python313Packages.torch.dist.cxxdev, python313Packages.torch.dist.dev, python313Packages.torch.dist.dist, python313Packages.torch.dist.lib)
  • python313Packages.torch.lib (python313Packages.torch.lib.cxxdev, python313Packages.torch.lib.dev, python313Packages.torch.lib.dist, python313Packages.torch.lib.lib)
  • python313Packages.torchaudio
  • python313Packages.torchaudio.dist (python313Packages.torchaudio.dist.dist)
  • python313Packages.torchvision
  • python313Packages.torchvision.dist (python313Packages.torchvision.dist.dist)
  • python314Packages.torch
  • python314Packages.torch.cxxdev (python314Packages.torch.cxxdev.cxxdev, python314Packages.torch.cxxdev.dev, python314Packages.torch.cxxdev.dist, python314Packages.torch.cxxdev.lib)
  • python314Packages.torch.dev (python314Packages.torch.dev.cxxdev, python314Packages.torch.dev.dev, python314Packages.torch.dev.dist, python314Packages.torch.dev.lib)
  • python314Packages.torch.dist (python314Packages.torch.dist.cxxdev, python314Packages.torch.dist.dev, python314Packages.torch.dist.dist, python314Packages.torch.dist.lib)
  • python314Packages.torch.lib (python314Packages.torch.lib.cxxdev, python314Packages.torch.lib.dev, python314Packages.torch.lib.dist, python314Packages.torch.lib.lib)
  • python314Packages.torchaudio
  • python314Packages.torchaudio.dist (python314Packages.torchaudio.dist.dist)
  • python314Packages.torchcodec
  • python314Packages.torchcodec.dist (python314Packages.torchcodec.dist.dist)
  • python314Packages.torchvision
  • python314Packages.torchvision.dist (python314Packages.torchvision.dist.dist)
  • python3Packages.torchcodec
  • python3Packages.torchcodec.dist (python3Packages.torchcodec.dist.dist)

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 502810 --extra-nixpkgs-config '{ allowUnfree = true; cudaSupport = true; }' --package python313Packages.torch.tests.tester-cudaAvailable.gpuCheck --package python314Packages.torchaudio.gpuCheck --package python313Packages.torch.tests.tester-compileCpu.gpuCheck --package python313Packages.torch.tests.tester-compileCuda.gpuCheck --package python314Packages.torch.tests.tester-compileCpu.gpuCheck --package python314Packages.torch.tests.tester-cudaAvailable.gpuCheck --package python3Packages.torchaudio.gpuCheck --package python314Packages.torch.tests.tester-compileCuda.gpuCheck
Commit: fa76b01583b65d0e1c5135516c0514b4950e3d9e


x86_64-linux

✅ 7 packages built:
  • python313Packages.torch.tests.tester-compileCpu.gpuCheck
  • python313Packages.torch.tests.tester-compileCuda.gpuCheck
  • python313Packages.torch.tests.tester-cudaAvailable.gpuCheck
  • python314Packages.torchaudio.gpuCheck
  • python314Packages.torchaudio.gpuCheck.dist (python314Packages.torchaudio.gpuCheck.dist.dist)
  • python3Packages.torchaudio.gpuCheck
  • python3Packages.torchaudio.gpuCheck.dist (python3Packages.torchaudio.gpuCheck.dist.dist)

@GaetanLepage
GaetanLepage requested review from LunNova and NickCao March 27, 2026 21:21
@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch branch from fa76b01 to 1c51f99 Compare March 27, 2026 21:57
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 502810 --extra-nixpkgs-config '{ rocmSupport = true; }' --package python313Packages.torchvision --package python314Packages.torchaudio --package python314Packages.torchvision --package python313Packages.torchaudio --package python313Packages.torch --package python3Packages.torchcodec --package python314Packages.torchcodec --package python314Packages.torch
Commit: 1c51f99cb01412ef9028b66b6cea505ad741cfa7


x86_64-linux

✅ 22 packages built:
  • python313Packages.torch
  • python313Packages.torch.cxxdev (python313Packages.torch.cxxdev.cxxdev, python313Packages.torch.cxxdev.dev, python313Packages.torch.cxxdev.dist, python313Packages.torch.cxxdev.lib)
  • python313Packages.torch.dev (python313Packages.torch.dev.cxxdev, python313Packages.torch.dev.dev, python313Packages.torch.dev.dist, python313Packages.torch.dev.lib)
  • python313Packages.torch.dist (python313Packages.torch.dist.cxxdev, python313Packages.torch.dist.dev, python313Packages.torch.dist.dist, python313Packages.torch.dist.lib)
  • python313Packages.torch.lib (python313Packages.torch.lib.cxxdev, python313Packages.torch.lib.dev, python313Packages.torch.lib.dist, python313Packages.torch.lib.lib)
  • python313Packages.torchaudio
  • python313Packages.torchaudio.dist (python313Packages.torchaudio.dist.dist)
  • python313Packages.torchvision
  • python313Packages.torchvision.dist (python313Packages.torchvision.dist.dist)
  • python314Packages.torch
  • python314Packages.torch.cxxdev (python314Packages.torch.cxxdev.cxxdev, python314Packages.torch.cxxdev.dev, python314Packages.torch.cxxdev.dist, python314Packages.torch.cxxdev.lib)
  • python314Packages.torch.dev (python314Packages.torch.dev.cxxdev, python314Packages.torch.dev.dev, python314Packages.torch.dev.dist, python314Packages.torch.dev.lib)
  • python314Packages.torch.dist (python314Packages.torch.dist.cxxdev, python314Packages.torch.dist.dev, python314Packages.torch.dist.dist, python314Packages.torch.dist.lib)
  • python314Packages.torch.lib (python314Packages.torch.lib.cxxdev, python314Packages.torch.lib.dev, python314Packages.torch.lib.dist, python314Packages.torch.lib.lib)
  • python314Packages.torchaudio
  • python314Packages.torchaudio.dist (python314Packages.torchaudio.dist.dist)
  • python314Packages.torchcodec
  • python314Packages.torchcodec.dist (python314Packages.torchcodec.dist.dist)
  • python314Packages.torchvision
  • python314Packages.torchvision.dist (python314Packages.torchvision.dist.dist)
  • python3Packages.torchcodec
  • python3Packages.torchcodec.dist (python3Packages.torchcodec.dist.dist)

@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 27, 2026
@GaetanLepage
GaetanLepage added this pull request to the merge queue Mar 27, 2026
Merged via the queue into NixOS:master with commit 4fc8064 Mar 27, 2026
26 of 30 checks passed
@GaetanLepage
GaetanLepage deleted the update/python3Packages.torch branch March 27, 2026 23:34
@github-project-automation github-project-automation Bot moved this from New to ✅ Done in CUDA Team Mar 27, 2026
@LunNova

LunNova commented Mar 28, 2026

Copy link
Copy Markdown
Member

thanks for fixing rocmSupport on codec/audio!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants