-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (70 loc) · 1.83 KB
/
pyproject.toml
File metadata and controls
82 lines (70 loc) · 1.83 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
[build-system]
requires = [
"scikit-build-core>=0.11.0", "apache-tvm-ffi == 0.1.8"
]
build-backend = "scikit_build_core.build"
[project]
name = "pymllm"
version = "2.0.2"
description = "Fast and lightweight multimodal LLM inference engine for mobile and edge devices"
readme = "README.md"
authors = [
{name="chenghua.wang", email="chenghua.wang.edu@gmail.com"},
# TODO contributors for pymllm
]
keywords = ["pymllm", "llm", "inference", "machine learning"]
# Python dependencies
requires-python = ">=3.10"
dependencies=[
"packaging",
"pytest",
"pytest-html",
"apache-tvm-ffi == 0.1.8.post2",
"pyyaml >= 6.0.2",
"openai",
"modelscope",
"fastapi",
"uvicorn",
"typer",
"torch",
"torchao",
"pyfiglet",
"termcolor",
]
[project.optional-dependencies]
cuda = ["tilelang", "flashinfer-python", "pyzmq"]
[project.scripts]
pymllm = "pymllm.__main__:main"
mllm-convertor = "pymllm.mobile.utils.mllm_convertor:main"
mllm-service = "pymllm.mobile.service.tools:cli_app"
pymllm-server = "pymllm.server.launch:main"
[tool.setuptools.exclude-package-data]
"*" = ["*.pyc"]
[tool.usort]
# Do not try to put "first-party" imports in their own section.
first_party_detection = false
[tool.black]
target-version = ["py310", "py311", "py312"]
[tool.scikit-build]
# Set to false or use env var SKBUILD_WHEEL_CMAKE=false to skip CMake build
wheel.cmake = true
# ABI-agnostic wheel
wheel.py-api = "py3"
cmake.args = [
"-DCMAKE_BUILD_TYPE=Release",
"-DMLLM_ENABLE_PY_MLLM=on"
]
sdist.exclude = [".*", ".*/*"]
wheel.exclude = [".*", ".*/*"]
minimum-version = "build-system.requires"
# Build configuration
build-dir = "build"
build.verbose = true
# CMake configuration
cmake.version = "CMakeLists.txt"
cmake.build-type = "RelWithDebugInfo"
# Logging
logging.level = "INFO"
# Wheel configuration
wheel.packages = ["pymllm"]
wheel.install-dir = "pymllm"