Skip to content

Commit 6365b15

Browse files
committed
python312Packages.finetuning-scheduler: disable dynamo tests on python <=3.13
1 parent a7ee2ba commit 6365b15

File tree

1 file changed

+17
-5
lines changed
  • pkgs/development/python-modules/finetuning-scheduler

1 file changed

+17
-5
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"

0 commit comments

Comments
 (0)