python312Packages.accelerate 0.26.1 -> 0.28.0 https://github.com/huggingface/accelerate/releases attrpath: python312Packages.accelerate Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/vnw0ks5xq3yx4090yy3x495fb0nbxmni-packages.json.drv building '/nix/store/vnw0ks5xq3yx4090yy3x495fb0nbxmni-packages.json.drv'... Going to be running update for following packages: - python3.12-accelerate-0.26.1 Press Enter key to continue... Running update for: - python3.12-accelerate-0.26.1: UPDATING ... - python3.12-accelerate-0.26.1: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/accelerate/default.nix b/pkgs/development/python-modules/accelerate/default.nix index f4b17bbd5df2..87b45f09d056 100644 --- a/pkgs/development/python-modules/accelerate/default.nix +++ b/pkgs/development/python-modules/accelerate/default.nix @@ -20,7 +20,7 @@ buildPythonPackage rec { pname = "accelerate"; - version = "0.26.1"; + version = "0.28.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -29,7 +29,7 @@ buildPythonPackage rec { owner = "huggingface"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-l0RSBVAa2u3bGDLbg/e/1UP5WO8z2+YBqzwdviAcMA0="; + hash = "sha256-zFs4RZsd8z6GumygklGVZ74h/fv0yu37lnVbTqQoeJg="; }; nativeBuildInputs = [ setuptools ]; No auto update branch exists Old version 0.26.1" not present in staging derivation file with contents: { stdenv , lib , buildPythonPackage , fetchFromGitHub , pythonOlder , pytestCheckHook , pytest_7 , setuptools , numpy , packaging , psutil , pyyaml , safetensors , torch , config , cudatoolkit , evaluate , parameterized , transformers }: buildPythonPackage rec { pname = "accelerate"; version = "0.27.0"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "huggingface"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-7rnI8UXyAql8fLMKoSRrWzVw5CnyYVE2o6dJOzSgWxw="; }; nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ numpy packaging psutil pyyaml safetensors torch ]; nativeCheckInputs = [ evaluate parameterized (pytestCheckHook.override { pytest = pytest_7; }) transformers ]; preCheck = '' export HOME=$(mktemp -d) export PATH=$out/bin:$PATH '' + lib.optionalString config.cudaSupport '' export TRITON_PTXAS_PATH="${cudatoolkit}/bin/ptxas" ''; pytestFlagsArray = [ "tests" ]; disabledTests = [ # try to download data: "FeatureExamplesTests" "test_infer_auto_device_map_on_t0pp" # require socket communication "test_explicit_dtypes" "test_gated" "test_invalid_model_name" "test_invalid_model_name_transformers" "test_no_metadata" "test_no_split_modules" "test_remote_code" "test_transformers_model" # set the environment variable, CC, which conflicts with standard environment "test_patch_environment_key_exists" ] ++ lib.optionals (stdenv.isLinux && stdenv.isAarch64) [ # usual aarch64-linux RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly "CheckpointTest" ] ++ lib.optionals (!config.cudaSupport) [ # requires ptxas from cudatoolkit, which is unfree "test_dynamo_extract_model" ] ++ lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ # RuntimeError: torch_shm_manager: execl failed: Permission denied "CheckpointTest" ]; disabledTestPaths = lib.optionals (!(stdenv.isLinux && stdenv.isx86_64)) [ # numerous instances of torch.multiprocessing.spawn.ProcessRaisedException: "tests/test_cpu.py" "tests/test_grad_sync.py" "tests/test_metrics.py" "tests/test_scheduler.py" ]; pythonImportsCheck = [ "accelerate" ]; meta = with lib; { homepage = "https://huggingface.co/docs/accelerate"; description = "A simple way to train and use PyTorch models with multi-GPU, TPU, mixed-precision"; changelog = "https://github.com/huggingface/accelerate/releases/tag/v${version}"; license = licenses.asl20; maintainers = with maintainers; [ bcdarwin ]; mainProgram = "accelerate"; }; }