From a7ee2bab3362f0a0d3b031b7dccbefee05e4c559 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 3 Mar 2025 12:33:36 +0100 Subject: [PATCH 1/2] python312Packages.torchmetrics: 1.6.1 -> 1.6.2 Diff: https://github.com/Lightning-AI/torchmetrics/compare/refs/tags/v1.6.1...v1.6.2 Changelog: https://github.com/Lightning-AI/torchmetrics/releases/tag/v1.6.2 --- pkgs/development/python-modules/torchmetrics/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/torchmetrics/default.nix b/pkgs/development/python-modules/torchmetrics/default.nix index 5f996b4d0a2e..58b33ac79e89 100644 --- a/pkgs/development/python-modules/torchmetrics/default.nix +++ b/pkgs/development/python-modules/torchmetrics/default.nix @@ -24,14 +24,14 @@ buildPythonPackage rec { pname = "torchmetrics"; - version = "1.6.1"; + version = "1.6.2"; pyproject = true; src = fetchFromGitHub { owner = "Lightning-AI"; repo = "torchmetrics"; tag = "v${version}"; - hash = "sha256-itLFJB920hQGX2VLOLolHhmXFVHAOkfRRFtUGB9neKM="; + hash = "sha256-IPhBgGciB/3IFYVX+miID4oQ+5CpcjvAHiufxKiHzFw="; }; dependencies = [ From 6365b15e2c3cc61a007e093172e742a08cc7425c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 3 Mar 2025 12:58:58 +0100 Subject: [PATCH 2/2] python312Packages.finetuning-scheduler: disable dynamo tests on python <=3.13 --- .../finetuning-scheduler/default.nix | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/finetuning-scheduler/default.nix b/pkgs/development/python-modules/finetuning-scheduler/default.nix index 35a5a3cbe02c..c0993799ae9d 100644 --- a/pkgs/development/python-modules/finetuning-scheduler/default.nix +++ b/pkgs/development/python-modules/finetuning-scheduler/default.nix @@ -1,13 +1,20 @@ { - stdenv, lib, + stdenv, buildPythonPackage, fetchFromGitHub, + + # build-system setuptools, - pythonOlder, - pytestCheckHook, - torch, + + # dependencies pytorch-lightning, + torch, + + # tests + pythonOlder, + pythonAtLeast, + pytestCheckHook, }: buildPythonPackage rec { @@ -39,13 +46,18 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "tests" ]; disabledTests = - # torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised: - # LoweringException: ImportError: cannot import name 'triton_key' from 'triton.compiler.compiler' lib.optionals (pythonOlder "3.12") [ + # torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised: + # LoweringException: ImportError: cannot import name 'triton_key' from 'triton.compiler.compiler' "test_fts_dynamo_enforce_p0" "test_fts_dynamo_resume" "test_fts_dynamo_intrafit" ] + ++ lib.optionals (pythonAtLeast "3.13") [ + # RuntimeError: Dynamo is not supported on Python 3.13+ + "test_fts_dynamo_enforce_p0" + "test_fts_dynamo_resume" + ] ++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [ # slightly exceeds numerical tolerance on aarch64-linux: "test_fts_frozen_bn_track_running_stats"