From f3d401a14d202af6ef16fa1657dfc9ef56c87692 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Fri, 27 Feb 2026 12:09:38 -0800 Subject: [PATCH 1/2] python3Packages.torchao: disable failing tests --- pkgs/development/python-modules/torchao/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/torchao/default.nix b/pkgs/development/python-modules/torchao/default.nix index 152c2c90b1e4..224b3ba8c95b 100644 --- a/pkgs/development/python-modules/torchao/default.nix +++ b/pkgs/development/python-modules/torchao/default.nix @@ -153,6 +153,12 @@ buildPythonPackage (finalAttrs: { "test_qdq_per_channel" "test_reentrant" "test_static_linear" + + # AttributeError: 'list' object has no attribute 'keys' + "test_tied_weights_quantization" + + # execnet.gateway_base.DumpError: can't serialize + "test_numerical_consistency_per_tensor" ] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ # AssertionError: tensor(False) is not true From 16fc772d52543b4f955d96d3c102c45cf0f18c0c Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Fri, 27 Feb 2026 12:36:55 -0800 Subject: [PATCH 2/2] python3Packages.torchtune: disable failing tests --- pkgs/development/python-modules/torchtune/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/torchtune/default.nix b/pkgs/development/python-modules/torchtune/default.nix index df6795d344f9..9072cdb7bb92 100644 --- a/pkgs/development/python-modules/torchtune/default.nix +++ b/pkgs/development/python-modules/torchtune/default.nix @@ -128,7 +128,13 @@ buildPythonPackage (finalAttrs: { "test_init_from_env_dup" ]; - disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ + disabledTestPaths = [ + # TypeError: HfHubHTTPError.__init__() missing 1 required keyword-only argument: 'response' + "tests/torchtune/_cli/test_download.py::TestTuneDownloadCommand::test_download_calls_snapshot" + "tests/torchtune/_cli/test_download.py::TestTuneDownloadCommand::test_gated_repo_error_no_token" + "tests/torchtune/_cli/test_download.py::TestTuneDownloadCommand::test_gated_repo_error_with_token" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # fail due to floating-point precision differences "tests/torchtune/models/flux/test_flux_autoencoder.py::TestFluxAutoencoder::test_encode" "tests/torchtune/modules/peft/test_dora.py::TestDoRALinear::test_qdora_parity[True-dtype1]"