From f72da90b761b5e2a286b44b1fdfee8ea4e3aa118 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Mon, 4 May 2026 19:58:43 -0400 Subject: [PATCH] python3Packages.accelerate: fix tests on darwin --- pkgs/development/python-modules/accelerate/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index 0672d6fb97cd..a97f2498d6e2 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -130,6 +130,11 @@ buildPythonPackage (finalAttrs: { ++ lib.optionals stdenv.hostPlatform.isDarwin [ # RuntimeError: 'accelerate-launch /nix/store/a7vhm7b74a7bmxc35j26s9iy1zfaqjs... "test_accelerate_test" + + # torch.mps does not expose a module-level set_device; keep skipped until + # the upstream fix lands: https://github.com/huggingface/accelerate/pull/4028 + "test_env_var_device" + "test_init_trackers" "test_init_trackers" "test_log"