bitsandbytes-rocm/setup.py

33 lines
1.0 KiB
Python
Raw Normal View History

2021-10-06 02:16:20 +00:00
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
2022-07-01 14:16:10 +00:00
version = os.getenv("CUDA_VERSION", "cpu")
2021-10-06 02:16:20 +00:00
setup(
2022-07-01 14:16:10 +00:00
name="bitsandbytes",
version=f"0.26.0+{version}",
author="Tim Dettmers",
author_email="dettmers@cs.washington.edu",
description="8-bit optimizers and quantization routines.",
license="MIT",
keywords="gpu optimizers optimization 8-bit quantization compression",
url="http://packages.python.org/bitsandbytes",
2021-10-06 02:16:20 +00:00
packages=find_packages(),
package_data={'': ['libbitsandbytes.so']},
long_description=read('README.md'),
2022-07-01 14:16:10 +00:00
long_description_content_type='text/markdown',
2021-10-06 02:16:20 +00:00
classifiers=[
"Development Status :: 4 - Beta",
2021-10-06 02:16:20 +00:00
'Topic :: Scientific/Engineering :: Artificial Intelligence'
],
)