From 9aefb6795023ebcf6f863f28da3d15862ca983a9 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sat, 5 Jul 2025 19:10:00 -0700 Subject: [PATCH] python3Packages.accelerate: disable tests that fail with an InductorError --- .../development/python-modules/accelerate/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index f28a304c54dd..1617126bd6b9 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -145,14 +145,17 @@ buildPythonPackage rec { "test_state_dict_type" "test_with_save_limit" "test_with_scheduler" + + # torch._inductor.exc.InductorError: TypeError: cannot determine truth value of Relational + "test_regional_compilation_cold_start" + "test_regional_compilation_inference_speedup" + + # Fails in nixpkgs-review due to a port conflict with simultaneous python builds + "test_config_compatibility" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ # RuntimeError: torch_shm_manager: execl failed: Permission denied "CheckpointTest" - ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - # Fails in nixpkgs-review due to a port conflict with simultaneous python builds - "test_config_compatibility" ]; disabledTestPaths = lib.optionals (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64)) [