Skip to content

Commit 082193e

Browse files
authored
python312Packages.torchmetrics: 1.6.1 -> 1.6.2 (#386687)
2 parents 2d11d08 + 6365b15 commit 082193e

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

pkgs/development/python-modules/finetuning-scheduler/default.nix

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
{
2-
stdenv,
32
lib,
3+
stdenv,
44
buildPythonPackage,
55
fetchFromGitHub,
6+
7+
# build-system
68
setuptools,
9+
10+
# dependencies
11+
pytorch-lightning,
12+
torch,
13+
14+
# tests
715
pythonOlder,
16+
pythonAtLeast,
817
pytestCheckHook,
9-
torch,
10-
pytorch-lightning,
1118
}:
1219

1320
buildPythonPackage rec {
@@ -39,13 +46,18 @@ buildPythonPackage rec {
3946
nativeCheckInputs = [ pytestCheckHook ];
4047
pytestFlagsArray = [ "tests" ];
4148
disabledTests =
42-
# torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised:
43-
# LoweringException: ImportError: cannot import name 'triton_key' from 'triton.compiler.compiler'
4449
lib.optionals (pythonOlder "3.12") [
50+
# torch._dynamo.exc.BackendCompilerFailed: backend='inductor' raised:
51+
# LoweringException: ImportError: cannot import name 'triton_key' from 'triton.compiler.compiler'
4552
"test_fts_dynamo_enforce_p0"
4653
"test_fts_dynamo_resume"
4754
"test_fts_dynamo_intrafit"
4855
]
56+
++ lib.optionals (pythonAtLeast "3.13") [
57+
# RuntimeError: Dynamo is not supported on Python 3.13+
58+
"test_fts_dynamo_enforce_p0"
59+
"test_fts_dynamo_resume"
60+
]
4961
++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [
5062
# slightly exceeds numerical tolerance on aarch64-linux:
5163
"test_fts_frozen_bn_track_running_stats"

pkgs/development/python-modules/torchmetrics/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
buildPythonPackage rec {
2626
pname = "torchmetrics";
27-
version = "1.6.1";
27+
version = "1.6.2";
2828
pyproject = true;
2929

3030
src = fetchFromGitHub {
3131
owner = "Lightning-AI";
3232
repo = "torchmetrics";
3333
tag = "v${version}";
34-
hash = "sha256-itLFJB920hQGX2VLOLolHhmXFVHAOkfRRFtUGB9neKM=";
34+
hash = "sha256-IPhBgGciB/3IFYVX+miID4oQ+5CpcjvAHiufxKiHzFw=";
3535
};
3636

3737
dependencies = [

0 commit comments

Comments
 (0)