bitsandbytes-rocm/setup.py

37 lines
1.1 KiB
Python
Raw Normal View History

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
2021-10-06 02:16:20 +00:00
# LICENSE file in the root directory of this source tree.
2022-08-01 03:59:34 +00:00
import glob
import os
2021-10-06 02:16:20 +00:00
from setuptools import find_packages, setup
2021-10-06 02:16:20 +00:00
libs = list(glob.glob("./bitsandbytes/libbitsandbytes*.so"))
2022-08-01 03:59:34 +00:00
libs = [os.path.basename(p) for p in libs]
print("libs:", libs)
2021-10-06 02:16:20 +00:00
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
2021-10-06 02:16:20 +00:00
setup(
2022-08-01 03:59:34 +00:00
name=f"bitsandbytes",
2023-07-12 00:16:05 +00:00
version=f"0.40.0.post4",
2022-07-01 14:16:10 +00:00
author="Tim Dettmers",
author_email="dettmers@cs.washington.edu",
2023-05-24 02:55:52 +00:00
description="k-bit optimizers and matrix multiplication routines.",
2022-07-01 14:16:10 +00:00
license="MIT",
keywords="gpu optimizers optimization 8-bit quantization compression",
url="https://github.com/TimDettmers/bitsandbytes",
2021-10-06 02:16:20 +00:00
packages=find_packages(),
package_data={"": libs},
long_description=read("README.md"),
long_description_content_type="text/markdown",
2021-10-06 02:16:20 +00:00
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
2021-10-06 02:16:20 +00:00
],
)