-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (62 loc) · 1.41 KB
/
pyproject.toml
File metadata and controls
70 lines (62 loc) · 1.41 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
[project]
name = "diffulab"
version = "0.1.0"
description = "DiffuLab is designed to provide a simple and flexible way to train diffusion models while allowing full customization of its core components"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"accelerate>=1.4.0",
"blobfile>=3.1.0",
"diffusers==0.36.0",
"einops>=0.8.1",
"ema-pytorch>=0.7.7",
"hydra-core>=1.3.2",
"jaxtyping>=0.3.0",
"loguru>=0.7.3",
"mosaicml-streaming>=0.12.0",
"omegaconf>=2.3.0",
"pyopenssl==23.2.0",
"sentencepiece>=0.2.1",
"tiktoken>=0.11.0",
"torch>=2.6.0",
"transformers==4.57.3",
"wandb>=0.19.6",
]
[project.optional-dependencies]
dev = [
"jupyter>=1.1.1",
"pre-commit>=4.2.0",
"basedpyright>=1.1.396",
"ruff>=0.9.7",
"typos>=1.30.0",
]
repa = [
"timm>=1.0.15",
]
prefgrpo = [
"qwen-vl-utils>=0.0.11",
]
[tool.uv.sources]
diffulab = {workspace = true}
[tool.astral]
package = "src"
[tool.black]
line-length = 120
[tool.ruff]
src = ["src", "examples"]
line-length = 120
[tool.ruff.lint]
select = [
"I", # isort
]
ignore = [
"F722", # forward-annotation-syntax-error, because of Jaxtyping
"E731", # do-not-assign-lambda
]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.basedpyright]
include = ["src/diffulab", "tests/", "examples/"]
typeCheckingMode = "strict"
exclude = ["**/__pycache__"]
reportMissingTypeStubs = "warning"