Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (139 loc) · 4.51 KB
/
Copy pathpyproject.toml
File metadata and controls
156 lines (139 loc) · 4.51 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[build-system]
requires = ["uv_build>=0.7.19,<0.8.0"]
build-backend = "uv_build"
[project]
name = "ejkernel"
version = "0.0.82"
authors = [{ name = "Erfan Zare Chavoshi", email = "Erfanzare810@gmail.com" }]
description = "Accelerate, Optimize performance with streamlined training and serving options with JAX."
readme = "README.md"
requires-python = ">=3.11,<3.14"
license = { text = "Apache-2.0" }
keywords = [
"Deep Learning",
"Machine Learning",
"JAX",
"CUDA",
"XLA",
"Triton",
"Pallas",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
"beartype>=0.22.2",
"chex>=0.1.91",
"einops>=0.8.1",
"jax>=0.10.0,<0.12.0",
"jaxlib>=0.10.0,<0.12.0",
"jaxtyping>=0.3.2",
"pydantic>=2.11.10",
"tqdm>=4.67.1",
]
[project.urls]
"Homepage" = "https://github.com/erfanzar/ejkernel"
"Repository" = "https://github.com/erfanzar/ejkernel"
"Documentation" = "https://ejkernel.readthedocs.io/en/latest/"
[tool.uv.build-backend]
module-name = "ejkernel"
module-root = "."
# The shipped tuned-kernel table is package data, not source: kernels read it
# at runtime, so it has to land in the wheel.
source-include = ["csrc/**", "ejkernel/ops/tuned/*.db"]
data = { purelib = "csrc" }
[tool.uv.sources]
eformer = { workspace = true }
[tool.setuptools]
package-dir = { "" = "." }
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools.package-data]
"ejkernel" = ["py.typed", "ops/tuned/*.db"]
[project.optional-dependencies]
cuda = [
"jax[cuda13]>=0.10.0,<0.12.0 ; sys_platform == 'linux'",
"jax-cuda13-plugin[with-cuda]>=0.10.0,<0.12.0 ; sys_platform == 'linux'",
"jax-cuda13-pjrt>=0.10.0,<0.12.0 ; sys_platform == 'linux'",
"triton==3.6.0 ; sys_platform == 'linux'",
"nvidia-cutlass-dsl[cu13]==4.5.2 ; sys_platform == 'linux'",
"nvidia-cutlass-dsl-libs-base==4.5.2 ; sys_platform == 'linux'",
"nvidia-cutlass-dsl-libs-cu13==4.5.2 ; sys_platform == 'linux'",
"jax-tvm-ffi==0.1.2 ; sys_platform == 'linux'",
"apache-tvm-ffi==0.1.8.post2 ; sys_platform == 'linux'",
]
tpu = ["jax[tpu]>=0.10.0,<0.12.0 ; sys_platform == 'linux'"]
triton = ["triton==3.6.0 ; sys_platform == 'linux'"]
tilelang = [
"tilelang==0.1.9 ; sys_platform == 'linux'",
"apache-tvm-ffi==0.1.8.post2 ; sys_platform == 'linux'",
"nvidia-cudnn-cu12==9.12.0.46 ; sys_platform == 'linux'",
]
profile = [
"xprof>=2.20.6",
"tb-nightly>=2.21.0a20250820",
"xprof-nightly>=2.21.6a20250820",
]
dev = ["eformer"]
[tool.black]
line-length = 121
target-version = ["py311"]
preview = true
[tool.ruff]
line-length = 121
target-version = "py311"
# Import grouping must not depend on the working directory (repo-root pre-commit hook vs. this directory).
src = []
[tool.ruff.lint]
select = ["A", "B", "E", "F", "I", "NPY", "RUF", "UP", "W"]
ignore = ["F722", "B008", "UP015", "A005", "F821", "E741", "UP037","RUF002","RUF003"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
[tool.pytest.ini_options]
testpaths = ["test"]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
exclude = ["ejkernel/"]
[tool.basedpyright]
reportAssignmentType = "none"
reportInvalidTypeForm = "none"
reportUnknownVariableType = "none"
reportPrivateUsage = "none"
reportOptionalCall = "none"
reportUnknownMemberType = "none"
reportGeneralTypeIssues = "none"
reportArgumentType = "none"
enableTypeIgnoreComments = true
reportMissingTypeArgument = "none"
reportUnknownParameterType = "none"
reportAny = "none"
reportCallIssue = "none"
reportUnknownArgumentType = "none"
reportRedeclaration = "none"
reportIgnoreCommentWithoutRule = "none"
reportUnnecessaryIsInstance = "none"
reportUnusedCallResult = "none"
reportUnknownLambdaType = "none"
reportUnannotatedClassAttribute = "none"
reportImplicitStringConcatenation = "none"
reportMissingParameterType = "none"
reportImplicitOverride = "none"
reportImplicitAbstractClass = "none"
reportExplicitAny = "none"
reportIncompatibleMethodOverride = "none"
reportIndexIssue = "none"
reportAttributeAccessIssue = "none"
reportUnreachable = "none"
reportOptionalMemberAccess = "none"
reportOperatorIssue = "none"
reportUninitializedInstanceVariable = "none"
reportIncompatibleVariableOverride = "none"
reportPrivateImportUsage = "none"
reportUnusedParameter = "none"