2024-01-13 02:25:56 +08:00
|
|
|
import sys
|
|
|
|
from pathlib import Path
|
|
|
|
|
2024-02-22 01:40:36 +08:00
|
|
|
import mlx_lm
|
2024-01-13 02:25:56 +08:00
|
|
|
import pkg_resources
|
|
|
|
from setuptools import setup
|
|
|
|
|
|
|
|
with open(Path(__file__).parent / "mlx_lm/requirements.txt") as fid:
|
|
|
|
requirements = [str(r) for r in pkg_resources.parse_requirements(fid)]
|
|
|
|
setup(
|
|
|
|
name="mlx-lm",
|
2024-02-22 01:40:36 +08:00
|
|
|
version=mlx_lm.__version__,
|
2024-01-13 02:25:56 +08:00
|
|
|
description="LLMs on Apple silicon with MLX and the Hugging Face Hub",
|
|
|
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
readme="README.md",
|
|
|
|
author_email="mlx@group.apple.com",
|
|
|
|
author="MLX Contributors",
|
|
|
|
url="https://github.com/ml-explore/mlx-examples",
|
|
|
|
license="MIT",
|
|
|
|
install_requires=requirements,
|
2024-01-24 01:05:57 +08:00
|
|
|
packages=["mlx_lm", "mlx_lm.models", "mlx_lm.tuner"],
|
2024-01-13 02:25:56 +08:00
|
|
|
python_requires=">=3.8",
|
|
|
|
)
|