From 89a33be7f810909f55bb9943bfe661db4f4bffb3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 30 Mar 2026 15:34:08 +0200 Subject: [PATCH] python3Packages.accelerate: disable failing tests on aarch64-linux These require cpuinfo, which is no available on aarch64-linux. --- pkgs/development/python-modules/accelerate/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index 0b47f04e3e60..d38a2fe1e37f 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -107,6 +107,12 @@ buildPythonPackage (finalAttrs: { "CheckpointTest" # TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' (it seems cpuinfo doesn't work here) "test_mpi_multicpu_config_cmd" + # fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox + "test_layerwise_upcasting_inference_0" + "test_compute_module_sizes" + "test_compute_module_total_buffer_size" + "test_load_checkpoint_in_model_dtype" + "test_set_module_tensor_sets_dtype" ] ++ lib.optionals