From 52b6a6cd9621ed0578b679ad7019cbd284d4c787 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 2 Dec 2024 17:31:42 +0100 Subject: [PATCH] python312Packages.pytorch-pfn-extras: 0.7.7 -> 0.8.1 Diff: https://github.com/pfnet/pytorch-pfn-extras/compare/refs/tags/v0.7.7...v0.8.1 Changelog: https://github.com/pfnet/pytorch-pfn-extras/releases/tag/v0.8.1 --- .../pytorch-pfn-extras/default.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix index 60d03910bcfb..a7f6dd539b65 100644 --- a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix +++ b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -16,21 +17,18 @@ onnx, pytestCheckHook, torchvision, - - pythonAtLeast, - stdenv, }: buildPythonPackage rec { pname = "pytorch-pfn-extras"; - version = "0.7.7"; + version = "0.8.1"; pyproject = true; src = fetchFromGitHub { owner = "pfnet"; repo = "pytorch-pfn-extras"; rev = "refs/tags/v${version}"; - hash = "sha256-0+ltkm7OH18hlpHYyZCmy1rRleF52IM2BjLoW44tJUY="; + hash = "sha256-6KHVsUHN2KDKAaMdhBpZgTq0XILWUsHJPgeRD0m9m20="; }; build-system = [ setuptools ]; @@ -52,9 +50,6 @@ buildPythonPackage rec { # Requires CUDA access which is not possible in the nix environment. "-m 'not gpu and not mpi'" "-Wignore::DeprecationWarning" - - # FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly... - "-Wignore::FutureWarning" ]; pythonImportsCheck = [ "pytorch_pfn_extras" ]; @@ -90,11 +85,10 @@ buildPythonPackage rec { # RuntimeError: No Op registered for Gradient with domain_version of 9 "tests/pytorch_pfn_extras_tests/onnx_tests/test_grad.py" - ] - ++ lib.optionals (pythonAtLeast "3.12") [ - # RuntimeError: Dynamo is not supported on Python 3.12+ + + # torch._dynamo.exc.BackendCompilerFailed: backend='compiler_fn' raised: + # AttributeError: module 'torch.fx.experimental.proxy_tensor' has no attribute 'maybe_disable_fake_tensor_mode' "tests/pytorch_pfn_extras_tests/dynamo_tests/test_compile.py" - "tests/pytorch_pfn_extras_tests/test_ops/test_register.py" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ # torch.distributed is not available on darwin