-
Notifications
You must be signed in to change notification settings - Fork 741
/
pyproject.toml
147 lines (137 loc) · 3.15 KB
/
pyproject.toml
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
139
140
141
142
143
144
145
146
147
[build-system]
requires = ["scikit-build-core", "setuptools>=64.0"]
build-backend = "scikit_build_core.build"
[project]
name = "nexaai"
dynamic = ["version"]
description = "Nexa AI SDK"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Nexa AI", email = "[email protected]" }]
dependencies = [
"cmake", # For building C++ extensions
"faster_whisper",
"typing-extensions>=4.5.0", # For ggml
"numpy>=1.20.0",
"diskcache>=5.6.1",
"jinja2>=2.11.3",
"librosa>=0.8.0",
"fastapi",
"uvicorn",
"pydantic",
"pillow",
"huggingface_hub",
"modelscope",
"prompt_toolkit",
"tqdm", # Shared dependencies
"tabulate",
"streamlit>=1.37.1",
"streamlit-audiorec",
"python-multipart",
"cmake"
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[project.optional-dependencies]
onnx = [
"librosa",
"optimum[onnxruntime]", # for CPU version
"diffusers", # required for image generation
"optuna",
"pydantic",
"PyYAML",
"requests",
"setuptools",
"soundfile",
"transformers",
"ttstokenizer",
]
eval = [
"sympy",
"openai",
"antlr4-python3-runtime==4.11",
"rouge_score",
"evaluate",
"pytablewriter",
"sacrebleu",
"langdetect",
"immutabledict",
"hydra-core",
"psutil",
"typing-extensions",
"flatten_dict",
"colorlog",
"pandas",
"rich",
"codecarbon",
]
convert = [
"nexa-gguf",
]
siglip = [
"torch",
"transformers",
"sentencepiece",
]
[project.urls]
Homepage = "https://github.com/NexaAI/nexa-sdk"
Issues = "https://github.com/NexaAI/nexa-sdk/issues"
Documentation = "https://docs.nexa4ai.com/"
[project.scripts]
nexa-cli = "nexa.cli.entry:main"
nexa = "nexa.cli.entry:main"
nexaai = "nexa.cli.entry:main"
nexai = "nexa.cli.entry:main"
[tool.scikit-build]
wheel.packages = [
"nexa",
"nexa.cli",
"nexa.gguf",
"nexa.gguf.llama",
"nexa.gguf.sd",
"nexa.gguf.streamlit",
"nexa.gguf.server",
"nexa.gguf.converter",
"nexa.onnx",
"nexa.onnx.streamlit",
"nexa.onnx.server",
"nexa.eval",
"nexa.transformers",
]
sdist.include = [
"CMakeLists.txt",
"dependency/llama.cpp/*",
"dependency/stable-diffusion.cpp/*",
"dependency/bark.cpp/*",
]
sdist.exclude = [
".github",
"build",
"dist",
"nexa.egg-info",
"dependency/llama.cpp/build",
"dependency/stable-diffusion.cpp/build",
"dependency/bark.cpp/build",
]
build.verbose = true
cmake.build-type = "Release"
cmake.version = ">=3.16"
cmake.args = [
"-DCMAKE_BUILD_PARALLEL_LEVEL=16",
"-DSTABLE_DIFFUSION_BUILD=ON",
"-DLLAMA_BUILD=ON",
"-DBARK_BUILD=ON"
]
[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "nexa/__init__.py"
[tool.pytest.ini_options]
testpaths = ["tests"]