diff options
| author | Ayan Das <bvits@riseup.net> | 2026-01-29 02:08:56 +0530 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-02-22 18:41:10 +0100 |
| commit | 52b5ef81a12e3eeb0ee710546bfd054b7cf1e6d3 (patch) | |
| tree | a1d9fc88a7e1598d8f27e583b8b932175c8bd460 /gnu/packages/machine-learning.scm | |
| parent | 5895cb75580acbc83406daeb0bcb8dcf15b71615 (diff) | |
gnu: python-pytorch: Update to 2.10.0.
* gnu/packages/machine-learning.scm (%python-pytorch-version): Update to 2.10.0.
(%python-pytorch-src)[source]: Update hash.
(python-pytorch)[arguments]: Fix build by including Utils.hpp.
* gnu/packages/patches/python-pytorch-runpath.patch: Update for 2.10.0.
* gnu/packages/patches/python-pytorch-system-libraries.patch: Update for 2.10.0.
Change-Id: Ic579058f302d2d8face536ae9980f06854888615
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/machine-learning.scm')
| -rw-r--r-- | gnu/packages/machine-learning.scm | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index c4bcbbe650b..19db91ec368 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -4810,7 +4810,7 @@ contains facebook extensions and is used by PyTorch.") PyTorch.") (license license:expat))) -(define %python-pytorch-version "2.9.0") +(define %python-pytorch-version "2.10.0") (define %python-pytorch-src (origin @@ -4821,7 +4821,7 @@ PyTorch.") (file-name (git-file-name "python-pytorch" %python-pytorch-version)) (sha256 (base32 - "005gj27qikkgbibbk00z8xs9a8xms2fxapm53inp31zxm4853myh")) + "05pw5i1fm1i3grj8ksyrprq3an4a5pzn4ii1jkym00d0nabgbkyx")) (patches (search-patches "python-pytorch-system-libraries.patch" "python-pytorch-runpath.patch" "python-pytorch-without-kineto.patch" @@ -5007,12 +5007,20 @@ PyTorch.") "caffe2/serialize/inline_container.cc" "torch/csrc/inductor/aoti_package/model_package_loader.cpp")) + ;; Fix missing include for getCvarString/getCvarInt. + (substitute* "torch/csrc/distributed/c10d/GlooDeviceFactory.cpp" + (("#include <c10/util/Exception.h>" all) + (string-append + "#include <torch/csrc/distributed/c10d/Utils.hpp>\n\n" + all))) + ;; Fix moodycamel/concurrentqueue includes for system package (substitute* '("c10/util/Semaphore.h" "c10/test/util/Semaphore_test.cpp" "torch/nativert/executor/ParallelGraphExecutor.cpp") (("<moodycamel/concurrentqueue\\.h>") "<concurrentqueue.h>") - (("<moodycamel/lightweightsemaphore\\.h>") "<lightweightsemaphore.h>")) + (("<moodycamel/lightweightsemaphore\\.h>") + "<lightweightsemaphore.h>")) (substitute* "aten/src/ATen/native/vulkan/api/Allocator.h" (("<include/vk_mem_alloc.h>") @@ -5054,10 +5062,10 @@ PyTorch.") (substitute* '("requirements.txt" "setup.py") (("sympy>=1\\.13\\.3") "sympy>=1.13.1")) - ;; Avoid ModuleNotFoundError. + ;; Avoid ModuleNotFoundError while preserving setup.py flow. (substitute* "setup.py" - (("from build_bundled import create_bundled" all) - (string-append "return # " all))))) + (("from build_bundled import create_bundled") + "create_bundled = lambda *args, **kwargs: None")))) (add-after 'use-system-libraries 'skip-nccl-call (lambda _ ;; Comment-out `checkout_nccl()` invokation in build_pytorch(). |
