Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (73 loc) · 2.1 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (73 loc) · 2.1 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
[build-system]
requires = [
"setuptools>=77",
"setuptools_scm>=8",
]
build-backend = "setuptools.build_meta"
[project]
name = "aklr"
dynamic = ["version"]
requires-python = ">=3.11"
license = "MIT AND Apache-2.0"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: Unix",
]
# torch and triton come with the environment, as do aiter and sglang, which only the
# baselines and the sglang plugin import.
dependencies = [
"flydsl>=0.3.2",
"ninja",
"packaging",
"pydantic>=2.12",
]
[project.entry-points."sglang.srt.plugins"]
aklr = "aklr.plugins.sglang:register"
[project.entry-points."vllm.general_plugins"]
aklr = "aklr.plugins.vllm:register"
[project.entry-points."aiter.plugins"]
aklr = "aklr.plugins.aiter.provider:provider"
[tool.setuptools.packages.find]
include = ["aklr", "aklr.*"]
[tool.setuptools.package-data]
"aklr.plugins" = ["*/*/*/impls/*/*/*.json", "*/*/*/*.hip"]
# The version is AKLR's commit: 0.1.devN+g<sha> before the first tag.
[tool.setuptools_scm]
[tool.ruff]
line-length = 110
[tool.ruff.lint]
select = ["B", "F", "I", "W"]
ignore = [
# F403/F405: package __init__ files use intentional star-imports for API aggregation.
"F403",
"F405",
# B905: zip(..., strict=) requires py3.10+ everywhere; revisit as a separate sweep.
"B905",
# B007: unused loop control variable is common and low-risk here.
"B007",
# B028: explicit stacklevel on every warnings.warn is noisy; skip it.
"B028",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.pytest.ini_options]
# The AgentX tests import the agentx package from benchmarks/perf, the kernels report tests
# kernels_report from benchmarks/kernels.
pythonpath = ["benchmarks/perf", "benchmarks/kernels"]
[tool.coverage.run]
branch = true
parallel = true
relative_files = true
concurrency = ["multiprocessing", "thread"]
source = ["aklr"]
omit = [
"*/tests/*",
]
[tool.coverage.report]
show_missing = true
# Python line coverage does not measure JIT kernel bodies.
omit = [
"aklr/plugins/aiter/provider/*/impls/*",
]
[tool.coverage.paths]
aklr = ["aklr/", "*/aklr/"]