-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (116 loc) · 3.37 KB
/
Copy pathpyproject.toml
File metadata and controls
129 lines (116 loc) · 3.37 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
[build-system]
requires = [
"setuptools",
"setuptools-scm>=10.2.1",
"wheel",
"cmake>=4.4.2",
"ninja",
"protobuf>=6.33.6,<7"
]
build-backend = "setuptools.build_meta"
[project]
name = "morphling"
description = "Morphling: an emulator for distributed machine-learning training on heterogeneous edge devices (EdgeSys '26 companion code)."
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.10"
license = { text = "Apache-2.0" }
authors = [
{ name = "The Morphling Authors" },
]
keywords = [
"distributed-training",
"edge-computing",
"gpu-emulation",
"cuda",
"green-context",
"research",
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: C++",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: System :: Distributed Computing",
"Intended Audience :: Science/Research",
]
dynamic = ["version", "dependencies"]
[project.urls]
Homepage = "https://github.com/drunkcoding/DeviceEmulator"
Documentation = "https://github.com/drunkcoding/DeviceEmulator#readme"
Source = "https://github.com/drunkcoding/DeviceEmulator"
Issues = "https://github.com/drunkcoding/DeviceEmulator/issues"
Paper = "https://doi.org/10.1145/3812836.3814779"
[project.optional-dependencies]
test = [
"pytest",
"accelerate>=1.14.0",
"transformers>=5.15.0",
"parameterized",
]
[project.scripts]
morphling_emulator = "morphling.entrypoint.emulator:main"
morphling_device_config = "morphling.entrypoint.generate_device_config:main"
morphling_device = "morphling.entrypoint.run_device:main"
morphling_cmd = "morphling.entrypoint.cmdline:main"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
[tool.setuptools.package-data]
morphling = [
"py.typed",
"*.so",
]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools.cmdclass]
build_ext = "_setup_helpers.cmake_build_ext"
build_package_protos = "_setup_helpers.BuildPackageProtos"
install = "_setup_helpers.CustomInstall"
sdist = "_setup_helpers.CustomBuild"
bdist_wheel = "_setup_helpers.CustomBdistWheel"
[tool.setuptools_scm]
# The Docker build context excludes .git, so the image injects the version via
# SETUPTOOLS_SCM_PRETEND_VERSION_FOR_MORPHLING (see Dockerfile); fallback_version
# applies only to a bare sdist build with neither git nor that env var.
version_file = "morphling/_version.py"
version_scheme = "guess-next-dev"
local_scheme = "node-and-date"
fallback_version = "0.0.0+unknown"
[tool.ruff]
line-length = 80
exclude = []
[tool.ruff.lint]
fixable = ["ALL"]
unfixable = [
# star imports
"F405",
"F403",
# lambda expression assignment
"E731",
# Loop control variable not used within loop body
"B007",
# raise distinguish errors
"B904",
# f-string format
"UP032",
]
select = [
# isort
"I",
]
ignore = [
# Loop control variable not used within loop body
"B007"
]
[tool.pytest.ini_options]
pythonpath = ["."]
markers = [
"smoke: Fast CI tests (<2min)",
"deep: Slow GPU tests (<30min)",
"benchmark: Microbenchmarks (opt out via -m 'not benchmark')",
]