-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
181 lines (169 loc) · 3.93 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[project]
name = "neurosis"
authors = [
{ name = "Andi Powers-Holmes", email = "[email protected]" },
]
description = "A neural network trainer (for weebs)"
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"deep-learning",
"diffusers",
"machine-learning",
"neural-networks",
"pytorch-lightning",
"pytorch",
"stable-diffusion",
"transformers",
]
license = { file = "LICENSE.md" }
classifiers = [
"Programming Language :: Python :: 3",
]
dynamic = ["version"]
dependencies = [
"accelerate >= 0.26.1",
"chardet == 5.1.0",
"colorama >= 0.4.3, < 0.5.0",
"colorcet >= 3.0.1, < 4.0.0",
"crc32c >= 2.3",
"diffusers >= 0.26.1",
"einops >= 0.6.1",
"fsspec >= 2024.4.0",
"jsonargparse[argcomplete,fsspec,omegaconf,signatures] >= 4.27.1, < 5.0.0",
"kornia >= 0.7.0",
"lightning[extra] >= 2.2.1",
"natsort >= 8.4.0",
"ninja >= 1.11.0",
"numpy >= 1.24.3",
"open-clip-torch >= 2.2.0",
"opencv-contrib-python-headless >= 4.6.0.66, < 4.7.0",
"pandas >= 2.0.0",
"pillow >= 10.0.0, < 11.0.0",
"pudb >= 2022.1.3",
"pydantic >= 2.5.0, < 2.6.0",
"pydantic-settings >= 2.0.0, < 2.2.0",
"pytorch_optimizer >= 2.12.0",
"rich >= 13.0.0, < 14.0.0",
"safetensors >= 0.4.2",
"scipy >= 1.11.1, < 1.12.0",
"sentencepiece >= 0.1.99",
"shellingham >= 1.5.0, < 2.0.0",
"tokenizers >= 0.13.3",
"torch >= 2.1.0",
"torchmetrics >= 1.3.0",
"torchvision",
"tqdm >= 4.65.0",
"transformers >= 4.36.0",
"typer >= 0.9.0, < 1.0.0",
"wandb >= 0.17.0, < 0.18.0",
]
[project.optional-dependencies]
dev = [
"ruff >=0.0.289",
"setuptools-scm >= 8.0.0",
"pre-commit >= 3.0.0", # remember to run `pre-commit install` after installing
"tabulate >= 0.8.9", # for inductor log prettyprinting
]
extra = [
"bitsandbytes >= 0.41.0",
"datasets >= 2.13.0",
"hf-transfer >= 0.1.4, < 1.0.0",
"nvidia-ml-py >= 12.0.0, < 13.0.0",
"adlfs >= 2024.4.0",
"s3fs >= 2024.4.0",
]
mongo = [
"pyarrow >= 13.0.0, < 17.0.0",
"pymongoarrow >= 1.4.0, < 1.6.0",
"zstandard >= 0.22.0",
]
multinode = [
'torchelastic >= 0.2.2, < 0.3.0',
]
all = [
"neurosis[dev]",
"neurosis[extra]",
"neurosis[mongo]",
"neurosis[multinode]",
"neurosis[vae]",
]
novae = [
"neurosis[dev]",
"neurosis[extra]",
"neurosis[mongo]",
"neurosis[multinode]",
]
[project.scripts]
neurosis = "neurosis.trainer.cli:main"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "wheel", "setuptools_scm>=8"]
[tool.setuptools.packages.find]
namespaces = true
where = ["src"]
include = [
"neurosis*",
"dreamsim",
]
exclude = ["neurosis.tests*"]
[tool.setuptools.package-data]
"*" = [
"*.css",
"*.json",
"*.md",
"*.txt",
]
"neurosis.data" = [
"*.ckpt",
"*.pt",
"*.pth",
"*.safetensors",
]
[tool.ruff]
line-length = 110
target-version = "py310"
extend-exclude = ["/usr/lib/*"]
[tool.ruff.lint]
ignore = [
"F841", # local variable assigned but never used
"F842", # local variable annotated but never used
"E501", # line too long - will be fixed in format
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
known-local-folder = ["src"]
known-first-party = ["neurosis"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
docstring-code-format = true
exclude = [
"src/neurosis/_version.py", # generated by setuptools_scm
]
[tool.pyright]
include = ["src"]
exclude = [
"**/__pycache__", # cache directories
"./typings", # generated type stubs
]
stubPath = "./typings"
# reportMissingTypeStubs = "information" # re-enable this once autogen of stubs actually works
[tool.tomlsort]
in_place = true
no_sort_tables = true
spaces_before_inline_comment = 1
spaces_indent_inline_array = 2
trailing_comma_inline_array = true
sort_first = [
"project",
"build-system",
"tool.setuptools",
]
# needs to be last for CI reasons
[tool.setuptools_scm]
write_to = "src/neurosis/_version.py"
version_scheme = "post-release"