-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (74 loc) · 2.52 KB
/
Copy pathpyproject.toml
File metadata and controls
83 lines (74 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[build-system]
requires = ["setuptools>=80", "setuptools-scm>=9"]
build-backend = "setuptools.build_meta"
[project]
name = "mlx-lm"
description = "LLMs with MLX and the Hugging Face Hub"
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "MLX Contributors", email = "mlx@group.apple.com" }]
requires-python = ">=3.11"
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
]
dependencies = [
"mlx>=0.32.2; platform_system == 'Darwin'",
"numpy",
"transformers>=5.7.0",
"sentencepiece",
"protobuf",
"pyyaml",
"jinja2",
]
[project.urls]
Homepage = "https://github.com/ml-explore/mlx-lm"
Repository = "https://github.com/ml-explore/mlx-lm"
Issues = "https://github.com/ml-explore/mlx-lm/issues"
[project.optional-dependencies]
test = ["datasets", "lm-eval"]
train = ["datasets", "tqdm"]
evaluate = ["lm-eval", "tqdm"]
cuda13 = ["mlx[cuda13]>=0.32.2"]
cuda12 = ["mlx[cuda12]>=0.32.2"]
cpu = ["mlx[cpu]>=0.32.2"]
[project.scripts]
mlx_lm = "mlx_lm.cli:main"
"mlx_lm.awq" = "mlx_lm.quant.awq:main"
"mlx_lm.dwq" = "mlx_lm.quant.dwq:main"
"mlx_lm.dynamic_quant" = "mlx_lm.quant.dynamic_quant:main"
"mlx_lm.gptq" = "mlx_lm.quant.gptq:main"
"mlx_lm.benchmark" = "mlx_lm.benchmark:main"
"mlx_lm.cache_prompt" = "mlx_lm.cache_prompt:main"
"mlx_lm.chat" = "mlx_lm.chat:main"
"mlx_lm.convert" = "mlx_lm.convert:main"
"mlx_lm.evaluate" = "mlx_lm.evaluate:main"
"mlx_lm.fuse" = "mlx_lm.fuse:main"
"mlx_lm.generate" = "mlx_lm.generate:main"
"mlx_lm.lora" = "mlx_lm.lora:main"
"mlx_lm.perplexity" = "mlx_lm.perplexity:main"
"mlx_lm.server" = "mlx_lm.server:main"
"mlx_lm.share" = "mlx_lm.share:main"
"mlx_lm.manage" = "mlx_lm.manage:main"
"mlx_lm.upload" = "mlx_lm.upload:main"
[tool.setuptools.packages.find]
include = ["mlx_lm*"]
namespaces = false
[tool.setuptools_scm]
version_file = "mlx_lm/_version.py"
version_file_template = "__version__ = {version!r}\n"
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = ["B006", "B007", "B904", "CPY001", "F", "PLW0127"] # pyflakes: unused imports and variables, undefined names
[tool.ruff.lint.per-file-ignores]
# Package initializers re-export names for the public API.
"**/__init__.py" = ["F401"]