-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
65 lines (56 loc) · 1.37 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
[build-system]
requires = ["setuptools", "torch", "numpy", "ninja", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "punica"
description = "Punica: System for serving Large Language Models."
readme = "README.md"
requires-python = ">=3.10"
keywords = ["pytorch", "llm", "lora", "transformer"]
dynamic = ["version"]
dependencies = [
"torch",
"transformers",
"numpy",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
"pytz",
"tqdm",
"scipy",
"peft",
"accelerate",
"textual",
]
# Include different sets of files for sdist and wheel
# see: https://stackoverflow.com/a/54953494/1332817
[tool.setuptools.package-data] # wheel-only files
punica = ["src/punica/_build_meta.py"]
[tool.setuptools.exclude-package-data] # exclude from wheel
punica = ["csrc", "third_party"]
[tool.ruff]
exclude = ["third_party", "src/punica/_build_meta.py"]
[tool.ruff.lint.isort]
known-first-party = ["punica"]
combine-as-imports = true
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"SIM", # flake8-simplify
"I", # isort
]
ignore = [
"E501", # Line too long
"E741", # Ambiguous variable name
]
[tool.ruff.per-file-ignores]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.pyright]
include = ["examples", "src", "tests"]
exclude = ["examples/finetune"]