GNU bug report logs - #78726
[PATCH 0/5] Update PyTorch to 2.7.0 with dependencies

Previous Next

Package: guix-patches;

Reported by: Ayan Das <bvits <at> riseup.net>

Date: Sun, 8 Jun 2025 15:25:06 UTC

Severity: normal

Tags: patch

Merged with 78722, 78723, 78724, 78725

Done: Ludovic Courtès <ludo <at> gnu.org>

To reply to this bug, email your comments to 78726 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#78726; Package guix-patches. (Sun, 08 Jun 2025 15:25:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ayan Das <bvits <at> riseup.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 08 Jun 2025 15:25:06 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ayan Das <bvits <at> riseup.net>
To: guix-patches <at> gnu.org
Subject: [PATCH 5/5] gnu: python-captum: Fix tests for PyTorch 2.7.0.
Date: Sun,  8 Jun 2025 20:52:41 +0530
* gnu/packages/machine-learning.scm (python-captum)[arguments]: Skip
test_exp_sets_with_diffent_lengths which fails with PyTorch 2.7.0's
stricter torch.load weights_only behavior.

Signed-off-by: Ayan Das <bvits <at> riseup.net>
---
 gnu/packages/machine-learning.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 9636e2cd19..c1621d1e0b 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -5611,11 +5611,14 @@ (define-public python-captum
     (arguments
      (list
       #:test-flags
-      '(list "-k"
-             ;; These two tests (out of more than 1000 tests) fail because of
-             ;; accuracy problems.
-             "not test_softmax_classification_batch_multi_target\
- and not test_softmax_classification_batch_zero_baseline")))
+      '(list "-k" (string-append
+                   ;; These two tests (out of more than 1000 tests) fail because of
+                   ;; accuracy problems.
+                   "not test_softmax_classification_batch_multi_target"
+                   " and not test_softmax_classification_batch_zero_baseline"
+                   ;; This test fails with PyTorch 2.7.0 due to stricter
+                   ;; torch.load weights_only behavior.
+                   " and not test_exp_sets_with_diffent_lengths"))))
     (propagated-inputs
      (list python-matplotlib python-numpy python-pytorch python-tqdm))
     (native-inputs (list jupyter
-- 
2.49.0





Merged 78721 78722 78723 78724 78725 78726. Request was from Ayan Das <bvits <at> riseup.net> to control <at> debbugs.gnu.org. (Sun, 08 Jun 2025 15:31:02 GMT) Full text and rfc822 format available.

Changed bug title to '[PATCH 0/5] Update PyTorch to 2.7.0 with dependencies' from '[PATCH 5/5] gnu: python-captum: Fix tests for PyTorch 2.7.0.' Request was from Ayan Das <bvits <at> riseup.net> to control <at> debbugs.gnu.org. (Sun, 08 Jun 2025 15:31:02 GMT) Full text and rfc822 format available.

Forcibly Merged 78721 78722 78723 78724 78725 78726. Request was from Ayan Das <bvits <at> riseup.net> to control <at> debbugs.gnu.org. (Sun, 08 Jun 2025 15:46:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#78726; Package guix-patches. (Fri, 13 Jun 2025 12:36:04 GMT) Full text and rfc822 format available.

Message #14 received at 78726-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ayan Das <bvits <at> riseup.net>
Cc: 78726-done <at> debbugs.gnu.org, 78725-done <at> debbugs.gnu.org
Subject: Re: [bug#78725] [PATCH 0/5] Update PyTorch to 2.7.0
Date: Fri, 13 Jun 2025 13:59:59 +0200
Hi Ayan,

Ayan Das <bvits <at> riseup.net> writes:

>   gnu: xnnpack: Update to 0.0-4.51a0103.
>   gnu: miniz-for-pytorch: Update to pytorch-2.7.0.
>   gnu: python-pytorch: Update to 2.7.0.
>   gnu: python-torchvision: Update to 0.22.0.
>   gnu: python-captum: Fix tests for PyTorch 2.7.0.

Applied, thanks!

Ludo’.




Disconnected #78721 from all other report(s). Request was from Andreas Enge <andreas <at> enge.fr> to control <at> debbugs.gnu.org. (Sat, 14 Jun 2025 14:03:13 GMT) Full text and rfc822 format available.

This bug report was last modified 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.