diff --git a/bitsandbytes-0.42.0.tar.gz b/bitsandbytes-0.42.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0347567d0469e7c2b3a0186062409702de26048e Binary files /dev/null and b/bitsandbytes-0.42.0.tar.gz differ diff --git a/python-bitsandbytes.spec b/python-bitsandbytes.spec new file mode 100644 index 0000000000000000000000000000000000000000..0976ac40c7251a53630538310bc2bc4119fc37be --- /dev/null +++ b/python-bitsandbytes.spec @@ -0,0 +1,55 @@ +%define anolis_release 1 +%global debug_package %{nil} +%global pypi_name bitsandbytes +%global pypi_version 0.42.0 + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: k-bit optimizers and matrix multiplication routines + +License: MIT +URL: https://github.com/TimDettmers/bitsandbytes +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3dist(scipy) +BuildRequires: python3dist(setuptools) + +%description +The bitsandbytes is a lightweight wrapper around CUDA custom functions, in +particular 8-bit optimizers, matrix multiplication (LLM.int8()), and quantization +functions. + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(scipy) +%description -n python3-%{pypi_name} +The bitsandbytes is a lightweight wrapper around CUDA custom functions, in +particular 8-bit optimizers, matrix multiplication (LLM.int8()), and quantization +functions. + + +%prep +%autosetup -n %{pypi_name}-%{pypi_version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/tests +%{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info + +%changelog +* Thu Jan 18 2024 Zhongling He - 0.42.0-1 +- Initial package. \ No newline at end of file