From e30d2edc7c01ef2cd5b4d1ffccdfde2556147169 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Wed, 7 Jan 2026 18:27:16 -0800 Subject: [PATCH] add: accelerate (#8971) (#8974) * add: accelerate * oop --------- (cherry picked from commit 73aa88979514b9376213f79aa0b8eb1b5c22525f) Signed-off-by: Owen-sz Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/accelerate/accelerate.spec | 53 ++++++++++++++++++++ anda/langs/python/accelerate/anda.hcl | 5 ++ anda/langs/python/accelerate/update.rhai | 1 + 3 files changed, 59 insertions(+) create mode 100644 anda/langs/python/accelerate/accelerate.spec create mode 100644 anda/langs/python/accelerate/anda.hcl create mode 100644 anda/langs/python/accelerate/update.rhai diff --git a/anda/langs/python/accelerate/accelerate.spec b/anda/langs/python/accelerate/accelerate.spec new file mode 100644 index 0000000000..7d801a6a76 --- /dev/null +++ b/anda/langs/python/accelerate/accelerate.spec @@ -0,0 +1,53 @@ +%define debug_package %{nil} + +%global pypi_name accelerate +%global _desc A simple way to launch, train, and use PyTorch models on almost any device and distributed configuration, automatic mixed precision (including fp8), and easy-to-configure FSDP and DeepSpeed support. + +Name: python-%{pypi_name} +Version: 1.12.0 +Release: 1%?dist +Summary: A simple way to launch, train, and use PyTorch models on almost any device and distributed configuration +License: Apache-2.0 +URL: https://github.com/huggingface/accelerate +# pypi_source does not include all doc files +Source0: %url/archive/refs/tags/v%version.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n accelerate-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files accelerate + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md CODE_OF_CONDUCT.md CONTRIBUTING.md +%license LICENSE +%{_bindir}/%{pypi_name} +%{_bindir}/%{pypi_name}-config +%{_bindir}/%{pypi_name}-estimate-memory +%{_bindir}/%{pypi_name}-launch +%{_bindir}/%{pypi_name}-merge-weights + +%changelog +* Wed Jan 07 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/accelerate/anda.hcl b/anda/langs/python/accelerate/anda.hcl new file mode 100644 index 0000000000..6051d8fc61 --- /dev/null +++ b/anda/langs/python/accelerate/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "accelerate.spec" + } +} diff --git a/anda/langs/python/accelerate/update.rhai b/anda/langs/python/accelerate/update.rhai new file mode 100644 index 0000000000..54c1fab680 --- /dev/null +++ b/anda/langs/python/accelerate/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("accelerate"));