-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (126 loc) · 3.9 KB
/
pyproject.toml
File metadata and controls
138 lines (126 loc) · 3.9 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "vllm-mlx"
version = "0.2.6"
description = "vLLM-like inference for Apple Silicon - GPU-accelerated Text, Image, Video & Audio on Mac"
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
authors = [
{name = "vllm-mlx contributors"}
]
keywords = ["llm", "mlx", "apple-silicon", "vllm", "inference", "transformers"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"mlx>=0.29.0",
"mlx-lm>=0.30.5", # GLM-4 models require 0.30.5+ (new attention layers)
"mlx-vlm>=0.1.0", # VLM support
"transformers>=5.0.0", # mlx-lm 0.30.5+ requires transformers 5.0 (rc3 bug fixed in stable)
"tokenizers>=0.19.0",
"huggingface-hub>=0.23.0",
"numpy>=1.24.0",
"pillow>=10.0.0",
"tqdm>=4.66.0",
"pyyaml>=6.0",
"gradio>=4.0.0",
"requests>=2.28.0",
"tabulate>=0.9.0",
# Video processing for VLM
"opencv-python>=4.8.0",
# Vision processor (required for transformers AutoProcessor)
"torchvision>=0.18.0",
# Resource monitoring
"psutil>=5.9.0",
# Server
"fastapi>=0.100.0",
"uvicorn>=0.23.0",
# MCP (Model Context Protocol) support
"mcp>=1.0.0",
# JSON Schema validation for structured output
"jsonschema>=4.0.0",
# pytz is required by gradio but not declared as a dependency
# See: https://github.com/waybarrios/vllm-mlx/issues/23
"pytz>=2024.1",
# Note: mlx-audio moved to optional [audio] deps due to mlx-lm version conflict
# See: https://github.com/waybarrios/vllm-mlx/issues/19
"mlx-embeddings>=0.0.5"
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
]
vllm = [
"vllm>=0.4.0",
]
vision = [
"torch>=2.3.0",
"torchvision>=0.18.0",
]
# Audio dependencies for TTS/STT (mlx-audio)
audio = [
"mlx-audio>=0.2.9",
"sounddevice>=0.4.0",
"soundfile>=0.12.0",
"scipy>=1.10.0",
"numba>=0.57.0",
"tiktoken>=0.5.0",
"misaki[zh,ja]>=0.5.0", # Chinese (zh) and Japanese (ja) support
"spacy>=3.7.0",
"num2words>=0.5.0",
"loguru>=0.7.0",
"phonemizer>=3.2.0",
# Additional multilingual dependencies
"ordered_set>=4.1.0", # Required for Chinese TTS
"cn2an>=0.5.0", # Chinese number conversion
"fugashi>=1.3.0", # Japanese tokenizer
"unidic-lite>=1.0.0", # Japanese dictionary for fugashi
"jieba>=0.42.0", # Chinese word segmentation
]
[project.urls]
Homepage = "https://github.com/vllm-mlx/vllm-mlx"
Documentation = "https://github.com/vllm-mlx/vllm-mlx#readme"
Repository = "https://github.com/vllm-mlx/vllm-mlx"
[project.entry-points."vllm.platform_plugins"]
mlx = "vllm_mlx.plugin:mlx_platform_plugin"
[project.scripts]
vllm-mlx = "vllm_mlx.cli:main"
vllm-mlx-chat = "vllm_mlx.gradio_app:main"
vllm-mlx-bench = "vllm_mlx.benchmark:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["vllm_mlx*"]
[tool.black]
line-length = 88
target-version = ["py310", "py311", "py312", "py313"]
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "SIM"]
ignore = ["E501", "B905"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"